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 682153 - Duplicate DNS entries result in all entries being erased when one interface goes down
Duplicate DNS entries result in all entries being erased when one interface g...
Status: RESOLVED FIXED
Product: NetworkManager
Classification: Platform
Component: general
0.9.x
Other Linux
: Normal minor
: ---
Assigned To: Dan Williams
NetworkManager maintainer(s)
Depends on:
Blocks: nm-0.9.8
 
 
Reported: 2012-08-18 11:35 UTC by pwiobbiosko
Modified: 2013-02-18 15:38 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description pwiobbiosko 2012-08-18 11:35:11 UTC
I noticed this problem previously when using localhost but now it happens again on the network using the same network.

Basically, I have one DNS server that I wish to use. This might also be doing DHCP via wireless and wired. So I had to use the normal keyfile setup because the distro doesn't support metrics on the interferfaces. So the configuration is thus.

              | ---< wired metric 5 >-------|
<Machine 1>---|                             |- <DNS and router> --- <internet>
              | ---< wireless metric 10>----|

The problem is that the router can only have one IP address and I would like it to cache the DNS entries. So I have two interfaces what might be active at any one time because I can connect to the same network when I need to use some other machine etc. So both interfaces can be up with the same DNS server.

The problem is:
Connect to wireless - DNS server is updated with correct address (with or without resolvconf)

Now connect to wired - No DNS server needs to be updated as it is the same one.
Now disconnect the wireless (to be honest it gets disconnected because some other person is blasting on the same freq, so it is happening quite often), and you lose the DNS server.

Chattr +i is a temporary work around but this doesn't work with resolvconf.
Comment 1 pwiobbiosko 2012-08-18 11:36:31 UTC
Or in a nutshell, when you have two active interfaces managed by NetworkManager that point to the same namerserver, and one is disconnect, the single nameserver entry is deleted. BAD.
Comment 2 Dan Winship 2013-02-01 17:57:10 UTC
what distro / dns plugins?
Comment 3 Dan Winship 2013-02-18 15:38:47 UTC
(In reply to comment #0)
> Chattr +i is a temporary work around but this doesn't work with resolvconf.

There was a bug in NM's resolvconf support that caused exactly the problem you're describing. This is fixed in the upcoming 0.9.8 release