changing hostnames in Solaris and Linux

For Linux:
run hostname command or edit /etc/hosts file.

For Solaris 8, the following files have to be edited :
/etc/hosts
/etc/nodename
/etc/hostname.<interface name>
/etc/net/ticlts/hosts
/etc/net/ticots/hosts
/etc/net/ticotsord/hosts

where <interface name> is the driver name followed by the instance number of the interface, i.e. ce0, bge0, hme0, qfe0, etc.. You can find all of your network interfaces by drivername and instance# by running the following command:

prtconf -D | grep network

or just go into /etc and do : ls hostname*

For Solaris 10, the following files have to be edited :
/etc/hosts
/etc/nodename
/etc/hostname.<interface name>
/etc/inet/ipnodes

edit /etc/dumpadm.conf, and create the directory where it puts the dumps.

rename /var/crash/<oldhostname> to /var/crash/<newhostname>, then run hostname <newhostname>

A reboot is also recommended to make sure all settings were picked up.

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: