Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Wed Jun 08, 2011 2:06 pm 
Offline
Senior Newbie

Joined: Sun Jan 24, 2010 4:21 pm
Posts: 16
Location: Herning
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?


Last edited by thmo on Fri Jun 10, 2011 8:00 am, edited 1 time in total.

Top
   
PostPosted: Wed Jun 08, 2011 2:38 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
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?


Top
   
 Post subject:
PostPosted: Wed Jun 08, 2011 5:47 pm 
Offline
Senior Member

Joined: Thu May 21, 2009 3:19 am
Posts: 336
http://www.debianadmin.com/change-hostn ... chine.html


Top
   
PostPosted: Thu Jun 09, 2011 12:18 am 
Offline
Senior Member

Joined: Sun Oct 30, 2005 7:52 pm
Posts: 97
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


Top
   
PostPosted: Thu Jun 09, 2011 11:00 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
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.


Top
   
 Post subject:
PostPosted: Fri Jun 10, 2011 7:59 am 
Offline
Senior Newbie

Joined: Sun Jan 24, 2010 4:21 pm
Posts: 16
Location: Herning
@Waldo - Thx the link info worked perfectly haven't reverted since i used it's info.


Top
   
 Post subject:
PostPosted: Sat Jun 11, 2011 11:45 am 
Offline
Senior Newbie

Joined: Sun Jan 24, 2010 4:21 pm
Posts: 16
Location: Herning
said to soon - Reverted to default again - Can't really figure what causes it :/


Top
   
 Post subject:
PostPosted: Thu Oct 27, 2011 8:55 pm 
Offline

Joined: Thu Oct 27, 2011 8:51 pm
Posts: 1
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.


Top
   
 Post subject:
PostPosted: Fri Oct 28, 2011 6:23 am 
Offline
Senior Newbie

Joined: Mon Oct 24, 2011 3:19 am
Posts: 5
Location: Helsinki, EU
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...


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group