Public bug reported: I have noticed that dnsmasq might fail when switching networks/interfaces (wlan0 to eth0).
This looks like this: Jun 3 16:23:48 lenny dhclient: DHCPDISCOVER on eth0 to 255.255.255.255 port 67 interval 3 Jun 3 16:23:48 lenny dhclient: DHCPREQUEST of 192.168.2.100 on eth0 to 255.255.255.255 port 67 Jun 3 16:23:48 lenny dhclient: DHCPOFFER of 192.168.2.100 from 192.168.2.1 Jun 3 16:23:48 lenny dhclient: DHCPACK of 192.168.2.100 from 192.168.2.1 Jun 3 16:23:48 lenny dnsmasq[1515]: reading /var/run/dnsmasq/resolv.conf Jun 3 16:23:48 lenny dnsmasq[1515]: ignoring nameserver 127.0.0.1 - local interface Jun 3 16:23:49 lenny dhclient: bound to 192.168.2.100 -- renewal in 2147483647 seconds. Jun 3 16:23:49 lenny ntpdate[29359]: Can't find host ntp.ubuntu.com: Name or service not known (-2) or: Jun 3 16:22:04 lenny ifplugd(eth0)[4679]: Link beat lost. Jun 3 16:22:04 lenny kernel: [10804.822134] thinkpad_acpi: undocked from hotplug port replicator Jun 3 16:22:04 lenny kernel: [10804.822363] ACPI: \_SB_.GDCK - undocking Jun 3 16:22:05 lenny ifplugd(eth0)[4679]: Using detection mode: IFF_RUNNING Jun 3 16:22:05 lenny kernel: [10805.907380] e1000e 0000:00:19.0: PME# enabled Jun 3 16:22:14 lenny ifplugd(eth0)[4679]: Executing '/etc/ifplugd/ifplugd.action eth0 down'. Jun 3 16:22:15 lenny dhclient: DHCPRELEASE on eth0 to 192.168.2.1 port 67 Jun 3 16:22:15 lenny dnsmasq[1515]: no servers found in /var/run/dnsmasq/resolv.conf, will retry Without much investigation I think that dnsmasq should only be triggered after /etc/resolv.conf has been updated/changed, but not too early. >From resolvconf(8): Subscribers that need to know only when the resolver configuration file has changed should install a script in /etc/resolvconf/update-libc.d/ rather than in /etc/resolvconf/update.d/. This is important for syn‐ chronization purposes: scripts in update-libc.d/ are run after resolv.conf has been updated; the same is not necessarily true of scripts in update.d/. Examples of packages that do this are fetch‐ mail(1) and squid(8). ProblemType: Bug DistroRelease: Ubuntu 12.04 Package: dnsmasq 2.59-4 [modified: etc/dnsmasq.conf] ProcVersionSignature: Ubuntu 3.2.0-25.40-generic 3.2.18 Uname: Linux 3.2.0-25-generic x86_64 ApportVersion: 2.0.1-0ubuntu8 Architecture: amd64 Date: Sun Jun 3 17:39:26 2012 InstallationMedia: Ubuntu 12.04 LTS "Precise Pangolin" - Release amd64 (20120425) PackageArchitecture: all SourcePackage: dnsmasq UpgradeStatus: No upgrade log present (probably fresh install) mtime.conffile..etc.dnsmasq.conf: 2012-05-29T01:24:45 ** Affects: dnsmasq (Ubuntu) Importance: Undecided Status: New ** Tags: amd64 apport-bug precise -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to dnsmasq in Ubuntu. https://bugs.launchpad.net/bugs/1008126 Title: Install resolvconf listener for dnsmasq into /etc/resolvconf/update- libc.d, not update.d To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dnsmasq/+bug/1008126/+subscriptions -- Ubuntu-server-bugs mailing list Ubuntu-server-bugs@lists.ubuntu.com Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs