How To Install dnscrypt-proxy2 on CentOS 7

In this tutorial we learn how to install dnscrypt-proxy2 on CentOS 7. dnscrypt-proxy2 is Flexible DNS proxy, with support for encrypted DNS protocols

Introduction

In this tutorial we learn how to install dnscrypt-proxy2 on CentOS 7.

What is dnscrypt-proxy2

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 automatically measure and keep track of their speed, and balance the traffic across the fastest available ones. - Cloaking preconfigured 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-proxy2 on CentOS 7. In this tutorial we discuss both methods but you only need to choose one of method to install dnscrypt-proxy2.

Install dnscrypt-proxy2 on CentOS 7 Using yum

Update yum database with yum using the following command.

sudo yum makecache

After updating yum database, We can install dnscrypt-proxy2 using yum by running the following command:

sudo yum -y install dnscrypt-proxy2

Install dnscrypt-proxy2 on CentOS 7 Using dnf

If you don’t have dnf installed you can install DNF on CentOS 7 first. Update yum database with dnf using the following command.

sudo dnf makecache

After updating yum database, We can install dnscrypt-proxy2 using dnf by running the following command:

sudo dnf -y install dnscrypt-proxy2

How To Uninstall dnscrypt-proxy2 on CentOS 7

To uninstall only the dnscrypt-proxy2 package we can use the following command:

sudo dnf remove dnscrypt-proxy2

References

Summary

In this tutorial we learn how to install dnscrypt-proxy2 on CentOS 7 using yum and dnf.