1833788 Members
2642 Online
110063 Solutions
New Discussion

Setting hostname

 
karthiknarayan
Advisor

Setting hostname

i want to set a hostname to a hpux machine the host name is more than 9 characters.but the system is allowing only 9 characters how can i do this.
In Love with Life
5 REPLIES 5
Sanjay_6
Honored Contributor

Re: Setting hostname

Hi,

The maximum number of characters for the hostname is system dependent. HP-UX on the S800 has a limit of 8 characters. This is defined in the C language as 9 characters - 8 ASCII characters followed by an ASCII zero (null). If a remote system tries to call a S800 machine and has a hostname of more than 8 characters, it will fail to communicate with that system - reporting that the system is unknown.

Suggest you keep the hostname to 8 characters or less.

Hope this helps.

Regds

Sanjay_6
Honored Contributor
James George_1
Trusted Contributor

Re: Setting hostname

Hi

stick to the system default no of characters..

James
forum is for techies .....heaven is for those who are born again !!
Helen French
Honored Contributor

Re: Setting hostname

Hi Karthik,

Check this out:

http://forums.itrc.hp.com/cm/QuestionAnswer/1,11866,0x77d1cf38d6bdd5118ff10090279cd0f9,00.html

HTH,
Shiju

Life is a promise, fulfill it!
K.Vijayaragavan.
Respected Contributor

Re: Setting hostname

Hi,

In HPUX 11.00,

If we make the system hostname to be more than 8 characters it will accept that but after when we reboot at the startup screens it will display "setting hostname [FAIL]" and the Xwindows will not work.We can't login into CDE.

But in the file "/usr/include/sys/param.h" value for the parameter "MAXHOSTNAMELEN" is by default set to 64.

Better to use 8 character name if required you can use alias with more characters.

-Vijay.
"Let us fine tune our knowledge together"