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.
>
I found a work around, try creating a script file if-up.d/ zzz_resolvconff ix.
in /etc/network/
zzz_resolvconffix:
#!/bin/sh
[ -x /sbin/resolvconf ] || exit 0
[ "x$ADDRFAM" == "xinet6" ] && exit 0
rm /etc/resolv.conf /run/resolv. conf /etc/resolv.conf
ln -s /etc/resolvconf
for NS in $DHCP4_ DOMAIN_ NAME_SERVERS ; do ${R}nameserver $NS .${ADDRFAM} "
R="
"
done
echo -n "$R" | /sbin/resolvconf -a "${IFACE}
#end of script file
after creating script file and run:
chmod 755 /etc/network/ if-up.d/ zzz_resolvconff ix
then restart network session.
On Fri, 2009-02-13 at 09:22 +0000, machrider wrote: 8t105859- 0ubuntu1. 8.10.1
> 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~~svn2008101
> resolvconf 1.42ubuntu2
> intrepid on x86_64
>
> Frustrating problem.
>