Changing the HP-UX hostname


To change the hostname in HP-UX:

- Edit the file "/etc/rc.config.d/netconf"
# /etc/rc.config.d/netconf

- Look for the line that starts with HOSTNAME and change the hostname, example:
HOSTNAME="mylittleserver"

- Now, apply the change:
# /sbin/init.d/hostname start

,