How to uninstall dnscrypt-proxy and revert to previous DNS settings on the Raspberry Pi 3 Model B+

Oh, you thought this was gonna be easy? This is Linux.

Writing this because while there’s a lot of documentation about installing dnscrypt-proxy, there’s very little about removing it.

This guide assumes a few things:

  • Raspbian Stretch or later with default desktop environment
  • dnscrypt-proxy was manually installed (read: not installed via a package manager or from a repository)
  • resolvconf was not uninstalled and/or removed from Raspbian
  • The DNS server for the LAN is determined via a router setting or a separate DHCP server (such as a Pi-hole instance running on a separate machine)

Here’s how you do it:

  1. Open a terminal command prompt at /opt/dnscrypt-proxy
  2. Run ./dnscrypt-proxy -service stop
  3. Run ./dnscrypt-proxy -service uninstall
  4. Delete the /dnscrypt-proxy folder
  5. In the taskbar, right-click the network icon
  6. Click Wireless & Wired Network Settings
  7. Ensure the 1st dropdown next to Configure is set to interface
  8. Set the 2nd dropdown to eth0
  9. Check the Automatically configure empty options box
  10. Clear the DNS Servers and DNS Search fields
  11. Click Apply
  12. Click Close
  13. In the terminal, run sudo service resolvconf start
  14. Run sudo systemctl enable resolvconf
  15. Reboot the Raspberry Pi

Upon reboot your network connection and DNS functionality should be returned to its previous normal state.


dnscrypt-proxy Github (see Steps 4 & 6)