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