Fix for DNS problems after upgrading from Ubuntu 16.04 to Ubuntu 16.10

Problem

I have recently upgraded my desktop machind from ubuntu 16.04 to ubuntu 16.10 and after reboot some of the websites are not working.

Solution 1

Disable dnsmasq

Edit /etc/NetworkManager/NetworkManager.conf with the following command

gksu gedit /etc/NetworkManager/NetworkManager.conf

Enter in your password when prompted.

Comment out the line dns=dnsmasq

#dns=dnsmasq

and then restart Network Manager using the following command

sudo restart network-manager

If you get /com/ubuntu/upstart: Connection refused error try the following command

sudo service network-manager restart

Solution 2

Restart dnsmasq service using the following command

sudo service dnsmasq restart

Solution 3

Edit /etc/nsswitch.conf file

gksu gedit /etc/nsswitch.conf

and change the following line

From

hosts: files resolve [!UNAVAIL=return] mdns4_minimal [NOTFOUND=return] dns

to

hosts: files mdns4_minimal [NOTFOUND=return] resolve [!UNAVAIL=return] dns

Save and exit the file

If you have any other solution worked for you please share with us.

Sponsored Link

You may also like...

3 Responses

  1. Johan says:

    Hi,
    I’ve same problem.
    Thank’s a lot for your fix.
    Best,

  2. R. Daneel Olivaw says:

    I seem to encounter this issue after emerging from suspend mode on Ubuntu 16.04.
    The issue is not permanent on my machine (MacBookPro) as a reboot solves the issue.
    I later on discovered that it is possible to recover from this by restarting the NetworkManager daemon:
    sudo service NetworkManager restart
    I am assuming that it restarts the dnsmasq process behind the scenes.
    HTH

  3. Christophe Van Reusel says:

    Hallo nice comment. Personally I’m still using ubuntu 16.04 LTS very happy about it. I well had regularly dns resolve issues. But now I do have a brand new router ciscoRV042G . All woks fine now.
    Double stack ipv4/ipv6
    Using networkmanager all settings auto.
    The only thing I had to do was apply the solution one . i commented line
    dns=dnsmasq
    into
    /etc/NetworkManager/NetworkManager.conf file.
    Now if I disable ipv4 true network manager setup . stop restart the specific network adapter. All is running full at ipv6 only. All websites who do support already ipv6 are working fine as well servers/clients. No dns issues. Obviousely still a lot of websites and or server/clients app’s are only ipv4 that’s why double stack running is still required. However with dnsmasq commented and ipv6 running fine overall network browsing and search has improved drastically.

Leave a Reply

Your email address will not be published. Required fields are marked *