- Install DNSMasq
$ brew install dnsmasq- Install DNSCrypt-proxy
$ brew install dnscrypt-proxy-
Configure
-
/usr/local/etc/dnsmasq.conf
-
/Library/LaunchDaemons/homebrew.mxcl.dnscrypt-proxy.plist
-
/Library/LaunchDaemons/homebrew.mxcl.dnsmasq.plist
-
Reload
dnscrypt-proxyservice$ sudo launchctl stop homebrew.mxcl.dnscrypt-proxy && sudo launchctl start homebrew.mxcl.dnscrypt-proxy -
Reload
dnsmasqservice$ sudo launchctl stop homebrew.mxcl.dnsmasq && sudo launchctl start homebrew.mxcl.dnsmasq -
Set DNS IP: 127.0.0.1
$ scutil --dns...
resolver #1
search domain[0] : openvpn
nameserver[0] : 127.0.0.1
flags : Request A records, Request AAAA records
reach : Reachable,Local Address
...
$ nslookup -type=txt debug.opendns.comServer: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
debug.opendns.com text = "server 7.ams"
debug.opendns.com text = "flags 20 0 2f4 800000000000000"
debug.opendns.com text = "id 0"
debug.opendns.com text = "source xxx.xxx.xxx.xxx:xxxxx"
debug.opendns.com text = "dnscrypt enabled (xxxxxxxxxxxxxxxx)"
Authoritative answers can be found from: