Comment 2 for bug 324233

Revision history for this message
tpurch (terry-purchase) wrote : Re: [Bug 324233] Re: kubuntu 8.10 - Network Manager 0.7 - DHCP/resolvconf Problem

I found a work around, try creating a script file
in /etc/network/if-up.d/zzz_resolvconffix.

zzz_resolvconffix:

#!/bin/sh
[ -x /sbin/resolvconf ] || exit 0

[ "x$ADDRFAM" == "xinet6" ] && exit 0

rm /etc/resolv.conf
ln -s /etc/resolvconf/run/resolv.conf /etc/resolv.conf

for NS in $DHCP4_DOMAIN_NAME_SERVERS ; do
    R="${R}nameserver $NS
"
done
echo -n "$R" | /sbin/resolvconf -a "${IFACE}.${ADDRFAM}"
#end of script file

 after creating script file and run:

chmod 755 /etc/network/if-up.d/zzz_resolvconffix

then restart network session.

On Fri, 2009-02-13 at 09:22 +0000, machrider wrote:
> Seeing the same behavior. Doesn't require a reboot for me -- if
> NetworkManager is running, it will destroy my resolvconf symlink and
> write a new file every couple minutes. If I restore the symlink by
> hand, my VPN works until NetworkManager breaks it again.
>
> NetworkManager 0.7~~svn20081018t105859-0ubuntu1.8.10.1
> resolvconf 1.42ubuntu2
> intrepid on x86_64
>
> Frustrating problem.
>