Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.