domain name length

Chris Thompson cet1 at cam.ac.uk
Tue Jun 30 10:20:46 UTC 2009


On Jun 30 2009, Stephane Bortzmeyer wrote:

>On Mon, Jun 29, 2009 at 08:28:34PM -0500,
> Dan Letkeman <danletkeman at gmail.com> wrote 
> a message of 11 lines which said:
>
>> Are there any issues with have domains like "location.domain.com" 
>
>No.
>
>The limits are in RFC 1034, section 3.1. Each label is 63 characters
>maximum and the total length is 255 characters maximum. You can deduce
>that names of 127 labels are possible :-)

It is 255 if you put a dot on *both* ends (really, a length octet in
the on-the-wire encoding). 253 if you don't put one on either end.
But the 127 is right ... provided you can find a one-character TLD.

-- 
Chris Thompson
Email: cet1 at cam.ac.uk




More information about the bind-users mailing list