Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Ever since upgrading to Snow Leopard, I find that my DNS lookups go pear-shaped after 2 minutes or so. To be precise, I stop being able to resolve names that are only resolved by the specific servers delivered by the PPTP server, as opposed to the ISP's hosts. Apparently, something is overwriting the servers from the PPTP server with other hosts. Anybody got a way around this?

share|improve this question
up vote 1 down vote accepted

Snow Leopard seems to have broken DNS settings from VPN connections. It worked fine in Leopard.

As a band-aid, I put two scripts in /etc/ppp: ip-up and ip-down. I use them to save the current DNS, change it to the VPN dns, and when disconnecting, change it back.

It's ugly but works.

/usr/sbin/networksetup -setdnsservers "Interface Name" [ip of dns server]

share|improve this answer

This sounds more like your VPN itself is dropping than a DNS problem. If you ping the IP that you are VPNing to are there any lost packets?

After DNS breaks can you connect to something at the VPN site by local IP instead of by DNS name?

Do you have a manually entered DNS entry or is it delivered via DHCP on both your local network and the VPN network?

share|improve this answer

You can manually edit /etc/resolv.conf, maybe.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .