Skip to content

Instantly share code, notes, and snippets.

@virenratan
Created September 19, 2018 06:55
Show Gist options
  • Save virenratan/a5026129c9993ccef630846c6bdcb9f5 to your computer and use it in GitHub Desktop.
Save virenratan/a5026129c9993ccef630846c6bdcb9f5 to your computer and use it in GitHub Desktop.
macOS DoH (DNS over HTTPS) using cloudflare DNS servers
brew install dnscrypt-proxy

Edit /usr/local/etc/dnscrypt-proxy.toml and edit server_names

server_names = ['cloudflare']

Then just start it and ensure it starts on boot

sudo brew services start dnscrypt-proxy

Try it out:

dig viren.com.au @localhost

Add localhost as your DNS server

networksetup -setdnsservers Wi-Fi 127.0.0.1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment