DNSCrypt is a network protocol which authenticates and encrypts Domain Name System (DNS) traffic between the user's computer and recursive name servers. It turns regular DNS traffic into encrypted DNS traffic that's protected from spying, spoofing, or man-in-the-middle attacks, thus improving the user's online security and privacy. Compared to v1, the 2.0 series of DNSCrypt Proxy, which had its first stable release back in February, was rewritten in Go, has support for DNS-over-TLS and DNS-over-HTTP, and it supports DNS caching. It also has a new configuration file format that's not compatible with the old v1.
DNSCrypt Proxy v2 is available in the Debian Testing and Unstable repositories, as well as the Ubuntu 18.10 repositories. There's also a PPA for Ubuntu 18.04 and Linux Mint 19. The PPA has packages for older Ubuntu / Linux Mint versions but I couldn't get it to work, so this article offers instructions only for Ubuntu 18.04, Ubuntu 18.10, Linux Mint 19, Debian Unstable and Debian Testing.
See how to install DNSCrypt Proxy2 in Ubuntu or Debian.