I suspect a VPN application from Mullvad may have broken some network configuration settings. My system hung while I was using it, and after restarting, I can connect to networks over WiFi and get an IP via DHCP, but I can't access or ping any websites by their domain names. I do get ping response from my router, and from, so it seems like it's just domain name resolution that's broken. But I went into my wifi settings and told it to use as the DNS, and I still can't get anywhere.

What can I do from here?

EDIT: I think I've found the root of the problem. It appears that every time NetworkManager sets up a network connection, it's setting the DNS server in /etc/resolv.conf to How do I stop it from doing this?

  • 1
    Can you ping from your box? What is the output of cat /etc/resolv.conf ? What is the output of ip a ? – Adathor Apr 14 '18 at 6:41
  • try "nslookup ubuntu.com" to see if dns works – user58634 Apr 14 '18 at 10:07
  • I can ping, but nslookup cant reach Ubuntu.com. – K Starling Apr 15 '18 at 2:21

I suggest that you reconfigure resolvconf:

sudo dpkg-reconfigure resolvconf

Say yes to "prepare /etc/resolve.conf for dynamic updates?" and reboot.

Is there any improvement?

| improve this answer | |
  • Nothing changed. I’ve also tested network over Ethernet, and it’s the same, I can ping up addresses but no names resolve. – K Starling Apr 15 '18 at 2:22

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.