solaris: changing hostname
I thought changing the machine’s hostname is as simple as I usually did in linux, it turns out not that easy. In solaris, I have to modify the hostname in at least 3 files:
- /etc/hostname.[interface name]
- /etc/hosts
- /etc/nodename
Even more for an older solaris versions, I have to modify these also:
- /etc/net/ticlts/hosts
- /etc/net/ticots/hosts
- /etc/net/ticotsord/hosts
- /etc/inet/ipnodes
phuuuh…