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


Click here to return to the '10.4: A shell script to do DNS lookups in the Terminal' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.4: A shell script to do DNS lookups in the Terminal
Authored by: ar on Sep 25, '05 01:20:34AM

Depending on your VPN setup you may want to make use of MacOS X's little-known ability to use per-domain specific nameservers.

For example, if you have an OpenVPN tunnel to example.com, you can tell MacOS X to use a nameserver at the other end of the tunnel, but ONLY for example.com domain names. (This won't work if you want to resolve example.com domain names without bringing up the OpenVPN tunnel)

The secret is to create /etc/resolver/example.com. See resolver(5) for the details.



[ Reply to This | # ]