Operating System - HP-UX
1753506 Members
5022 Online
108794 Solutions
New Discussion юеВ

hostname valid characters

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

hostname valid characters

Hi all,

another quick one..

Is an underscore a valid char in a hostname.

(too tired to make a test)
Later,
Bill
It works for me (tm)
12 REPLIES 12
Clemens van Everdingen
Honored Contributor

Re: hostname valid characters

Hi,

Yes this will be possible, but I believe not as first character.

If you use set_parms, this will check if the hostname is valid.
There is a checking mechnism in set_parms.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
melvyn burnard
Honored Contributor

Re: hostname valid characters

To my knowledge, yes it is a valid character.
I KNOW I have seen a document about this, but do you think I can remember where? Not a chance.
My house is the bank's, my money the wife's, But my opinions belong to me, not HP!
Bill McNAMARA_1
Honored Contributor

Re: hostname valid characters

I need certainty guys!
I guess I should check out some RFC..

Later,
Bill
It works for me (tm)
Clemens van Everdingen
Honored Contributor
Solution

Re: hostname valid characters

Hi,

Found this info:

As mentionned in the RFC1033 : DOMAIN ADMINISTRATORS OPERATIONS GUIDE

The domain system allows a label to contain any 8-bit character.
Although the domain system has no restrictions, other protocols such as SMTP do have name restrictions. Because of other protocol restrictions, only the following characters are recommended for use in a host name (besides the dot separator):

"A-Z", "a-z", "0-9", dash and underscore

The underscore is now accepted as character in a hostname.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
John Palmer
Honored Contributor

Re: hostname valid characters

It's valid as far as the system is concerned but following the letter of the RPC, it's NOT a valid character as far as DNS is concerned.

If you are using DNS then you have to specifically allow the underscore.

Personally, I'd avoid using it.

Regards,
John
John Palmer
Honored Contributor

Re: hostname valid characters

From Support documentt ID A5650126...

The problem is that you have used an underscore character (_) in
the DNS server hostname. Starting with BIND 4.9.6, hostnames cannot
contain this character.

Solve the problem by changing the hostname and rebuilding the DNS server.

Also, in order to resolve other hostnames that have an "_" in them, add the following three lines to the very beginning of the named.boot file:

check-names primary ignore
check-names secondary ignore
check-names response ignore
end quote

Regards,
John
Clemens van Everdingen
Honored Contributor

Re: hostname valid characters

Hi,

To allow for this, modify the "check-names" options lists in the named.conf file that hosts_to_named generates.

C.
The computer is a great invention, there are as many mistakes as ever, but they are nobody's fault !
Bill McNAMARA_1
Honored Contributor

Re: hostname valid characters

Hey John,

how do I specify in DNS that the _ is good..

Later,
Bill
It works for me (tm)
Bill McNAMARA_1
Honored Contributor

Re: hostname valid characters

I am having a problem with DNS btw!

Later,
Bill
It works for me (tm)