After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 774337 - dns breaks on Ubuntu since 9/26/2016
dns breaks on Ubuntu since 9/26/2016
Status: RESOLVED NOTGNOME
Product: NetworkManager
Classification: Platform
Component: IP and DNS config
1.2.x
Other Linux
: Normal major
: ---
Assigned To: NetworkManager maintainer(s)
NetworkManager maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2016-11-12 19:28 UTC by jackieb
Modified: 2016-11-19 21:04 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description jackieb 2016-11-12 19:28:08 UTC
When the network interface providing dns is managed by network manager, dns fails on relaunch of the interface

test dns:
dig x$(date +%N).blogspot.com +short
if it fails, there is no output

verify that Internet is available:
dig @8.8.8.8 x$(date +%N).blogspot.com +short
blogspot.l.googleusercontent.com.
216.58.194.129

provoke the problem:
- unplug and re-plug the network interface (usb Ethernet)
- or resume from standby

quick-fix to regain working dns: restart Network Manager
sudo systemctl restart NetworkManager
- dns now works again

Cause: for Ubuntu 16.10 Yakketi, this appeared shortly before 160926
probably with network-manager package 1.2.2-0ubuntu8

It appears the problem is fixed permanently by installing an old version of network-manager
wget https://launchpad.net/ubuntu/+source/network-manager/1.2.2-0ubuntu4/+build/10026930/+files/network-manager_1.2.2-0ubuntu4_amd64.deb
sudo dpkg -i network-manager_1.2.2-0ubuntu4_amd64.deb
- this completes for 16.10 on 161112

dns appears to be ok, it's just not working
for example, one can do:
nmcli d show | grep DNS
IP4.DNS[1]: 192.168.1.15

the Network Manager-provided dnsmasq is just not using that dns server that network manager knows about.

https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1629620
Comment 1 Thomas Haller 2016-11-13 11:16:13 UTC
sounds like dnsmasq bug https://bugzilla.redhat.com/show_bug.cgi?id=1367772
Comment 2 jackieb 2016-11-19 21:04:17 UTC
The bug is present in Debian package dnsmasq-base 2.76-4
A new package has not been built with the fix of 160830

Here is a patched package for Ubuntu 16.10 amd64
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1639776/comments/7