1837480 Members
3858 Online
110117 Solutions
New Discussion

hostname in DNS

 
Stefano Arduini
Occasional Contributor

hostname in DNS

HP-UX 11.11
NNM 6.41

Thank you in advance for your help.
Which is the maximum length of characters who can be used for a hostname to insert in the DNS?

Best regards
Stefano
4 REPLIES 4
Mobeen_1
Esteemed Contributor

Re: hostname in DNS

Stefano,
Could you tell me which DNS server are you guys using?

regards
Mobeen
Mobeen_1
Esteemed Contributor

Re: hostname in DNS

Stefano,
The maximum length of characters allowed in a DNS implementation could be customised. It depends on the configuration on your name server.

I am not sure what name server you are using. If you are having your nameserver on Unix and running BIND, i suggest that you review the links below

http://www.dns.net/dnsrd/docs/

This site contains links to a lot of other interesting stuff.

If you don't have access to your DNS server and are not able to look through the config to determine what the maximum name length on your DNS server is, then i suggest you simply pose this question to your DNS administrator.

Hope this information helps

regards
Mobeen
G. Vrijhoeven
Honored Contributor

Re: hostname in DNS

Hi Stefano,

You need to keep in mind the hostname length limit of HPUX:
It is defined in /usr/include/sys/param.h:

#define MAXHOSTNAMELEN 64 /* max length of hostname */

I would not advice you to alter this!

HTH,

Gideon
Geoff Wild
Honored Contributor

Re: hostname in DNS

DNS names must conform to the DNS standard defined by RFC 1123.

The DNS defines domain name syntax very generally -- a string of labels each containing up to 63 8-bit octets,
separated by dots, and with a maximum total of 255 octets. Particular applications of the DNS are permitted to further constrain the syntax of the domain names they use, although the DNS deployment has led to
some applications allowing more general names. In particular, Section 2.1 of this document liberalizes slightly the syntax of a legal Internet host name that was defined in RFC-952 [DNS:4].


For Active Directory:

The maximum length of a DNS name is 255 UTF-8 bytes, but the locator attached various prefixes (domain GUIDs, site names, and so on) to the records entered in DNS, making the longest possible fully qualified Active Directory domain name 155 UTF-8 bytes long.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.