Get stale DNS information after PPP session starts
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ppp (Ubuntu) |
Triaged
|
Medium
|
Unassigned |
Bug Description
Binary package hint: ppp
When the ppp daemon establishes a connection, the /etc/ppp/
Where the pppd "usepeerdns" config options is used (most cases), the 0000usepeerdns scripts test for the nscd (name service cache daemon) being running incorrectly [1], so does not restart it.
The correct pid file to test for is /var/run/
Diff against original files is in [3]. Apply with 'patch -l'.
--- [1]
if [ -e /var/run/nscd.pid ]; then
/etc/init.d/nscd restart || true
fi
--- [2]
[ -e /var/run/
--- [3]
--- ip-up.d/
+++ ip-up.d/
@@ -25,8 +25,8 @@
mv -f "$REALRESOLVCON
# restart nscd because resolv.conf has changed
-if [ -e /var/run/nscd.pid ]; then
- /etc/init.d/nscd restart || true
+if [ -e /var/run/
+ nscd -i hosts
fi
exit 0
--- ip-down.
+++ ip-down.
@@ -15,8 +15,8 @@
mv -f $REALRESOLVCONF
# restart nscd because resolv.conf has changed
- if [ -e /var/run/nscd.pid ]; then
- /etc/init.d/nscd restart || true
+ if [ -e /var/run/
+ nscd -i hosts
fi
fi
description: | updated |
Is this symptom still reproducible in 8.10 alpha?