Amend Unix hostname

Hi,

Please could someone advise on the following if possible. I have built a unix server, and was given the wrong hostname. I need to amend the hostname to the correct name. And I don't want to rebuild the server again.

I've tried the following to do change :

hostname DTCT-TD3FIXI01A
uname -S DTCT-TD3FIXI01A

rebooted the server and still the server name reverts back to the orginal name ? Would there be something else I would need to run....? to change the hostname permanetly.

regards,

venhart

Its OS dependant...
So what OS?
Did you look in /etc/hosts?

If it's HP-UX, in addition to the 2 command you ran and /etc/hosts, change the HOSTNAME setting in /etc/rc.config.d/netconf.

Hi
If Solaris
Run uname -S new_hostname for the current session

edit /etc/hostname.interface /etc/hostname.bgexxx

you can also look at

/etc/hosts
/etc/nodename

There are others but optinal
files like /etc/net/ticlts or ipnodes

Dan