Introduction

Gregory Gibson, a seasoned IT professional with expertise in Linux, Windows Servers, Android customization, virtual private servers, web servers, and cybersecurity, has dedicated his work to helping others maximize their IT projects and stay safe online. When not engaged in his professional pursuits, he enjoys photography, writing science fiction, and digital art. In this guide, he shares his experience with encrypted DNS settings, focusing on the trade-off between privacy and speed.

I chose privacy over speed with my DNS and don't regret the trade-off

The Initial Curiosity

Gregory has been using encrypted DNS for a while, preferring to keep his ordinary DNS requests away from his ISP's prying eyes. However, he had never measured the impact of encrypted DNS on his queries. He decided to write a PowerShell script to measure the speed of uncached DNS lookups, comparing his ISP's DNS, Cloudflare over HTTPS, and Mullvad over HTTPS.

The Testing Methodology

To ensure accurate results, Gregory used two commands in his PowerShell script: one to clear the DNS cache and another to force Windows to use only the currently assigned resolver. He tested 10 geographically diverse domains over five rounds, with each resolver receiving 50 uncached lookups. The domain order was randomized to avoid any bias. The script recorded the success of each lookup, the average, median, fastest, and slowest requests, and saved these results to a CSV file for analysis.

The Results

The ISP's unencrypted DNS resolver won the speed test, but the average results were misleading. The median provided a clearer picture, showing that the ISP's DNS was faster than the other two services. Cloudflare's DNS over HTTPS was slower but more stable, with a median of 118. Mullvad's DNS over HTTPS, however, was significantly slower, with an average and median of around 1. 16 seconds, and the fastest lookup still took over a full second.

The Importance of Encryption and Routing

The results highlighted the importance of encryption and routing in DNS settings. The ISP's DNS was using plain text requests, which made it appear slower than it actually was. Cloudflare's DNS over HTTPS was more stable and predictable, while Mullvad's DNS over HTTPS was slower due to the distance between its servers and the user's location. This guide aims to provide a comprehensive understanding of the trade-off between privacy and speed in DNS settings.

Comments