Seems that I can't change resolv.conf
: changes are reset after reboot or disabling/enabling Wi-Fi. It contains nameserver 127.0.0.1
, and I can't connect to any site. When I manually change it to nameserver 8.8.8.8
, everything works.
What I've tried:
Changing
/etc/resolvconf/resolv.conf.d/base
. Currently it containsnameserver 8.8.8.8 nameserver 8.8.4.4
Editing
/etc/dhcp/dhclient.conf
It had the lines
request subnet-mask, broadcast-address, time-offset, routers, dhcp6.domain-search, dhcp6.fqdn, dhcp6.sntp-servers, netbios-scope, interface-mtu,rfc3442-classless-static-routes, ntp-servers, domain-name-servers, dhcp6.name-servers, netbios-name-servers;
I removed the last three, added line
prepend domain-name-servers 8.8.8.8, 8.8.4.4;
and ran
/etc/init.d/networking restart
, but it didn't help either.
sudo resolvconf -u
takes no effect on content of resolv.conf and only produces a warning: "/etc/resolvconf/update.d/libc: Warning: /etc/resolv.conf is not a symbolic link to /run/resolvconf/resolv.conf". In Wi-Fi settings for network I'm using I've set 'Automatic (DHCP)' and entered8.8.8.8, 8.8.4.4
as DNS. – user3447843 Feb 17 '18 at 22:37echo 8.8.8.4 >> /etc/resolv.conf
on startup seems to work, but only until I reconnect to network. – user3447843 Feb 17 '18 at 22:42