max hostname lengths (MAXHOSTNAMELEN ?)

Brad Knowles brad.knowles at skynet.be
Thu Jun 28 22:54:46 UTC 2001


At 12:24 PM -0700 6/28/01, Sivakumar Thiyagarajan wrote:

>      Is there any maximum length for a host name or alias name for BIND
>  dns entries?

	Yup.  The limit is 63 characters for a single label element, and 
255 characters for the entire fully-qualified domain name.

>               If so, can this max length customised?

	Nope.  This is written into the standard and the protocol.

>  I have obzerved that nsupdate does not allow host names more than 62
>  chars long ( weird number ).

	Are you sure it's 62 characters and not 63?

>  Am I dealing with an nsupdate limit here or is it a DNS limit on
>  hostname lengths ?

	It's a DNS limit, and it cannot be changed (well, not without 
completely breaking the DNS, since no other nameservers on the planet 
will be able to deal with it).

-- 
Brad Knowles, <brad.knowles at skynet.be>

/*        efdtt.c  Author:  Charles M. Hannum <root at ihack.net>          */
/*       Represented as 1045 digit prime number by Phil Carmody         */
/*     Prime as DNS cname chain by Roy Arends and Walter Belgers        */
/*                                                                      */
/*     Usage is:  cat title-key scrambled.vob | efdtt >clear.vob        */
/*   where title-key = "153 2 8 105 225" or other similar 5-byte key    */

dig decss.friet.org|perl -ne'if(/^x/){s/[x.]//g;print pack(H124,$_)}'


More information about the bind-users mailing list