| Author |
Message |
thmo
Joined: 24 Jan 2010
Posts: 16
Location: Herning
|
| Posted: Wed Jun 08, 2011 1: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? |
|
| Back to top |
|
glg
Joined: 09 Jan 2009
Posts: 505
|
| Posted: Wed Jun 08, 2011 1: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? |
|
| Back to top |
|
waldo
Joined: 21 May 2009
Posts: 336
|
| Posted: Wed Jun 08, 2011 4:47 pm Post subject: |
|
|
| http://www.debianadmin.com/change-hostname-or-server-name-of-a-linux-machine.html |
|
| Back to top |
|
otherbbs
Joined: 30 Oct 2005
Posts: 97
Location: 37.274,-97.393 (KEGT)
|
| Posted: Wed Jun 08, 2011 11:18 pm 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/configuring-static-ip-interfaces
http://library.linode.com/getting-started#sph_set-the-hostname
--
Travis |
|
| Back to top |
|
Guspaz
Joined: 26 May 2009
Posts: 1150
Location: Montreal, QC
|
| Posted: Thu Jun 09, 2011 10: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. |
|
| Back to top |
|
thmo
Joined: 24 Jan 2010
Posts: 16
Location: Herning
|
| Posted: Fri Jun 10, 2011 6:59 am Post subject: |
|
|
| @Waldo - Thx the link info worked perfectly haven't reverted since i used it's info. |
|
| Back to top |
|
thmo
Joined: 24 Jan 2010
Posts: 16
Location: Herning
|
| Posted: Sat Jun 11, 2011 10:45 am Post subject: |
|
|
| said to soon - Reverted to default again - Can't really figure what causes it :/ |
|
| Back to top |
|
sjmadsen
Joined: 27 Oct 2011
Posts: 1
|
| Posted: Thu Oct 27, 2011 7: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. |
|
| Back to top |
|
vjm
Joined: 24 Oct 2011
Posts: 5
Location: Helsinki, EU
|
| Posted: Fri Oct 28, 2011 5: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... |
|
| Back to top |
|
| |