PIHOLE AND DNS

dnscrypt-proxy

Steps to install dnscrypt-proxy are pretty straight forward:

  1. Change the current directory to /opt:
cd /opt
  1. Download the latest version:
sudo wget https://github.com/DNSCrypt/dnscrypt-proxy/releases/download/2.0.39/dnscrypt-proxy-linux_arm64-2.0.39.tar.gz
  1. Unarchive the downloaded archive:
sudo tar -xvzf ./dnscrypt-proxy-linux_arm64-2.0.39.tar.gz
  1. Remove the downloaded archive:
sudo rm dnscrypt-proxy-linux_arm64-2.0.39.tar.gz
  1. Rename the unpacked directory:
sudo mv ./linux-arm64 ./dnscrypt-proxy
  1. Change directory to dnscrypt-proxy:
cd dnscrypt-proxy
  1. Create configuration from an example:
sudo cp ./example-dnscrypt-proxy.toml ./dnscrypt-proxy.toml
  1. Edit the configuration:
server_names = ['cloudflare'] # you can can change this and get a list of names from https://dnscrypt.info/public-servers
listen_addresses = ['127.0.0.1:54']
  1. Install the dnscrypt-proxy:
sudo ./dnscrypt-proxy -service install
  1. Start dnscrypt-proxy:
sudo ./dnscrypt-proxy -service start

References