After VPN, DNS not reset?

Hi all,

I’ve a weird problem and I hope here’s someone who can help me to find the problem and hopefully solve it.

I can connect to a vpnserver with vpnc. However, when the connection has been closed I can’t get my normal network behavior back. The only way I can connect to the internet is by activating VPN again.

I think it’s a problem with DNS. After disabling vpnc I get only response back from IP’s (that’s how I can reconnect with the VPN server again).

System details:
OpenSuse 11.1, 64 bit
KDE4.2
VPNC
KNetworkmanager / ifup (both have the same problem).

vpnc output

linux-h8n9:/home/remco # vpnc
Enter IPSec gateway address: 130.161.x.x
Enter IPSec ID for 130.161.x.x: public
Enter IPSec secret for public@130.161.x.x:
Enter username for 130.161.x.x: ********
Enter password for rwlvanderzon@130.161.x.x:
/etc/vpnc/vpnc-script: line 222: /var/run/vpnc/resolv.conf-backup: No such file or directory
VPNC started in background (pid: 7309)...

( Sorry for the bad English )

Workaround:

cp /etc/resolf.conf.netconfig /etc/resolf.conf

Don’t know where to report the bug. OpenSuse is not responsible, it’s vpnc.

It looks like the script that brings up the VPN is having some error while backing up the current configuration.


/etc/vpnc/vpnc-script: line 222: /var/run/vpnc/resolv.conf-backup: No such file or directory

May be it is trying to save the current configuration before modifying it. Can you have a look at that line in the script?
It should backup the current /etc/resolve.conf