I have both wired and wireless connections to the same LAN.

If I disable wireless then there is only one instance of the address
left in nm-dns-dnsmasq.conf.

If I instead disconnect the Ethernet cable then there is only one
instance of the address left in nm-dns-dnsmasq.conf.

So it seems that the two lines correspond to two interfaces, eth0 and
wlan0, by which the (same) nameserver address can be reached.

Whatever the cause of the duplication might be, though, I'd think that
NM should de-duplicate the list of addresses it gives to dnsmasq.

** Summary changed:

- NM writes duplicate lines in /var/run/nm-dns-dnsmasq.conf
+ If it obtains the same nameserver address for multiple interfaces, NM fails 
to de-duplicate the list of addresses it gives to dnsmasq via 
nm-dns-dnsmasq.conf and just includes the same address multiple times

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to network-manager in Ubuntu.
https://bugs.launchpad.net/bugs/1015493

Title:
  If it obtains the same nameserver address for multiple interfaces, NM
  fails to de-duplicate the list of addresses it gives to dnsmasq via
  nm-dns-dnsmasq.conf and just includes the same address multiple times

Status in “network-manager” package in Ubuntu:
  New

Bug description:
  From /var/log/syslog:

  Jun 20 10:03:25 tenerife dhclient: DHCPREQUEST of 192.168.2.103 on eth0 to 
255.255.255.255 port 67
  Jun 20 10:03:25 tenerife dhclient: DHCPOFFER of 192.168.2.103 from 
192.168.2.254
  Jun 20 10:03:25 tenerife dhclient: DHCPACK of 192.168.2.103 from 192.168.2.254
  Jun 20 10:03:25 tenerife dhclient: bound to 192.168.2.103 -- renewal in 
276336 seconds.
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info> (eth0): DHCPv4 state 
changed preinit -> bound
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info>   address 192.168.2.103
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info>   prefix 24 
(255.255.255.0)
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info>   gateway 192.168.2.254
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info>   nameserver 
'192.168.2.254'
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info> Activation (eth0) Stage 
5 of 5 (IPv4 Configure Commit) scheduled...
  Jun 20 10:03:25 tenerife NetworkManager[1090]: <info> Activation (eth0) Stage 
5 of 5 (IPv4 Commit) started...

  # cat /var/run/nm-dns-dnsmasq.conf
  server=192.168.2.254
  server=192.168.2.254
  --- 
  ApportVersion: 2.0.1-0ubuntu8
  Architecture: amd64
  DistroRelease: Ubuntu 12.04
  EcryptfsInUse: Yes
  IfupdownConfig:
   auto lo
   iface lo inet loopback
  InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 
(20120425)
  IpRoute:
   default via 192.168.20.254 dev eth0  proto static 
   169.254.0.0/16 dev eth0  scope link  metric 1000 
   192.168.20.0/24 dev eth0  proto kernel  scope link  src 192.168.20.103  
metric 1 
   192.168.20.0/24 dev wlan0  proto kernel  scope link  src 192.168.20.196  
metric 9
  NetworkManager.state:
   [main]
   NetworkingEnabled=true
   WirelessEnabled=true
   WWANEnabled=true
   WimaxEnabled=true
  Package: network-manager 0.9.4.0+git201206081144.2efeac8-0ubuntu1th1
  PackageArchitecture: amd64
  ProcEnviron:
   TERM=xterm
   PATH=(custom, user)
   LANG=en_US.UTF-8
   SHELL=/bin/bash
  ProcVersionSignature: Ubuntu 3.2.0-26.41-generic 3.2.19
  Tags:  precise
  Uname: Linux 3.2.0-26-generic x86_64
  UnreportableReason: This is not an official Ubuntu package. Please remove any 
third party package and try again.
  UpgradeStatus: No upgrade log present (probably fresh install)
  UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo
  mtime.conffile..etc.NetworkManager.NetworkManager.conf: 
2012-07-04T09:47:16.565166
  nmcli-dev:
   DEVICE     TYPE              STATE         DBUS-PATH                         
         
   wlan0      802-11-wireless   connected     
/org/freedesktop/NetworkManager/Devices/1  
   eth0       802-3-ethernet    connected     
/org/freedesktop/NetworkManager/Devices/0
  nmcli-nm:
   RUNNING         VERSION    STATE           NET-ENABLED   WIFI-HARDWARE   
WIFI       WWAN-HARDWARE   WWAN      
   running         0.9.4.0    connected       enabled       enabled         
enabled    enabled         disabled

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/network-manager/+bug/1015493/+subscriptions

-- 
Mailing list: https://launchpad.net/~desktop-packages
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~desktop-packages
More help   : https://help.launchpad.net/ListHelp

Reply via email to