How To Install dnscrypt-proxy on CentOS 8
Introduction
In this tutorial we learn how to install dnscrypt-proxy
on CentOS 8.
What is dnscrypt-proxy
A flexible DNS proxy, with support for modern encrypted DNS protocols such as DNSCrypt v2 and DNS-over-HTTP/2. Features - DNS traffic encryption and authentication. Supports DNS-over-HTTPS (DoH) and DNSCrypt. - DNSSEC compatible - DNS query monitoring, with separate log files for regular and suspicious queries - Pattern-based local blocking of DNS names and IP addresses - Time-based filtering, with a flexible weekly schedule - Transparent redirection of specific domains to specific resolvers - DNS caching, to reduce latency and improve privacy - Local IPv6 blocking to reduce latency on IPv4-only networks - Load balancing measure and keep track of their speed, and balance the traffic across the fastest available ones. - Cloaking addresses for specific names, or resolve and return the IP address of other names. This can be used for local development as well as to enforce safe search results on Google, Yahoo and Bing. - Automatic background updates of resolvers lists - Can force outgoing connections to use TCP; useful with tunnels such as Tor.
We can use yum
or dnf
to install dnscrypt-proxy
on CentOS 8. In this tutorial we discuss both methods but you only need to choose one of method to install dnscrypt-proxy.
Install dnscrypt-proxy on CentOS 8 Using dnf
Update yum database with dnf
using the following command.
sudo dnf makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install dnscrypt-proxy
using dnf
by running the following command:
sudo dnf -y install dnscrypt-proxy
Install dnscrypt-proxy on CentOS 8 Using yum
Update yum database with yum
using the following command.
sudo yum makecache --refresh
The output should look something like this:
CentOS Linux 8 - AppStream 43 kB/s | 4.3 kB 00:00
CentOS Linux 8 - BaseOS 65 kB/s | 3.9 kB 00:00
CentOS Linux 8 - ContinuousRelease 43 kB/s | 3.0 kB 00:00
CentOS Linux 8 - Extras 23 kB/s | 1.5 kB 00:00
CentOS Linux 8 - FastTrack 40 kB/s | 3.0 kB 00:00
CentOS Linux 8 - HighAvailability 36 kB/s | 3.9 kB 00:00
CentOS Linux 8 - Plus 24 kB/s | 1.5 kB 00:00
CentOS Linux 8 - PowerTools 50 kB/s | 4.3 kB 00:00
Extra Packages for Enterprise Linux Modular 8 - x86_64 13 kB/s | 9.2 kB 00:00
Extra Packages for Enterprise Linux 8 - x86_64 24 kB/s | 8.5 kB 00:00
Metadata cache created.
After updating yum database, We can install dnscrypt-proxy
using yum
by running the following command:
sudo yum -y install dnscrypt-proxy
How To Uninstall dnscrypt-proxy on CentOS 8
To uninstall only the dnscrypt-proxy
package we can use the following command:
sudo dnf remove dnscrypt-proxy
dnscrypt-proxy Package Contents on CentOS 8
/etc/dnscrypt-proxy
/etc/dnscrypt-proxy/allowed-ips.txt
/etc/dnscrypt-proxy/allowed-names.txt
/etc/dnscrypt-proxy/blacklist.txt
/etc/dnscrypt-proxy/blocked-ips.txt
/etc/dnscrypt-proxy/blocked-names.txt
/etc/dnscrypt-proxy/captive-portals.txt
/etc/dnscrypt-proxy/cloaking-rules.txt
/etc/dnscrypt-proxy/dnscrypt-proxy.toml
/etc/dnscrypt-proxy/forwarding-rules.txt
/etc/dnscrypt-proxy/whitelist.txt
/etc/systemd/system/dnscrypt-proxy.service
/usr/bin/dnscrypt-proxy
/usr/lib/.build-id
/usr/lib/.build-id/33
/usr/lib/.build-id/33/21559008d6d33bedd7bea6aa4c1d4f6ce93662
/usr/share/doc/dnscrypt-proxy
/usr/share/doc/dnscrypt-proxy/ChangeLog
/usr/share/doc/dnscrypt-proxy/README.md
/usr/share/doc/dnscrypt-proxy/generate-domains-blocklist
/usr/share/doc/dnscrypt-proxy/generate-domains-blocklist/domains-allowlist.txt
/usr/share/doc/dnscrypt-proxy/generate-domains-blocklist/domains-blocklist-local-additions.txt
/usr/share/doc/dnscrypt-proxy/generate-domains-blocklist/domains-blocklist.conf
/usr/share/doc/dnscrypt-proxy/generate-domains-blocklist/domains-time-restricted.txt
/usr/share/doc/dnscrypt-proxy/generate-domains-blocklist/generate-domains-blocklist.py
/usr/share/licenses/dnscrypt-proxy
/usr/share/licenses/dnscrypt-proxy/LICENSE
References
Summary
In this tutorial we learn how to install dnscrypt-proxy
on CentOS 8 using yum and dnf.