How to set custom DNS?

699 views
Skip to first unread message

Rapster88

unread,
Jun 23, 2011, 1:49:57 PM6/23/11
to tunnelblick-discuss
Hi,

My ISP blocks custom DNS rather than the ones from them. The problem
now I face is, I could able to connect to a VPN server with
TunnelBlick only if I use the default DNS given by the ISP. But then,
it wouldn't allow me to load the web pages (because I haven't change
the DNS to custom one?)

If I changed it to custom DNS in the Mac OSX Network Settings, the
tunnelblick wouldn't able to connect at all.

In windows, there is a virtual network adapter where I could set the
custom DNS which I wish to use.

Any ideas?

jkbull...gmail.com

unread,
Jun 23, 2011, 2:27:03 PM6/23/11
to tunnelbli...@googlegroups.com
If the ISP's DNS servers will resolve the VPN server's name to an IP address, everything should be fine -- it should work as follows:
  1. When you click "Connect", Tunnelblick (actually, OpenVPN) will use the ISP's DNS server to get the VPN server's IP address
  2. Tunnelblick will then connect to the VPN server
  3. After a connection has been established, the VPN server should then "push" a new DNS server address (possibly more than one) to Tunnelblick and should also push a "redirect-gateway def1" option so that all traffic (including DNS queries) goes through the VPN.
  4. Tunnelblick will set (temporarily, for the duration of the VPN connection) the Mac's DNS server to the address(es) "pushed" by the VPN server.
  5. That DNS server will be used for all DNS queries instead of the ISP's DNS server, until the connection is terminated.
If the DNS server does not "push" the "redirect-gateway def1", you can just include it anywhere in your client configuration file.

If the VPN server does not "push" its own DNS server to the client (your Mac), you would have to create a customized "up" and "down" scripts for OpenVPN.

Most VPN service providers do "push" DNS settings and "redirect-gateway def1".

Reply all
Reply to author
Forward
0 new messages