← Back to team overview

desktop-packages team mailing list archive

[Bug 991481] Re: Constant dns traffic for daisy.ubuntu.com

 

More experiments, results and proposed solution:

1) On a system with

  whoopsie running
  network-manager NOT running, but network interface initialized via /etc/network/interfaces
  dnsmask running with network-managers configuration for dnsmasq
  IPv6 aktivated

I see the annoying repetive DNS-traffic for daisy.ubuntu.com. One or
more packets per minute. This proves network-manager itself is not the
bad guy!

2) Network-manager provides a configuration to dnsmask which disabled
cache (--cache-size=0). Removing this option from dnsmasq configuration
reduces traffic rate to 1 packet per 10 minutes. This corresponds to the
lifetime for the DNS record of daisy.ubuntu.com which is set to 600
seconds.

3) Running network-manager again and dnsmasq started from network-
manager, but with the modified configuration shows same result as #2.

4) HOWTO modify configuration for dnsmasq: Network-manager provides the
option --cache-size=0 as argument on command line. This cannot be
overriden by config-files, but you can use a wrapper script which is
called by network-manager instead of real dnsmasq. The fake dnsmask
purges the option --cache-size=0 and calls the real dnsmasq.

I provide this wrapper script as attachment. Place it in /usr/local/sbin
(this directory is searched before /usr/sbin), name it dnsmasq, set
owner and group to root and set execute bits. Use at own risk.

Enjoy!

** Attachment added: "wrapper script for dnsmasq, purges option --cache-size=0"
   https://bugs.launchpad.net/whoopsie/+bug/991481/+attachment/4276624/+files/dnsmasq

-- 
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/991481

Title:
  Constant dns traffic for daisy.ubuntu.com

Status in Ubuntu error tracker client (whoopsie):
  Confirmed
Status in glib2.0 package in Ubuntu:
  Invalid
Status in network-manager package in Ubuntu:
  In Progress
Status in whoopsie package in Ubuntu:
  Triaged

Bug description:
  Watching GNetworkMonitor's network-changed signal causes constant DNS
  traffic.

  Andy Whitcroft points out that the NETLINK_ROUTE socket set up by
  GNetworkMonitor will fire events every time an ARP entry appears or
  disappears.

  Unfortunately, we currently need an additional layer of connectivity
  checking because checking NetworkManager's state for CONNECTED_GLOBAL
  is not enough to know whether we're really online. Ubuntu does not yet
  use the NetworkManager connectivity check [1].

  The likely solution to this bug is a replacement for GNetworkMonitor
  in whoopsie.

  1: http://bazaar.launchpad.net/~daisy-
  pluckers/whoopsie/trunk/view/head:/src/connectivity.c#L326

  Original report follows:

  Every few seconds, I see a dns query for daisy.ubuntu.com. After
  removing whoopsie, the traffic goes away.

To manage notifications about this bug go to:
https://bugs.launchpad.net/whoopsie/+bug/991481/+subscriptions