2014-02-20 16:17 GMT+01:00 Danny <dannydeb...@gmail.com>: > Hi guys, > > The past weekend I upgraded from Debian v3.0 to the latest Debian stable > (7.0 or > something) ... (wish I never did) ... > > However, I have noticed that my resolv.conf gets overwritten by something > after > every reboot. The Debian server resolves all local (internal) addresses > and the > ADSL router resolves all external addresses. > > Normally my resolv.conf looked like this > > nameserver 10.0.0.2 (ADSL router) > nameserver 10.0.0.5 (Debian server to resolve local addresses) > > Now it get's overwritten with : > > nameserver 10.0.0.2 > > I need to reslove both local and external addresses. At the moment I have > to > manually add the 10.0.0.5 into the resolv.conf file after rebooting. > > Any help or pointers?
If you are in a hurry, a quick and really dirty trick is to write your custom resolv.conf and add the immutable attribute to it using chattr :-) You probably want to get rid of those many programs which write continuosly resolv.conf and use /etc/network/interfaces dns-nameservers r/