DNSCrypt Field Guide
The following page is a quick guide to DNSCrypt, a protocol designed to improve your DNS security.
This page is still a work-in-progress. More information will be added when available.
There comes a time where you would use an alternate DNS server over the DNS servers provided by your ISP, be it to improve your Internet performance, get around filters, etc. How-To Geek has a good article explaining why you would prefer to use an alternate DNS service. A few popular alternate DNS servers include Google Public DNS, Cisco OpenDNS or OpenNIC.
However, at some times, these alternate DNS servers might be intercepted by your ISP, allowing your ISP to be able to log your Internet activities again. This is called a DNS leak. A good way to test this is through the DNS leak test.
For instance, here’s a test run by someone using the Google Public DNS, run on a different network from mine.
However, when running the same test using the same DNS provider through my own network, I see this.
As you can see, the default DNS server from my own ISP is now showing instead of the standard DNS servers provided by Google Public DNS. This is a simple case of a DNS leak.
What DNSCrypt does
DNSCrypt solves the DNS leak problem mentioned above. It uses cryptographic signatures to verify that responses originate from the chosen DNS resolver and haven’t been tampered with.
If you’re worried about your internet service provider intercepting your DNS resolver, and have them swap it with their own DNS resolver, be it for logging purposes, or to inject advertising to your browsing activity, then this is the right tool for you to use.
What DNSCrypt doesn’t do
Please be aware that DNSCrypt is not a VPN, or a replacement for it. It does not anonymize your connection at all. DNSCrypt is just a protocol used to verify and authenticate your connection with your DNS resolver, as explained above.
Getting it to work
For now, the following guides are only available for Windows. However, feel free to let me know if you can get a quick guide for other operating systems, and I’ll add them here.
Windows (the easy way)
If you don’t know how to set up DNSCrypt through a command line, a few DNSCrypt clients are available for Windows:
This guide will use Simple DNSCrypt. If you would like to use other clients within the list, please read through the manual for the client you want to use.
Simple DNSCrypt provides an easy interface to manage your DNSCrypt services, the DNS resolvers you use as well as linking your computer’s network adapters to the DNSCrypt service.
First, download the installer from the Simple DNSCrypt website, and install it. (Note: administrator rights might be required in order to install and run this app!)
Once the setup has been completed, and you run the app, you will see this.
The top part of this window is your network adapters. Active network adapters that aren’t linked to the DNSCrypt service are marked grey, and when you link it to the DNSCrypt service, it will turn green. Inactive adapters are marked grey.
The middle part is where you configure your DNS resolvers. So far Simple DNSCrypt doesn’t have support for secondary resolvers, but this will come in a later update. The bottom part of the window is an option to toggle your DNSCrypt services off.
To configure your DNSCrypt service, first you will have to choose which DNSCrypt resolvers you will use. I prefer OpenNIC.
Then, toggle this switch to activate your DNSCrypt service.
And lastly, click on a network adapter to activate the service for that adapter. Basically, what this does is replace your preferred DNS server to
127.0.0.1, since that’s where the DNSCrypt service runs on.
Run the DNS leak test again, and your DNS resolver should work normally again!
Windows (the hard way)
If you want more control of the DNSCrypt service, you can always set it up from the command line. Dominus Temporis has a nice guide to get the DNSCrypt service running through the command line.