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

Re: Which resolv.conf file?



On Wed, Jul 31, 2019 at 09:21:32AM +0300, Reco wrote:
> On Wed, Jul 31, 2019 at 09:16:03AM +0300, Andrei POPESCU wrote:
> > On Mi, 31 iul 19, 09:06:36, Reco wrote:
> > > Assuming it is, and you're using ifupdown, you need to change
> > > "dns-nameserver" stanza in the interface definition.
> > 
> > Careful, in /etc/network/interfaces it's 'dns-nameservers' (mind the 
> > trailing 's'), because you can list more servers ;)
> 
> /usr/share/doc/resolvconf/README.gz disagrees with you:
> 
> * For each inet static logical interface through which a nameserver
>   is accessible, add lines like the following to /etc/network/interfaces .
> 
> 	  dns-nameserver 11.22.33.44
> 	  dns-nameserver 55.66.77.88
> 	  dns-search foo.org bar.com

Reco is correct.

isc-dhcp-client uses "domain-name-servers" in its configuration file,
whereas resolvconf uses "dns-nameserver".  Most likely, Andrei momentarily
confused the two.


Reply to: