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: > > > > * 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.
It might be the documentation that's confused. Here's an extract from man resolvconf ✄✄✄✄✄✄✄✄ ifup The ifup program can be used to configure network interfaces according to settings in /etc/network/interfaces. To make ifup push nameserver information to resolvconf when it configures an interface the administrator must add dns- option lines to the relevant iface stanza in interfaces(5). The following option names are accepted: dns-nameserver, dns-search, and dns-sortlist. To add a nameserver IP address, add an option line consisting of dns-nameserver and the address. To add multiple nameserver addresses, include multiple such dns-nameserver lines. dns-nameserver 192.168.1.254 dns-nameserver 8.8.8.8 To add search domain names, add a line beginning with dns-search. dns-search foo.org bar.com The dns-nameservers option is also accepted and, unlike dns-nameserver, can be given mul‐ tiple arguments, separated by spaces. The dns-domain option is deprecated in favor of dns-search. The resulting stanza might look like the following example. iface eth0 inet static address 192.168.1.3 netmask 255.255.255.0 gateway 192.168.1.1 dns-nameserver 192.168.1.254 dns-nameserver 8.8.8.8 dns-search foo.org bar.com ✄✄✄✄✄✄✄✄ 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. Cheers, David.