[Solved]Debian 6.0 reverts to default hosthame
I've commented out the part in /etc/default/dhcpd #SET_HOSTNAME='yes' - But it doesn't help?
Anything else i'm missing?
8 Replies
@thmo:
Since my last re-install on my node it keeps reverting to the default hostname. Typically it takes around an 1 hour where i'm not logged in to take affect. And it's getting quite annoying to set it each time I've logged out
:) I've commented out the part in /etc/default/dhcpd #SET_HOSTNAME='yes' - But it doesn't help?
Anything else i'm missing?
did you recycle dhcpd after making that change?
--
Travis
@otherbbs:
Why not set up your linode network statically and eliminate dhcp altogether?
This makes linodes less portable. Moving/cloning a linode then requires manual configuration through Lish (since your moved/cloned linode won't be accessible to the outside world). If you use DHCP, it just comes up with a new IP.
IMO, you shouldn't be ditching DHCP unless you specifically need to configure something static.
I also set up the reverse DNS for my server's IP. My theory is that DHCP is updating the hostname when it renews the lease. Telling it not to update on renewal should fix it, but if for some reason it doesn't, perhaps something else is using 'hostname -f', which the reverse DNS should handle.