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

Re: Which resolv.conf file?



On Mi, 31 iul 19, 02:37:40, Bob Bernstein wrote:
> On Wed, 31 Jul 2019, Andrei POPESCU wrote:
> 
> > It depends a lot on what combination of packages you have installed and
> > are using.
> > 
> > Starting with the obvious ones, please show the output of:
> 
> Ok. One dotted-four required obfuscation in my humble judgement. I hope I
> got your list correctly:
> 
> $ apt list resolvconf
> Listing... Done
> resolvconf/oldstable,now 1.79 all [installed]

Ok
 
> $ apt list network-manager
> Listing... Done
> network-manager/oldstable 1.6.2-3+deb9u2 amd64

Not installed.

> ls -l /etc/resolv.conf
> lrwxrwxrwx 1 root root 31 Jun 16 23:51 /etc/resolv.conf -> /etc/resolvconf/run/resolv.conf

Ok
 
> $ cat /etc/resolvconf/run/resolv.conf # Dynamic resolv.conf(5) file for
> glibc resolver(3) generated by resolvconf(8)
> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
> nameserver aaa.bbb.ccc.ddd (obfuscated)
> nameserver 8.8.8.8
> nameserver 127.0.0.53

Are you using a local DNS server?

You have three entries here...
 
> $ cat /etc/network/interfaces
> # This file describes the network interfaces available on your system
> # and how to activate them. For more information, see interfaces(5).
> 
> source /etc/network/interfaces.d/*
> 
> auto lo eth0
> iface lo inet loopback
> 
> iface eth0 inet static
>     address 192.168.1.40
>     netmask 255.255.255.0
>     gateway 192.168.1.1
>     dns-nameserver 8.8.8.8

... but only one entry here.

Anyway, if you want to add 'nameserver' entries you have to add them as 
'dns-nameserver' in /etc/network/interfaces.

If you want to remove some the other ones you have to trace which 
package is adding them (via resolvconf). Could be a dhcp client, DNS 
server, another network manager (e.g wicd), etc.

Hope this helps,
Andrei
-- 
http://wiki.debian.org/FAQsFromDebianUser

Attachment: signature.asc
Description: PGP signature


Reply to: