How can I enable/disable DNSCrypt on OS X via command line?
Is there a command line equivalent to the "Enable DNSCrypt" MenuBar item? I see a plethora of shell scripts in /Library/PreferencePanes/DNSCrypt.prefPane/Contents/Resources/usr/scripts, but don't know which I'd call and with what arguments (and whether or not the script needs to run as root).
-
If you know how to use the command line, you probably don't need the the user interface at all. Uninstall everything and just install the proxy.
You can use a simple plist file like this one: https://github.com/jedisct1/dnscrypt-proxy/blob/master/org.dnscrypt.osx.DNSCryptProxy.plist to directly start/stop dnscrypt with launchd.
-
I'd like to write a simple script to disable/re-enable DNSCrypt when using Tunnelblick to establish a VPN using OpenVPN. The general idea is posted on the Tunnelblick forum:
https://groups.google.com/forum/#!topic/tunnelblick-discuss/YPzMztVMtyY
Can anyone post links to more complete documentation or examples?
Thank you.
- nello
-
What you are describing does not sound specific to OpenDNS, but rather a direct interaction of DNSCrypt and VPN's in general. Besides, although OpenDNS had a hand in getting DNSCrypt going, it is not an OpenDNS property and they are not providing direct support for it.
I suggest going to the DNSCrypt website https://www.dnscrypt.org/ or their support site https://github.com/jedisct1/dnscrypt-proxy/issues
-
Okay, I posed the question on the support site:
-
It turns out that the scripts are trivial and already part of DNSCrypt for OSX:
/Library/Application Support/DNSCrypt/control/dnscrypt/switch-to-dnscrypt.sh
/Library/Application Support/DNSCrypt/control/dnscrypt/ switch-to-dhcp.sh
Please sign in to leave a comment.
Comments
6 comments