Linode Forum Index Linode Forum
Linode Community Forums
 


DNS problem on Debian box

Click here to go to the original topic

 
       Linode Forum Index -> Linux Networking
Author Message
zvezda



Joined: 17 May 2011
Posts: 5

Posted: Tue Aug 16, 2011 3:45 pm    Post subject: DNS problem on Debian box  

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
Back to top  
sednet



Joined: 17 Mar 2004
Posts: 212
Location: Europe

Posted: Tue Aug 16, 2011 4:08 pm    Post subject:  

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.
Back to top  
zvezda



Joined: 17 May 2011
Posts: 5

Posted: Tue Aug 16, 2011 5:10 pm    Post subject:  

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.
Back to top  
glg



Joined: 09 Jan 2009
Posts: 505

Posted: Tue Aug 16, 2011 10:12 pm    Post subject:  

If you're static, try completely uninstalling dhclient, you don't need it.
Back to top  
 
       Linode Forum Index -> Linux Networking
Page 1 of 1