Define your preferences for the Tunnelblick application and click Continue.
![tunnelblick set nameserver tunnelblick set nameserver](https://i.ytimg.com/vi/vEcrr1oqT04/maxresdefault.jpg)
![tunnelblick set nameserver tunnelblick set nameserver](https://manfred-paul.de/spaziergang/tunnel/Tunnel_08.jpg)
Double-click on the Tunnelblick icon in the next window. To start the installation process, double-click on the Tunnelblick installation package in your Downloads folder. This causes the entire network configuration to be re-initialised. Install Tunnelblick App and Import VPN configuration. To reset the network services as per your system preferences, or via DHCP, I used scselect to change the network location. scutil does other useful things too - read the man page and look at the help from within scutil for details. Root privileges are required for the modification: sudo scutil> open> d.init> d.add ServerAddresses * 198.35.23.2 198.32.56.32> d.add DomainName .uk> set State:/Network/Service/PRIMARY_SERVICE_ID/DNS> quitThis last procedure will update /etc/nf for you as the change filters through the system. 10:34:07 Tunnelblick: Attempting connection with London Set nameserver 1 monitoring connection. To retrieve the current primary network interface: scutil> open> get State:/Network/Global/IPv4> d.show > quitTo set the resolver configuration, with a domain of '.uk' and DNS name server IPs of 198.35.23.2 and 198.32.56.32, and the primary network service ID as obtained above. Pastebin is a website where you can store text online for a set period of time. The following sample scutil sessions perform some useful tasks. To use scutil from a bash script, you must dynamically create an scutil script as a text file, and pipe it to scutil. Unfortunately, it only really offers a command-line interface to modify the configuration database. scutil enables much more fine-grained control over the current network configuration. scselect provides a list of defined network locations (as in the Network preference pane) and allows you to choose between them. The command-line tools to interface with the configuration daemon are scselect and scutil. The host command would read my hacked-up /etc/nf, but smarter DNS lookups would query the network configuration database from configd.
![tunnelblick set nameserver tunnelblick set nameserver](https://manfred-paul.de/spaziergang/tunnel/Tunnel_14.jpg)
,br>The answer? OS X has a daemon called configd, which magically collects configuration information, sends notifications, and maintains a dynamic database of the current settings. I thought the smarter option would be in the NetInfo database, except on my machine, I had no resolver configuration hiding there. Sometimes /etc/nf would be magically restored to its original configuration. Re-writing /etc/nf resulted in a system where a DNS lookup with host would work, but dig and ping would not. In the course of setting up a VPN package ( openvpn) on OS X, I had to set the DNS resolution configuration dynamically from a shell script.Īs of (at least) 10.3, /etc/nf (or /var/run/nf) is NOT the place to do this. There's a lot of conflicting information about how to set networking information (such as DNS resolution configuration) from the terminal.