Set DNS Servers For All Wifi Networks

Tom H tomh0665 at gmail.com
Thu Sep 11 14:41:52 UTC 2014


On Thu, Sep 11, 2014 at 7:10 AM, Martín Cigorraga
<martincigorraga at gmail.com> wrote:
>
> TL;DR, have anyone mentioned /etc/resolv.conf.head?
>
> I myself use OpenNIC as my first choice and Yandex as a fallback (while
> still having OpenDNS set on my home router, need to switch it to Yandex too
> though).
>
> So the file looks like:
>
> /etc > cat resolv.conf.head
> # OpenNIC
> nameserver 37.235.52.191
>
> # Yandex
> nameserver 77.88.8.8
> nameserver 77.88.8.1
>
> options timeout:1
>
> And /etc/resolv.conf looking like:
> /etc > cat resolv.conf
> # Generated by resolvconf
> # OpenNIC
> nameserver 37.235.52.191
>
> # Yandex
> nameserver 77.88.8.8
> nameserver 77.88.8.1
>
> options timeout:1
> nameserver 208.67.222.222
> nameserver 208.67.220.220

AFAIK "resolv.conf.head" and "resolv.conf.tail" are only read/used by dhcpcd5.

I'm also pretty sure that "resolv.conf" can only have two nameservers
defined. (A libc limit?)




More information about the ubuntu-users mailing list