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

Re: Which resolv.conf file?



On Wed, 31 Jul 2019 08:59:11 -0500
David Wright <deblis@lionunicorn.co.uk> wrote:

> On Wed 31 Jul 2019 at 08:50:34 (-0400), Greg Wooledge wrote:
> > 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:

...

> > 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.
> 
> It might be the documentation that's confused. Here's an extract from
> man resolvconf

...

> IOW you should be able to write
> 
>            dns-nameserver 192.168.1.254
>            dns-nameserver 8.8.8.8
> 
> or
> 
>            dns-nameservers 192.168.1.254 8.8.8.8
> 
> But I have no idea whether
> 
>            dns-nameservers 8.8.8.8
> 
> and
> 
>            dns-nameservers 192.168.1.254
>            dns-nameservers 8.8.8.8
> 
> are supported. Messy.

https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=718021

Celejar


Reply to: