Network protocols
DNS wire-name encoder
Encode an ASCII DNS name and check label and wire-length limits.
Your inputs
Start with an exampleYour result
Example resultAa — A small example of your colors.
How it works
Prefix each label with its byte length and append a zero root octet. Labels are limited to 63 octets; the full wire name to 255.
www.example.com. uses 17 wire bytes: 3+7+3 label bytes, three lengths and the root.
Limits
Uncompressed names only. Supply international names as ASCII A-labels. Backslash escapes and DNS message compression are excluded.