CNIT 40 Proj 11x: DNSCrypt on Windows (10 pts extra)

What you need


First you'll observe normal DNS traffic, and see how it compromises your privacy by sending domain names over the network in plaintext.

After installing a DNSCrypt client, you'll see that some private DNS traffic is now encrypted.

Installing .NET 4.7

Download and install it from this URL:

You cannot use Windows Server 2008. You need a more modern Windows version.

Stopping your DNS Server

If you are using a shared machine, or taking CNIT 40, your Windows machine may be a DNS server. Open Server manager and stop the DNS server, as shown below.

Installing Wireshark

If you don't already have Wireshark installed, get it here:

Viewing Normal DNS Traffic

Open Wireshark. In the Capture section, double-click the network interface that goes to the Internet. In the image below, it's Ethernet0.

At the top of the Wireshark window, in the Filter: bar, enter this code:

frame contains facebook && dns
Press Enter.

Now Wireshark will only show DNS traffic containing "facebook".

Open a web browser and go to

Wireshark should show DNS traffic resolving domain names at facebook, as shown below. You may need to expand the window, or scroll sideways, to see it.

From the Wireshark menu bar, click Capture, Stop.

Privacy Implications

This is pretty nasty--anyone who inspects network traffic can see what sites each person is visiting anytime. Monitoring DNS is a common technique used to catch employees doing forbidden Web surfing at work. To maintain privacy, this traffic should be encrypted, but the DNS protocol doesn't include that option.

Installing Simple DNSCrypt

In a Web browser, go to

Download the correct version for your system, 64-bit or32-bit, as shown below.

If you don't know which system you have, open a Command Prompt and execute the control system command to find out.

Run the installer. If it won't launch, right-click the file you downloaded and click Properties. At the bottom of the Properties sheet, click Unblock, as shown below. Then launch the installer again.

The "Simple DNSCrypt" window opens. On the "Main Menu" tab, make the adjustments shown belowe, and then click the "apply settings" button.

Restarting Packet Capturing

In Wireshark, from the menu bar, click Capture, Start. Click "Continue without Saving".

At the top of the Wireshark window, in the Filter: bar, enter this code:

frame contains kitten && dns
Press Enter.

In a Web browser, go to

Wireshark doesn't find any packets containing "kitten", as shown below.

Now you have more privacy!

Using Quad9 Resolvers

In the "Simple DNSCrypt" window, click the Resolvers tab.

Scroll down and click the two Quad9 resolvers, as shown below.

Scroll to the top. Click the slider on the right to disable Automatic Mode, as shown above. Click the "apply settings" button.

Testing your Resolvers

Open a Web browser and go to:

Click the "Extended Test" button.

You should at least one address ending in, as shown below. This is the Quad9 network, and it shows that you are using their DNSCurve system.

Saving a Screen Image

Make sure the domain is visible.

Capture a whole-desktop image.

Save the image with the filename "Your Name Proj 11x". Use your real name, not the literal text "Your Name".


Turning in your Project

Send the image to: with a subject line of "Proj 11x From Your Name", replacing Your Name with your own first and last name. Send a Cc to yourself.


DNSCrypt Now in Testing

Posted 9-19-18
Updated to use Quad9 on 12-6-18
Step order