For the thrill-seekers among us, you can also do it "by-hand"
by editing these files (possibly more?) with your fav. editor:
/etc/defaultdomain Set the default NIS domain name, if any, if it changed.
/etc/defaultrouter Set the default router's IP address, if it changed.
/etc/hostname.le0 (or .hme0 or ?) Update if the hostname changed.
/etc/hostname6.le0 (or .hme0 or ?) Ditto, if you use IPv6.
/etc/hostname6.ip.tun0 Update if you use a IPv4/IPv6 tunnel (e.g., 6bone)
/etc/nodename Update if the hostname changed.
/etc/nsswitch.conf Update if your name resolution method/order changed.
/etc/resolv.conf Update if your name servers/domain changed (DNS only).
/etc/inet/hosts Make sure your IP address is updated or added here.
List your FQDN is first, before the short hostname.
E.g., "192.168.128.64 foo.bar.com foo"
/etc/inet/ipnodes IPv6 version of hosts file (Solaris 8+).
/etc/inet/netmasks Set your network number & netmask, if it changed.
/etc/inet/networks Set your network name, if it changed.
/etc/net/ticlts/hosts For the streams-level loopback interface.
/etc/net/ticots/hosts For the streams-level loopback interface.
/etc/net/ticotsord/hosts For the streams-level loopback interface.
To verify you changed all the files, type this as root:
find /etc -type f -print|xargs grep `hostname`
[Thanks to Parthiv Shah, Vijay Brian Gupta, Michael Wang, and Igor Sobrado,
Chad Treece]
[an error occurred while processing this directive]