1833515 Members
3128 Online
110061 Solutions
New Discussion

Hostname on HPUX 10.20

 
Cristian van Ee_1
Occasional Contributor

Hostname on HPUX 10.20

I have changed the hostname for the system in "/etc/rc.config.d/netconfig" and "/etc/hosts".

Now when i type "uname -a" after rebooting the system, I get an unknown hostname!

Dit i forget something?

Cristian van Ee,
Systems Administrator
Tech Data Netherlands.
6 REPLIES 6
Andy Monks
Honored Contributor

Re: Hostname on HPUX 10.20

best way to change the hostname is with

set_parms hostname
Andreas Voss
Honored Contributor

Re: Hostname on HPUX 10.20

Hi,

look at /etc/rc.log if there are any error messages related to setting hostname.
Possibly you have made a syntax error in your /etc/rc.config.d/netconf.
Rick Garland
Honored Contributor

Re: Hostname on HPUX 10.20

Also check /etc/rc.config.d/netconf file.

John Palmer
Honored Contributor

Re: Hostname on HPUX 10.20

I assume that you meant '/etc/rc.config.d/netconf'.

Is the new name accepted by the hostname command when you type it in
'hostname ' then 'hostname'?

Remember that the name changed by the hostname command is not the same name as reported by 'uname'. That is set with 'uname -S '

See man hostname and man uname.

The name in netconf should be set for both hostname and uname however.

Rick Garland
Honored Contributor

Re: Hostname on HPUX 10.20

As a side thought, is this system in DNS? If so, also make sure you can resolve correctly by hostname and IP address. Look at the nsswitch.conf file
James R. Ferguson
Acclaimed Contributor

Re: Hostname on HPUX 10.20

Hi:

A long shot, but did you confine the string chosen to 8-characters or less in all the aforementioned files?

...JRF...