|
|
Configure DNS lookups from the terminal
I use Tunnelblick/openvpn to connect to HotSpotVPN from my mac; however, I can't get the new DNS settings to take. I see the /etc/resolv.conf file change to reflect the new DNS settings, but Safari and Mail.app still use my original settings. Even upon issuing a " kill -HUP `cat /var/run/lookupd.pid`" or "lookupd -flushcache", the original DNS settings are used. DNS lookups using host and ping work fine, however. I'm using 10.4.1. Any ideas to get Safari and Mail.app to use the DNS settings issued once connected to the VPN?
Configure DNS lookups from the terminal
You need to incorporate the methods mentioned in the hint into script files that are run by openvpn. I don't know anything about the particular VPN server you mentioned, but as of a few weeks ago there was no working script available from openvpn.net to correctly take the DNS configuration from openvpn and apply it to configd.
Configure DNS lookups from the terminal
/etc/resolv.conf is not the primary source for OS X and later; take a look at scutil --dns to see the current resolver configuration. It is possible to get the DNS stuff to override for the duration of an OpenVPN tunnel; I wrote a script that uses it (Python using the SystemConfiguration framework wrapper) and can send it to anyone who's interested... |
SearchFrom our Sponsor...Latest Mountain Lion HintsWhat's New:HintsNo new hintsComments last 2 daysLinks last 2 weeksNo recent new linksWhat's New in the Forums?
Hints by TopicNews from Macworld
From Our Sponsors |
|
Copyright © 2014 IDG Consumer & SMB (Privacy Policy) Contact Us All trademarks and copyrights on this page are owned by their respective owners. |
Visit other IDG sites: |
|
|
|
Created this page in 0.09 seconds |
|