DNS problem on Debian box
I have a static ip debian and whenever I reboot this box, everything is fine but dns resolving is not working.
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
3 Replies
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.
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.