Operating System - HP-UX
1834009 Members
1577 Online
110063 Solutions
New Discussion

Re: problem about Hostname

 
SOLVED
Go to solution
lin.chen
Frequent Advisor

problem about Hostname

I have a problem about hostname?
Is there some requirement for the hostname?
such as how many charactors,can I use special charactors...

Thanks a lot
louis
5 REPLIES 5
Sajeev_1
Advisor

Re: problem about Hostname

Host name must
*Start with a letter
*contain no more than 64 chars
*contain only letters, numbers, underscore or dash
lin.chen
Frequent Advisor

Re: problem about Hostname

My system is 11.23.
Victor Fridyev
Honored Contributor
Solution

Re: problem about Hostname

In the maile of Sajeev replace 64 with 8 and everything will be correct.

HTH
Entities are not to be multiplied beyond necessity - RTFM
yulianto piyut
Valued Contributor

Re: problem about Hostname

in hp-ux, only 8 charracter that supported for hostname.

-yut-
Asif Sharif
Honored Contributor

Re: problem about Hostname

HI louis,

A simple name, or each dot (.) separated component of a domain name,
must:

* Start with a letter.

* Contain no more than 64 characters.

* Contain only letters, numbers, underscore (_), or dash (-).
Uppercase letters are not recommended.

it is not the hostname that is limited to 8 characters (it can go up to 256 characters on HP-UX 11.23). It is the nodename that has a hard coded limit of 8 characters. The nodename is set with uname and is 'supposed' to be used by uucp and related programs.

The long hostname, uname and setuname feature is available on HP-UX 11i v2 as well. On HP-UX 11i v2, the NodeHostNameXpnd product bundle must be installed and the appropriate configuration options enabled to allow up to 255 bytes.

Regards,
Asif Sharif
Regards,
Asif Sharif