|
|
Hi All, Looking through the list and it appears setting that questions re setting DNS for an OS X client have been asked a few times but I haven't seen a response. http://www.macosxhints.com/article.php?story=20050621051643993 http://www.afp548.com/article.php?story=20050703052052393 http://njr.sabi.net/2005/08/04/overriding-dns-for-domains-in-os-x-tiger/ Some googling later and as per the links above I find I can set DNS servers from the command line. The issue I have is that setting DNS only works using sudo. However, Tunnelblick doesn't have a mechanism to ask for a sudo password. I find that if I add a script to add in the remote site DNS server at time of connection then Tunnelblick fails on opening the connection (icon stops flashing), presumably because of the sudo requirement. I've included a script to set the DNS server below. If someone could give an idea of how to get around or work with the sudo script requirement and Tunnelblick it would be very helpful. Thanks Stephen Script to set DNS; requires sudo to run --------------------------- #!/bin/bash # Script is used to set the Nameserver Lookup under Max OS X 10.4 with the Console # Script by Stephan Oeste <stephan-at-oeste-dot-de> if [ $# -lt 2 ] ; then echo "Use: $0 <domain> <1.Nameserver> [2.Nameserver]" echo "Example Use: $0 example.tld 1.2.3.4 1.2.3.5" exit 1 fi PSID=$( (scutil | grep PrimaryService | sed -e 's/.*PrimaryService : //')<< EOF open get State:/Network/Global/IPv4 d.show quit EOF ) scutil << EOF open d.init d.add ServerAddresses * $2 $3 d.add DomainName $1 set State:/Network/Service/$PSID/DNS quit EOF ----------------------- ______________________ OpenVPN mailing lists https://lists.sourceforge.net/lists/listinfo/openvpn-users Warning: require_once(../../../archive_common.php) [function.require-once]: failed to open stream: No such file or directory in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-07/msg00095.html on line 232 Fatal error: require_once() [function.require]: Failed opening required '../../../archive_common.php' (include_path='/usr/local/lib/php') in /home/openvpn/domains/openvpn.net/public_html/archive/openvpn-users/2006-07/msg00095.html on line 232 |