Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Configure DNS lookups from the terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Configure DNS lookups from the terminal
Authored by: djpluv on Jul 05, '05 03:55:37PM

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?



[ Reply to This | # ]
Configure DNS lookups from the terminal
Authored by: DylanMuir on Jul 05, '05 09:24:45PM

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.

We intend to submit our scripts to the openvpn.net site once our testing period is over.

D.



[ Reply to This | # ]
Configure DNS lookups from the terminal
Authored by: sabi on Jul 05, '05 10:19:57PM

/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...



[ Reply to This | # ]