← Back to team overview

touch-packages team mailing list archive

[Bug 1449083] [NEW] dnsmasq reverses order of dns servers

 

Public bug reported:

I have a carefully sorted order of dns servers that my dhcp server gives out.
When booting lubuntu, I can't resolve names that should be resolvable by the first two name servers from the list.
The names are local private names, but since the local nameserver is first, I expect them to resolve.
But apparently because the order has been reversed, resolving fails.

rhialto@glicca:~$ lsb_release -rd
Description:	Ubuntu 14.04.2 LTS
Release:	14.04

rhialto@glicca:~$ apt-cache policy dnsmasq-base
dnsmasq-base:
  Installed: 2.68-1
  Candidate: 2.68-1
  Version table:
 *** 2.68-1 0
        500 http://nl.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
        100 /var/lib/dpkg/status

Extract from /var/log/messages (I munged a few numbers here and there).
Note how the order at the end is the reverse of the first one.

Apr 27 16:04:49 glicca NetworkManager[783]: <info> (eth0): DHCPv4 state changed nbi -> preinit
Apr 27 16:04:49 glicca dhclient: Listening on LPF/eth0/00:22:xxxxxxxx
Apr 27 16:04:49 glicca dhclient: Sending on   LPF/eth0/00:22:xxxxxxxx
Apr 27 16:04:49 glicca dhclient: Sending on   Socket/fallback
Apr 27 16:04:49 glicca dhclient: DHCPREQUEST of 10.0.0.14 on eth0 to 255.255.255.255 port 67 (xid=0x72024df1)
Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 0.ubuntu.pool.ntp.org 1
Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 1.ubuntu.pool.ntp.org 1
Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 2.ubuntu.pool.ntp.org 1
Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 3.ubuntu.pool.ntp.org 1
Apr 27 16:04:49 glicca dhclient: DHCPACK of 10.0.0.14 from 10.0.0.16
Apr 27 16:04:49 glicca dhclient: bound to 10.0.0.14 -- renewal in 247908 seconds.
Apr 27 16:04:49 glicca NetworkManager[783]: <info> (eth0): DHCPv4 state changed preinit -> reboot
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   address 10.0.0.14
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   prefix 24 (255.255.255.0)
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   gateway 10.0.0.16
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   hostname 'glicca.falu.nl'
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '83.162.x.y'
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '10.0.0.16'
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '194.109.104.104'
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '194.109.9.99'
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '194.109.6.66'
Apr 27 16:04:49 glicca NetworkManager[783]: <info>   domain name 'falu.nl'
Apr 27 16:04:49 glicca NetworkManager[783]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
Apr 27 16:04:50 glicca NetworkManager[783]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
Apr 27 16:04:50 glicca avahi-daemon...
Apr 27 16:04:51 glicca NetworkManager[783]: <info> (eth0): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
Apr 27 16:04:51 glicca NetworkManager[783]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
Apr 27 16:04:51 glicca NetworkManager[783]: <info> (wlan0): supplicant interface state: disconnected -> inactive
Apr 27 16:04:51 glicca NetworkManager[783]: <info> (eth0): device state change: secondaries -> activated (reason 'none') [90 100 0]
Apr 27 16:04:51 glicca NetworkManager[783]: <info> NetworkManager state is now CONNECTED_GLOBAL
Apr 27 16:04:51 glicca NetworkManager[783]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
Apr 27 16:04:51 glicca NetworkManager[783]: <info> DNS: starting dnsmasq...
Apr 27 16:04:51 glicca NetworkManager[783]: <warn> dnsmasq not available on the bus, can't update servers.
Apr 27 16:04:51 glicca NetworkManager[783]: <error> [1430143491.244228] [nm-dns-dnsmasq.c:396] update(): dnsmasq owner not found on bus: Could not get owner of name 'org.freedesktop.NetworkManager.dnsmasq': no such name
Apr 27 16:04:51 glicca NetworkManager[783]: <warn> DNS: plugin dnsmasq update failed
Apr 27 16:04:51 glicca NetworkManager[783]: <info> Writing DNS information to /sbin/resolvconf
Apr 27 16:04:51 glicca anacron...
Apr 27 16:04:51 glicca cron...
Apr 27 16:04:51 glicca dnsmasq[1072]: started, version 2.68 cache disabled
Apr 27 16:04:51 glicca dnsmasq[1072]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth
Apr 27 16:04:51 glicca dnsmasq[1072]: DBus support enabled: connected to system bus
Apr 27 16:04:51 glicca dnsmasq[1072]: warning: no upstream servers configured
Apr 27 16:04:51 glicca whoopsie...
Apr 27 16:04:52 glicca acpid...
Apr 27 16:04:52 glicca NetworkManager[783]: <info> Activation (eth0) successful, device activated.
Apr 27 16:04:52 glicca dbus[486]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
Apr 27 16:04:52 glicca NetworkManager[783]: <warn> dnsmasq appeared on DBus: :1.13
Apr 27 16:04:52 glicca NetworkManager[783]: <info> Writing DNS information to /sbin/resolvconf
Apr 27 16:04:52 glicca dnsmasq[1072]: setting upstream servers from DBus
Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 194.109.6.66#53
Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 194.109.9.99#53
Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 194.109.104.104#53
Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 10.0.0.16#53
Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 83.162.x.y#53

** Affects: dnsmasq (Ubuntu)
     Importance: Undecided
         Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to dnsmasq in Ubuntu.
https://bugs.launchpad.net/bugs/1449083

Title:
  dnsmasq reverses order of dns servers

Status in dnsmasq package in Ubuntu:
  New

