-   Linux - Software (
-   -   Connect to vpn server, no DNS specified (

fatrandy13 12-18-2005 09:05 PM

Connect to vpn server, no DNS specified
Every once in a while, i connect to my schools VPN network to access data. I use vpnc to connect. Everything works ok, except that as soon as i connect to the VPN, i lose my DNS i cant ping or go to, but i can go to and i can ping, i need to know how to specify a DNS server after i connect..

acid_kewpie 12-19-2005 04:28 PM

if you're just resetting your default route to go down the vpn, just add the dns servers to your /etc/resolv.conf permanently along with your normal ones... afaik vpnc won't overwrite any. personally though i'd recommened configuring vpnc to NOT change your default route, instaed only make it route the individual netowrks you ned and keep your internet traffic going the same way as before. the newer versions of vpnc come with an example wrapper script vpnc-script or something, into with you can define some variables to show what specific subnets to route. if you define none, it will suck everything into it.

fatrandy13 12-19-2005 08:08 PM

editing the vpnc-script did the vpnc client was old and didnt come with a script by default, upgrading the package created the emaple script and i was able to get it all working, thank you.

All times are GMT -5. The time now is 02:29 PM.