I've already posted on configuring DHCP + Dynamic DNS for some operating systems.
I still claim that that's the only way to go for dynamic, trusted networks.
So after RedHat, Debian/Ubuntu, Windows, it's about time to stop the IP suffering with Solaris as well:
- Make sure /etc/nodename contains the FQDN, e.g. "snoopy.ac.uk"
- touch /etc/dhcp.<interface name> . There are two peculiar parameters I'm not fully sure about their meaning (how come they're not needed in other OSes?) - but here is what I used:
- add "primary" (a separate line) if it's the primary interface.
- Add "wait <seconds>" (a separate line) - I put "wait 60" to be on the safe side.
- /etc/hostname.<interface name> should have the hostname inside. NOTE! It's the hostname dhcp client would send (Option 12) to the server for Dynamic DNS registration. According to /etc/defaults/dhcpagent, the format is "inet name", e.g. "inet snoopy"
That should be it, then. Please add your comments and corrections.
Pingback: Make DHCP auto-update the DNS | Web 0.2
Great article!
It works but I didn't use no. 2.
Keep it up!
In solaris 11 the /etc/nodename is no longer exist.
In order to update your hostname on solaris 11 run :
# svccfg -s node setprop config/nodename = "myhostname"
# svcadm refresh node
Shay, Thanks for this comment! 🙂
Didn't get a grip on Solaris 11 yet...