1

I upgraded to artful and suddenly have DNS problems. It looks like NetworkManager is setting a custom nameserver in /etc/resolv.conf

# Generated by NetworkManager
search fritz.box
nameserver 127.0.1.1

When I change the line to 192.168.1.1, it works again. But, it gets overwritten a next network change.

Note: dnsmasq is not installed!

1
  • Did you affirmatively remove dnsmasq? It is typically installed by default in 17.10. What is the result of the terminal command: sudo resolvconf -u ?
    – chili555
    Nov 26, 2017 at 14:56

3 Answers 3

3

The following resolved to problem:

sudo dpkg-reconfigure resolvconf

Now we /etc/resolv.conf contains this:

# 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
# 127.0.0.53 is the systemd-resolved stub resolver.
# run "systemd-resolve --status" to see details about the actual nameservers.

nameserver 127.0.0.53
search fritz.box
1
  • If your problem is solved please accept your own answer so people see that your question is already solved.
    – derHugo
    Nov 30, 2017 at 7:27
1

In my case, the prevailing DNS entry is 127.0.1.1 although there is no service running for that IP. Everytime I reboot, my machine don't have DNS resolution.

Apparently, the configuration in /etc/NetworkManager/NetworkManager.conf is missing dns=dnsmasq which is expected because NetworkManager will setup said service at 127.0.1.1 (dnsmasq is expected to be installed).

I believe there are some crufts left from previous incarnation/installation where the DNS address is supposed to be 127.0.0.1 (this service is also running on my computer). This should be looked into and cleaned up topside.

1
  • I have exactly this problem. Fresh install of ubuntu 17.10, wired ethernet over DHCP, all default packages, and DNS doesn't work. resolv.conf lists 127.0.1.1, but nothing is running on UDP port 53 locally.
    – Jon Watte
    Feb 9, 2018 at 19:57
0

In my case there was no dns=dnsmasq line in /etc/NetworkManager/NetworkManager.conf file and /etc/resolv.conf was still overwritten by Network Manager to have only nameserver 127.0.1.1

sudo dpkg-reconfigure resolvconf didn't help.

The fix was to restore a symlink for proper updating:

sudo ln -sf /run/resolvconf/resolv.conf /etc/resolv.conf

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .