dnsmasq does not bind to a port

Bug #974667 reported by Jacek Nykis on 2012-04-05
This bug affects 2 people
Affects Status Importance Assigned to Milestone
dnsmasq (Ubuntu)

Bug Description

When I boot into the installation CD (kubuntu-12.04-beta2-desktop-i386) DNS service does not work properly. resolv.conf points to which seems correct, /var/run/nm-dns-dnsmasq.conf contains correct nameserver IP.

I think it is to do with the fact that nothing listens on port 53.
kubuntu@kubuntu:~$ sudo netstat -nlptu|grep 53
udp 0 0* 1173/avahi-daemon:
udp6 0 0 :::5353 :::* 1173/avahi-daemon:

dnsmasq is running:
kubuntu@kubuntu:~$ ps -ef|grep /usr/sbin/dnsmasq
nobody 1275 1191 0 21:17 ? 00:00:00 /usr/sbin/dnsmasq --no-resolv --keep-in-foreground --no-hosts --bind-interfaces --pid-file=/var/run/sendsigs.omit.d/network-manager.dnsmasq.pid --listen-address= --conf-file=/var/run/nm-dns-dnsmasq.conf --cache-size=0 --proxy-dnssec

When I do lsof it show interesting results:
kubuntu@kubuntu:~$ sudo lsof|grep 1275
<info ommited>
dnsmasq 1275 nobody 3r sock 0,7 0t0 11578 can't identify protocol
dnsmasq 1275 nobody 4w FIFO 0,8 0t0 11587 pipe
dnsmasq 1275 nobody 5u FIFO 0,8 0t0 11587 pipe
dnsmasq 1275 nobody 6u unix 0xec3126c0 0t0 11589 socket

If I kill the process, recreate /var/run/nm-dns-dnsmasq.conf and start it on the CLI manually everything is fine (I can resolve hostname and and dnsmasq binds to the port 53)
kubuntu@kubuntu:~$ sudo netstat -nlput|grep 53

I am using VirtualBox 4.1.12 for testing with almost default config of my VM. It happens every time so if you need any more details I can provide them easily.

ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: dnsmasq-base 2.59-4
ProcVersionSignature: Ubuntu 3.2.0-20.33-generic-pae 3.2.12
Uname: Linux 3.2.0-20-generic-pae i686
ApportVersion: 1.95-0ubuntu1
Architecture: i386
CasperVersion: 1.312
Date: Thu Apr 5 21:22:21 2012
LiveMediaBuild: Kubuntu 12.04 LTS "Precise Pangolin" - Beta i386 (20120328)
SourcePackage: dnsmasq
UpgradeStatus: No upgrade log present (probably fresh install)

Jacek Nykis (jacekn) wrote :
James Page (james-page) on 2012-04-12
Changed in dnsmasq (Ubuntu):
importance: Undecided → Low
Ubuntu QA Website (ubuntuqa) wrote :

This bug has been reported on the Ubuntu ISO testing tracker.

A list of all reports related to this bug can be found here:

tags: added: iso-testing
Stéphane Graber (stgraber) wrote :

Can you attach your /var/log/syslog from an affected system (before fixing it)?

Scott Kitterman (kitterman) wrote :

Since this can affect getting online for some people, I don't think Low is appropriate. Also, confirmed due to multiple reports.

Changed in dnsmasq (Ubuntu):
importance: Low → High
status: New → Confirmed
Jacek Nykis (jacekn) wrote :

/var/log/syslog copied when dnsmasq was broken.

I have just tested kubuntu 11.10 iso on the same VM and it is all fine (however 11.10 does not use dnsmasq).

Just to let you know - I amthe person who reported the bug and problem with ISO test so this does not actually impact multiple people.

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers