Bug ? feature ? pppd-dns and usepeerdns don't tie the knot
Elie Morisse
lachienne at wanadoo.fr
Wed Jun 7 18:21:05 BST 2006
Hi,
Regarding the amount of mail i'm receiving since the Dapper release something introduced broke my speedtouch-ng package, a configurator for Speedtouch USB/330 ADSL adapters : http://moigeeknevro.com/speedtouch-ng/files/1.2.4/ ( french page :) ( laziness.. ) but multilingual package )
Further investigation unveiled two problems : the first one is about Gnome network-admin, which modify the ppp peer file whatever we configure ( hosts, other interfaces, .. ) and those modifications make the ppp link hang at up, so the app hangs too when it try to reinit all interfaces ( occurs when configuring any interface ) and thereby modifications to files aren't even took into account. This is a major regression for all ppp users with non-56k modems, because network-admin is unusable unless we delete the ppp entry in /etc/network/interfaces. I'll forward the bug to Gnome developpers and contragulate them at the same time for this crap piece of app..
The second one is more of your concern. Here are the /etc/init.d/pppd-dns contents :
[ -x /etc/ppp/ip-down.d/0000usepeerdns ] \
&& exec /etc/ppp/ip-down.d/0000usepeerdns
And /etc/ppp/ip-down.d/0000usepeerdns :
if [ -e /etc/resolv.conf ]; then
REALRESOLVCONF=$(readlink --canonicalize /etc/resolv.conf)
else
REALRESOLVCONF=/etc/resolv.conf
fi
# if an old resolv.conf file exists, restore it
if [ -e $REALRESOLVCONF.pppd-backup ]; then
mv -f $REALRESOLVCONF.pppd-backup $REALRESOLVCONF
fi
Trouble is that "pppd-dns" start after "networking", so after that ppp make the backup of resolv.conf, and thus once the ppp link is up the blank backup is immediately restored. Is that voluntary ? If not, i'm planning to provide a easy fix with my package, and that would be modifying the pppd-dns order number through the postinst script. Do you approve or is there a better solution fitting more to Debian policy without being harder ( i mean : without requiring users to type a command, ... ) ? And above all is this the correct fix ? Is it susceptible to break something ? I'm aware of the problem since the Flight 5, but just found out what goes wrong, sorry to not have warned you earlier :\
Cheers!
Elie Morisse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : https://lists.ubuntu.com/archives/ubuntu-devel/attachments/20060607/0d622f1e/attachment.pgp
More information about the ubuntu-devel
mailing list