Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,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 whoever posted them. This site is not responsible for what they say.
10.5: PPTP VPN and fully qualified domain names
Authored by: TrumpetPower! on Dec 01, '07 10:47:24AM

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 | # ]