Bug description:
  I have a carefully sorted order of dns servers that my dhcp server gives out.
  When booting lubuntu, I can't resolve names that should be resolvable by the first two name servers from the list.
  The names are local private names, but since the local nameserver is first, I expect them to resolve.
  But apparently because the order has been reversed, resolving fails.

  rhialto@glicca:~$ lsb_release -rd
  Description:	Ubuntu 14.04.2 LTS
  Release:	14.04

  rhialto@glicca:~$ apt-cache policy dnsmasq-base
  dnsmasq-base:
    Installed: 2.68-1
    Candidate: 2.68-1
    Version table:
   *** 2.68-1 0
          500 http://nl.archive.ubuntu.com/ubuntu/ trusty/main i386 Packages
          100 /var/lib/dpkg/status

  Extract from /var/log/messages (I munged a few numbers here and there).
  Note how the order at the end is the reverse of the first one.

  Apr 27 16:04:49 glicca NetworkManager[783]: <info> (eth0): DHCPv4 state changed nbi -> preinit
  Apr 27 16:04:49 glicca dhclient: Listening on LPF/eth0/00:22:xxxxxxxx
  Apr 27 16:04:49 glicca dhclient: Sending on   LPF/eth0/00:22:xxxxxxxx
  Apr 27 16:04:49 glicca dhclient: Sending on   Socket/fallback
  Apr 27 16:04:49 glicca dhclient: DHCPREQUEST of 10.0.0.14 on eth0 to 255.255.255.255 port 67 (xid=0x72024df1)
  Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 0.ubuntu.pool.ntp.org 1
  Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 1.ubuntu.pool.ntp.org 1
  Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 2.ubuntu.pool.ntp.org 1
  Apr 27 16:04:49 glicca ntpd[974]: Deferring DNS for 3.ubuntu.pool.ntp.org 1
  Apr 27 16:04:49 glicca dhclient: DHCPACK of 10.0.0.14 from 10.0.0.16
  Apr 27 16:04:49 glicca dhclient: bound to 10.0.0.14 -- renewal in 247908 seconds.
  Apr 27 16:04:49 glicca NetworkManager[783]: <info> (eth0): DHCPv4 state changed preinit -> reboot
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   address 10.0.0.14
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   prefix 24 (255.255.255.0)
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   gateway 10.0.0.16
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   hostname 'glicca.falu.nl'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '83.162.x.y'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '10.0.0.16'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '194.109.104.104'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '194.109.9.99'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   nameserver '194.109.6.66'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info>   domain name 'falu.nl'
  Apr 27 16:04:49 glicca NetworkManager[783]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Configure Commit) scheduled...
  Apr 27 16:04:50 glicca NetworkManager[783]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) started...
  Apr 27 16:04:50 glicca avahi-daemon...
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> (eth0): device state change: ip-config -> secondaries (reason 'none') [70 90 0]
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> Activation (eth0) Stage 5 of 5 (IPv4 Commit) complete.
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> (wlan0): supplicant interface state: disconnected -> inactive
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> (eth0): device state change: secondaries -> activated (reason 'none') [90 100 0]
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> NetworkManager state is now CONNECTED_GLOBAL
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> Policy set 'Wired connection 1' (eth0) as default for IPv4 routing and DNS.
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> DNS: starting dnsmasq...
  Apr 27 16:04:51 glicca NetworkManager[783]: <warn> dnsmasq not available on the bus, can't update servers.
  Apr 27 16:04:51 glicca NetworkManager[783]: <error> [1430143491.244228] [nm-dns-dnsmasq.c:396] update(): dnsmasq owner not found on bus: Could not get owner of name 'org.freedesktop.NetworkManager.dnsmasq': no such name
  Apr 27 16:04:51 glicca NetworkManager[783]: <warn> DNS: plugin dnsmasq update failed
  Apr 27 16:04:51 glicca NetworkManager[783]: <info> Writing DNS information to /sbin/resolvconf
  Apr 27 16:04:51 glicca anacron...
  Apr 27 16:04:51 glicca cron...
  Apr 27 16:04:51 glicca dnsmasq[1072]: started, version 2.68 cache disabled
  Apr 27 16:04:51 glicca dnsmasq[1072]: compile time options: IPv6 GNU-getopt DBus i18n IDN DHCP DHCPv6 no-Lua TFTP conntrack ipset auth
  Apr 27 16:04:51 glicca dnsmasq[1072]: DBus support enabled: connected to system bus
  Apr 27 16:04:51 glicca dnsmasq[1072]: warning: no upstream servers configured
  Apr 27 16:04:51 glicca whoopsie...
  Apr 27 16:04:52 glicca acpid...
  Apr 27 16:04:52 glicca NetworkManager[783]: <info> Activation (eth0) successful, device activated.
  Apr 27 16:04:52 glicca dbus[486]: [system] Activating service name='org.freedesktop.nm_dispatcher' (using servicehelper)
  Apr 27 16:04:52 glicca NetworkManager[783]: <warn> dnsmasq appeared on DBus: :1.13
  Apr 27 16:04:52 glicca NetworkManager[783]: <info> Writing DNS information to /sbin/resolvconf
  Apr 27 16:04:52 glicca dnsmasq[1072]: setting upstream servers from DBus
  Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 194.109.6.66#53
  Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 194.109.9.99#53
  Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 194.109.104.104#53
  Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 10.0.0.16#53
  Apr 27 16:04:52 glicca dnsmasq[1072]: using nameserver 83.162.x.y#53

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1449083/+subscriptions


Follow ups

References