| Linode Forum https://forum.linode.com/ |
|
| [Solved]Debian 6.0 reverts to default hosthame https://forum.linode.com/viewtopic.php?f=19&t=7227 |
Page 1 of 1 |
| Author: | thmo [ Wed Jun 08, 2011 2:06 pm ] |
| Post subject: | [Solved]Debian 6.0 reverts to default hosthame |
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? |
|
| Author: | glg [ Wed Jun 08, 2011 2:38 pm ] |
| Post subject: | Re: Debian 6.0 reverts to default hosthame |
thmo wrote: 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? |
|
| Author: | waldo [ Wed Jun 08, 2011 5:47 pm ] |
| Post subject: | |
http://www.debianadmin.com/change-hostn ... chine.html |
|
| Author: | otherbbs [ Thu Jun 09, 2011 12:18 am ] |
| Post subject: | Re: Debian 6.0 reverts to default hosthame |
Why not set up your linode network statically and eliminate dhcp altogether? http://library.linode.com/networking/co ... interfaces http://library.linode.com/getting-start ... e-hostname -- Travis |
|
| Author: | Guspaz [ Thu Jun 09, 2011 11:00 am ] |
| Post subject: | Re: Debian 6.0 reverts to default hosthame |
otherbbs wrote: 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. |
|
| Author: | thmo [ Fri Jun 10, 2011 7:59 am ] |
| Post subject: | |
@Waldo - Thx the link info worked perfectly haven't reverted since i used it's info. |
|
| Author: | thmo [ Sat Jun 11, 2011 11:45 am ] |
| Post subject: | |
said to soon - Reverted to default again - Can't really figure what causes it :/ |
|
| Author: | sjmadsen [ Thu Oct 27, 2011 8:55 pm ] |
| Post subject: | |
Check /etc/default/dhcpcd and comment out the SET_HOSTNAME line. 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. |
|
| Author: | vjm [ Fri Oct 28, 2011 6:23 am ] |
| Post subject: | |
I actually had the same issue, but after rebooting (not a good solution I know, but I wanted to see if that works) the hostname sticks... |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|