This feels like a long shot considering the posts I've read so far through google on this topic, but here goes nothing.

Whenever I connect Cisco AnyConnect VPN client 2.5.2019 on Mac OS 10.6.7 a few things happen as far as I can tell. First of all I am of course connected to my workplace, second /var/run/resolv.conf is removed, incidentally leaving the /etc/resolv.conf link pointing to nothing.

Immeditately after I disconnect AnyConnect the file reappears.

Since I can still ping any external ip-address, like for example google if I do a lookup, I figured that I'm on a Unix system with root privileges so why not just recreate the resolv.conf file? First I tried doing this through Network settings by simply adding my old DNS servers, did not work.

Then I tried copying the resolv.conf file before connecting AnyConnect, and then writing it to /var/run after AnyConnect has connected, Permission denied.

That's pretty crazy to me, that root isn't allowed to write in that directory.

ls -la /var/run/
drwxrwxr-x  38 root  daemon  1292  7 Jun 21:02 ./

However, after opening a root terminal and not just using sudo I had full access. So I made another attempt only to find that recreating resolv.conf did not help anything. After disconnecting AnyConnect resolv.conf had also been updated.

This is pretty annoying to me because using IPs I have full mobility, so I would love any help with getting around this limitation in order to use ISPs DNS while the VPN is connected. I know it's a possible security risk but I'll take that risk on me.

One possible solution I've thought of would be a static route maybe? I am not sure how that works, not good at networking, but I have looked up how to make one in Snow Leopard.

Edit: Come to think of it, why would a static route help when DNS is the only thing not working? So DNS is still the main issue.

link|improve this question
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.