[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: resolv.conf misbehaving



On Thu, Feb 20, 2014 at 05:17:22PM +0200, Danny wrote:
> Hi guys,
> 
> The past weekend I upgraded from Debian v3.0 to the latest Debian stable (7.0 or
> something) ... (wish I never did) ...

The correct way to upgrade is, unfortunately,
3.0->4.0->5.0->6.0->7.0->7.4. If you went from 3.0 straight to 7.0 and
this is the worst of your problems, you're lucky.

> 
> 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 the file /etc/resolv.conf is a symlink, then it's possible that the
package "resolvconf" is updating it. In that case, you can add
"dns-nameservers 10.0.0.2 10.0.0.5" to your interface stanza in
/etc/network/interfaces.

Attachment: signature.asc
Description: Digital signature


Reply to: