Using Laravel Valet for localhost development, So it installs
dnsmasq
with it. dnsmasq runs on port53
, The default DNS port. So we setup dnscrypt-proxy on port5300
with the default config files in this gist.
brew install dnscrypt-proxy
Open
/usr/local/etc/dnscrypt-proxy.toml
file in your fav. editor and replace the content with the one from this gist and save it.
Start
dnscrypt-proxy
and add it to load when system boots up.
sudo brew services start dnscrypt-proxy
Open
/usr/local/etc/dnsmasq.conf
file in your editor and replace the content with the one from this gist and save it. Restartdnsmasq
for 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.1
in yourSystem Preferences
>Network
>Advanced
>DNS
>DNS Servers
.
Get BitBar and install dnscrypt-proxy-switcher plugin to control
dnscrypt-proxy
from your menu bar.