How to set multiple nameservers in /etc/resolv.conf which sticks on reboot?
Posted
by
chrone
on Ask Ubuntu
See other posts from Ask Ubuntu
or by chrone
Published on 2014-06-06T18:45:28Z
Indexed on
2014/06/07
3:47 UTC
Read the original article
Hit count: 311
Ubuntu 14.04 Server edition only displays "nameserver 127.0.0.1" in "/etc/resolv.conf" on each reboot if the dns-nameservers in "/etc/network/interfaces" contains 127.0.0.1 and some other DNS such as Google Public DNS.
On /etc/network/interfaces I set as follows:
dns-nameservers 127.0.0.1 8.8.8.8
But after a reboot, /etc/resolv.conf gives me this:
nameserver 127.0.0.1
Shouldn't the "nameserver 8.8.8.8" listed in the /etc/resolv.conf too?
Thanks in advanced.
© Ask Ubuntu or respective owner