A script for installing and automatically configuring DNSCrypt on Linux-based systems.
DNSCrypt is a protocol for securing communications between a client and a DNS resolver by encrypting DNS queries and responses. It verifies that responses you get from a DNS provider have actually been sent by that provider, and haven't been tampered with.
This script will automatically and securely set up DNSCrypt as a background service that runs at system startup using DNSCrypt-proxy, the libsodium cryptography library, and the DNSCrypt service provider of your choice. The script also has options that allow you to change the service provider at any time, turn off DNSCrypt to use regular unencrypted DNS, as well as uninstall DNSCrypt.
wget https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/dnscrypt-autoinstall.sh
chmod +x dnscrypt-autoinstall.sh
./dnscrypt-autoinstall.sh
wget https://raw.github.com/simonclausen/dnscrypt-autoinstall/master/dnscrypt-autoinstall-redhat.sh
chmod +x dnscrypt-autoinstall-redhat.sh
./dnscrypt-autoinstall-redhat.sh
###Arch Linux:
Install dnscrypt-autoinstall
from the AUR:
https://aur.archlinux.org/packages/dnscrypt-autoinstall/
Provider | Location | Note |
---|---|---|
DNSCrypt.eu | Europe | No logs, DNSSEC |
OpenDNS | Anycast | |
CloudNS | Australia | No logs, DNSSEC |
OpenNIC | Japan | No logs |
OpenNIC | Europe | No logs |
Soltysiak.com | Europe | No logs, DNSSEC |
If the install fails at a particular stage and the script mentions DNSCrypt is already configured, use the forcedel
argument to force an uninstallation:
./dnscrypt-autoinstall.sh forcedel