Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Aug 16, 2011 4:45 pm 
Offline
Senior Newbie

Joined: Tue May 17, 2011 5:27 pm
Posts: 5
Hi
I have a static ip debian and whenever I reboot this box, everything is fine but dns resolving is not working.
Code:
ping google.com
ping unknown host


So I add those dns servers on linode manager to /etc/resolv.conf
After this, ping dns resolving is ok. but after reboot same problem here again.
What should I do?
Thanks in advance


Top
   
 Post subject:
PostPosted: Tue Aug 16, 2011 5:08 pm 
Offline
Senior Member
User avatar

Joined: Wed Mar 17, 2004 4:11 pm
Posts: 554
Website: http://www.unixtastic.com
Location: Europe
Something is trashing /etc/resolv.conf. It might be the setup of your DHCP client if you use one or it could be some other misbehaving scripting. You don't use puppet or cfengine do you? Properly not.

Check your dhcp client config and boot up scripting. None of the standard RC scripts should trash /etc/resolv.conf so maybe it's something from /etc/rc.local or a non-system script.


The Linux habit of putting wrappers around wrappers around wrappers can get pretty annoying when things like this start happening. OpenBSD is much cleaner in that regard.


Top
   
 Post subject:
PostPosted: Tue Aug 16, 2011 6:10 pm 
Offline
Senior Newbie

Joined: Tue May 17, 2011 5:27 pm
Posts: 5
Well I can't figure it out what the heck is going on and ditched the static ip and using dhcp right now.
After first boot, dns resolving is working but I am not satisfied with this cheap solution.
Any further comments about this problem greatly appreciated.
Thanks.


Top
   
 Post subject:
PostPosted: Tue Aug 16, 2011 11:12 pm 
Offline
Senior Member

Joined: Fri Jan 09, 2009 5:32 pm
Posts: 634
If you're static, try completely uninstalling dhclient, you don't need it.


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


Who is online

Users browsing this forum: No registered users and 2 guests


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