pdnsd requires manual restart after new WiFi connection gets established

Bug #452351 reported by Paul Ortyl
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
pdnsd (Debian)
Fix Released
Unknown
pdnsd (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: pdnsd

1.
lsb_release -rd
Description: Ubuntu karmic (development branch)
Release: 9.10

2.
apt-cache policy pdnsd
pdnsd:
  Installed: 1.2.7-par-1
  Candidate: 1.2.7-par-1
  Version table:
 *** 1.2.7-par-1 0
        500 http://archive.ubuntu.com karmic/universe Packages
        100 /var/lib/dpkg/status

3.
pdnsd caching DNS queries

4.
pdnsd does not report new dns queries after system restart
pdnsd starts before Network Manager Applet establishes WiFi connection
The pdsnd service has to be manually restarted to get it working (it did not see the wireless network interface at its initial start)
After this manual restart it works fine.
/etc/resolv.conf is set to localhost (127.0.0.1),

ProblemType: Bug
Architecture: amd64
Date: Thu Oct 15 19:12:32 2009
DistroRelease: Ubuntu 9.10
Package: pdnsd 1.2.7-par-1
ProcEnviron:
 PATH=(custom, user)
 LANG=en_US.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-14.47-generic
SourcePackage: pdnsd
Uname: Linux 2.6.31-14-generic x86_64
XsessionErrors:
 (gnome-settings-daemon:2110): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (gnome-settings-daemon:2110): GLib-CRITICAL **: g_propagate_error: assertion `src != NULL' failed
 (nautilus:2146): Eel-CRITICAL **: eel_preferences_get_boolean: assertion `preferences_is_initialized ()' failed
 (polkit-gnome-authentication-agent-1:2160): GLib-CRITICAL **: g_once_init_leave: assertion `initialization_value != 0' failed

Related branches

Revision history for this message
Paul Ortyl (ortylp) wrote :
Revision history for this message
Corruptor1972 (steven-tierney) wrote :

I have a workaround for this: It is to make NetworkManager restart pdnsd on connecting by using the dispatcher.

In a terminal, go to the script directory of the dispatcher and create a new script using gedit:
  cd /etc/NetworkManager/dispatcher.d
  sudo gedit 99pdnsd

In gedit, cut & paste and save the following:

#!/bin/bash
#
# Restart pdnsd after the connection is made
if [ $1 == "wlan0" ] && [ $2 == "up" ]; then
 /etc/init.d/pdnsd restart;
fi

Now, back in the terminal, make the script executable:
  sudo chmod 755 99pdnsd

Now, when NetworkManager is used resulting in the interface 'wlan0' being 'up', the init script is run to restart pdnsd.

Of course, you might want to replace wlan0 with the network interface of your liking, or add other options for other interfaces.

Changed in pdnsd (Debian):
status: Unknown → New
Changed in pdnsd (Debian):
status: New → Fix Released
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package pdnsd - 1.2.8-par-1

---------------
pdnsd (1.2.8-par-1) unstable; urgency=low

  * New Maintainer. (Closes: #596302)
  * New Upstream Releases. (Closes: #596302, LP: #712938)
  * debian/patches/05_fix_spelling.patch: Fix spelling errors.
  * debian/patches/04_ipv6_localhost.patch. Adding ipv6 in localhost.
    (Closes: #466332, #504211)
  * debian/init.d:
    - Add init status. (Closes: #476538)
    - Don't says starting pdnsd if already started. (Closes: #487467)
  * deban/changelog: Fix incorrect date in 1.2.7-par-1 (Closes: #527352)
  * debian/control:
    - Add Vcs-Browser and Vcs-Git to alioth.
    - Bump Standards-Version to 3.9.1.
  * debian/copyright: Updated as per DEP-5 specification.
  * debian/pdnsd-recurse.conf:
    - Adding recurse mode. (Closes: #602262)
    - Fixing recursive neg section. (Closes: #519656)
  * doc/pdnsd.conf.in: Separate ip address by new line. Thanks to
    Raphael Geissert. (Closes: #597734)
  * perm_cache size set to default. (Closes: #602329)
    - doc/pdnsd.conf.in
    - debian/pdnsd.conf
    - debian/pdnsd-recurse.conf
    - debian/pdnsd-resolvconf.conf
  * debian/002_NetMan_pdnsd: add compabilty with WiFi.
    (Closes: #617373, LP: #452351)
  * Ack'd NMU upload. (Closes: #548173)
  * Update debconf Indonesian translations. (Closes: #610148)
  * Switch to quilt system.
 -- Ubuntu Archive Auto-Sync <email address hidden> Sat, 30 Apr 2011 13:30:23 +0000

Changed in pdnsd (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.