I’ve had to change the hostname of a number of Solaris systems over the past few weeks, some of which were (sparse) Solaris zones. Here are some notes for my/your future reference:
|File||Global Zones||Non-Global Zones|
- You will need to replace the ifname above with the name of the appropriate interface on your system.
- Depending on your system configuration, I may of course be missing some files. However, the above worked for me!
- None of the systems in question were running IPv6