Sign up ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I'm trying to connect to my company's network via PPTP VPN from Mac OS X.

I had a problem which turned out to be wrong netmask configuration which prevented and 17 DNS servers from being accessible. The gateway IP is and the mask for some reason was set to

I worked around it (perhaps, in a wrong way) by routing everything with the netmask to the gateway:

sudo route add -net

Now, both my working computer ( and DNS ( are pingable.
However I can't come up with a way to assign this DNS for this particular subnet.

Merely setting company DNS in VPN interface settings and normal DNS in my Bluetooth doesn't do the trick. How can I do this in Mac OS X?

share|improve this question

1 Answer 1

up vote 1 down vote accepted

The correct way to fix this is to configure the VPN server to allocate the correct DNS server names along with the domain suffixes that should be used with these servers (if it is a split-tunnel vpn).

A workaround, if you are unable to fix this is create a file on you Mac:


The contents should be something like:

nameserver 192.168.10.§6
port 53

This should cause the resolver to use the specified server for lookups in the domain specified.

share|improve this answer
I still can't access the server I need, but at least DNS started working properly. Thanks! – Dan May 29 '11 at 12:09

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.