Click to See Complete Forum and Search --> : Hostname


Delilah
02-22-2002, 03:00 PM
Hi All,

I'm trying to find the file that holds my hostname info in Sol. 8. I guess it would be the equivelent of /etc/sysconfig/network in Linux. Help appreciated.

-D

milanuk
02-24-2002, 03:47 PM
I haven't used Solaris, but is there a chance that it would be /etc/hostname (alternately /etc/HOSTNAME)? IIRC, thats where it *should* be changed on *nix systems, just RedHat uses the weird /etc/sysconfig/network location.

HTH,

Monte

njcajun
02-24-2002, 03:55 PM
Changing a hostname in Solaris is a 'non-trivial' operation. Sun recommends a reconfiguration boot to do this (I believe that's 'boot -r' from the ok prompt).

If you MUST do it manually, you'll need to edit something like 4 or 5 files. The normal /etc/ files are just the beginning. There's also a 'ticots' file and a 'ticotsord' (or something like that) file that you'll have to edit, and I don't remember where those two are (but they're in the same directory, so searching for 'ticots' should find both).

A reconfigure boot is really not a big deal if this is a workstation, but it's a pain in the butt if this is a production box. Schedule about 30 minutes of downtime (just in case). :)

Keyser Soze
02-25-2002, 05:23 AM
You don't have to do a reconfigure. Just look up the sun docs on it, or go to bigadmin(www.sun.com/bigadmin).

These are things that will need changing for collateral effects:
/etc/hosts.allow
/etc/dfs/dfstab on this system's NFS servers (to allow proper mount access)
/etc/vfstab on this system's NFS clients (so they will point at the correct server)
kerberos configurations
ethers and hosts NIS maps
DNS information
Netgroup information
cron jobs should be reviewed.
Other hostname-specific scripts and configuration files.

Here are the things you need absolutely have to change:
Solaris 2.x
/etc/nodename
/etc/hosts
/etc/hostname.*
/etc/net/*/hosts

don't forget to do a network services restart, and then issue a hostname command (I believe it doesn't always reread the host name as that is sent to the kernel prior to the network services restart. As N said, if it is a production server...it will be different. Especially if it serves up something like NIS,NIS+, or LDAP. You can also do a touch reconfigure command in solaris which will tell it to do a reconfigure boot in case you are on X86.

[ 25 February 2002: Message edited by: Keyser Soze ]