Using Laravel Valet for localhost development, So it installs
dnsmasqwith it. dnsmasq runs on port53, The default DNS port. So we setup dnscrypt-proxy on port5300with the default config files in this gist.
brew install dnscrypt-proxy
Open
/usr/local/etc/dnscrypt-proxy.tomlfile in your fav. editor and replace the content with the one from this gist and save it.
Start
dnscrypt-proxyand add it to load when system boots up.
sudo brew services start dnscrypt-proxy
Open
/usr/local/etc/dnsmasq.conffile in your editor and replace the content with the one from this gist and save it. Restartdnsmasqfor changes to take reflect.
sudo brew services restart dnsmasq
It's now time to update your DNS to local DNS server by adding
127.0.0.1in yourSystem Preferences>Network>Advanced>DNS>DNS Servers.
Get BitBar and install dnscrypt-proxy-switcher plugin to control
dnscrypt-proxyfrom your menu bar.