Pick of the Week - Nov 10 [Show all picks]
Path Finder 5 - A feature-laden Finder replacement
Submit Hint Search The Forums LinksStatsPollsFAQHeadlinesRSS
12,000 hints and counting!


Click here to return to the '10.5: PPTP VPN and fully qualified domain names' hint
The following comments are owned by whomever posted them. This site is not responsible for what they say.
10.5: PPTP VPN and fully qualified domain names
Authored by: primitiveworker on Tue, Nov 27 2007 at 5:02PM PST

You can resolve machines without sending all traffic through the VPN by creating a simple textfile named yourdomain.com with a single line "nameserver internal.ip.of.nameserver" and placing it in a magic directory /etc/resolver (which you may need to create).

So something like this will set you up:


sudo mkdir /etc/resolver
sudo echo "nameserver internal.ip.of.nameserver" > /etc/resolver/yourdomain.com
Where yourdomain.com is the domain you are trying to resolve and internal.ip.of.nameserver is the ip of the nameserver from the vpn-side.



[ Reply to This | # ]
10.5: PPTP VPN and fully qualified domain names
Authored by: TrumpetPower! on Sat, Dec 1 2007 at 10:47AM PST

sudo echo "nameserver internal.ip.of.nameserver" > /etc/resolver/yourdomain.com

This will run echo as root, but the redirection (“>”) is done by your own login shell. Unless that is itself a privileged process — in which case there’s no point in running sudo — then it’ll fail for lack of permissions.

The way I personally deal with such things is by running sudo vi, but a novice is probably better off creating the file as you would any other file (such as with TextEdit), saving it in your home directory, and then using sudo to move it into place.

Or, with OS X, you should be able to do it all through the GUI and have it prompt you for an appropriate password whenever required. You might have to use “Go to Folder” (under the “Go” menu of the Finder) to get to the right folder. And it might not work at all…but it really should if it doesn’t….

Cheers,

b&



[ Reply to This | # ]
10.5: PPTP VPN and fully qualified domain names
Authored by: dfbills on Sun, Dec 2 2007 at 9:00AM PST
primitiveworker: What is the order of precedence here?

/etc/resolv.conf
/etc/resolver/yourdomain.com


---
-d

[ Reply to This | # ]