1834628 Members
3232 Online
110069 Solutions
New Discussion

hostname length

 
SOLVED
Go to solution
j773303
Super Advisor

hostname length

Is it possible set hostname more than 8 bytes?
When I set hostname to 9 bytes, reboot it, the error messgae can be found in /etc/rc.log as below, Does anyone has the experiecne on this issue? Thanks.


setting hostname
Output from "/sbin/rc1.d/S320hostname start":
----------------------------
Nodename must be less than9 characters
EXIT CODE: 1
"/sbin/rc1.d/S320hostname start" FAILED
Hero
9 REPLIES 9
Michael Tully
Honored Contributor

Re: hostname length

hostname can only be 8 characters.

Have a look at the output of 'uname -a'
There is only enough space for 8 characters.
Anyone for a Mutiny ?
Naveej.K.A
Honored Contributor

Re: hostname length

hi,

rafeeq rahman's hpux system administration book says, the host name can be upto 64 characters.. but the first or only component of hostname should contain 8 characters or less.

i think 64 characters is with respect to a fully qualified domain name

with best wishes
naveej
practice makes a man perfect!!!
Ravi_8
Honored Contributor

Re: hostname length

Hi,

hostname can be longer than 8 characters, command uname -a shows only first 8 characters. This leads to error while executing swlist,swremove,swinstall etc..
Then you need to set the hostname to fully qualified name
#hostname < hostname>
never give up
Bharat Katkar
Honored Contributor

Re: hostname length

Hi there,
Take look at similar thread here. Hostname length is disscussed in more details there. Personnaly i would suggest to keep it upto 8 characters only.

Hope that helps.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=364972

Regards,
You need to know a lot to actually know how little you know
Fabio Ettore
Honored Contributor

Re: hostname length

Hi,

all previous responses are good.
I also answered to this question:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=364972

HTH.

Best regards,
Ettore
WISH? IMPROVEMENT!
Roberto Polli
Trusted Contributor

Re: hostname length

if your release of hpux wants a short name, leave it short:
you have more than possible (24)^8 names!

Peace, R.
eran maor
Honored Contributor
Solution

Re: hostname length

Hi

hostname more the 8 char is not supported by HP .
any problem that you have will issue a request to change this .

the hostname can be more the 8 char but the system will try to recognize only the first 8 char of the hostname .

much better to have hostname less then 9 char .
love computers
T G Manikandan
Honored Contributor

Re: hostname length

The hostname is recommended to be 8 orless than 8 characters.

Check this DOC as what all problems you will face if you go beyond 8.

http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000063236997