- A mí me está funcionando este otro método:
root@edson-VirtualBox:/home/edson# cat /etc/network/interfaces
# interfaces(5) file used by ifup(8) and ifdown(8)
auto lo
iface lo inet loopback
dns-nameservers 208.67.222.222 208.67.220.220
-- He agregado la línea:
dns-nameservers 208.67.222.222 208.67.220.220, luego he reiniciado el PC para estar seguro, al final he revisado /etc/resolv.conf:
root@edson-VirtualBox:/home/edson# cat /etc/resolv.conf
# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
# DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 208.67.222.222
nameserver 208.67.220.220
nameserver 127.0.1.1
root@edson-VirtualBox:/home/edson# nslookup www.google.com
Server: 208.67.222.222
Address: 208.67.222.222#53
Non-authoritative answer:
Name: www.google.com
Address: 172.217.8.132