{"id":10200,"date":"2019-04-23T12:59:17","date_gmt":"2019-04-23T16:59:17","guid":{"rendered":"https:\/\/www.thesslstore.com\/blog\/?p=10200"},"modified":"2023-04-10T09:38:43","modified_gmt":"2023-04-10T13:38:43","slug":"what-is-a-dns-leak","status":"publish","type":"post","link":"https:\/\/www.thesslstore.com\/blog\/what-is-a-dns-leak\/","title":{"rendered":"What Is a DNS Leak?"},"content":{"rendered":"\n<h2 class=\"wp-block-heading\" id=\"h-what-causes-a-dns-leak-and-what-can-be-done-to-fix-one\">What causes a DNS Leak and what can be done to fix one?<\/h2>\n\n\n\n<p>Do you remember the first time you grew a little bit concerned about your digital privacy? Maybe it was the first time you figured out the ads you\u2019ve been seeing are specifically targeted to you. Maybe it was Google\u2019s eagerness to be helpful that betrayed just how much information it has about you (it knows where you are right now). Or maybe you\u2019ve never really considered these things and today\u2019s discussion about DNS leaking will really open your eyes. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Opener-300x300.png\" alt=\"What are DNS leaks?\" class=\"wp-image-10220\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Opener-300x300.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Opener-768x765.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Opener-1024x1020.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<p>If that\u2019s the case, I envy you. In fact, maybe even consider just taking a rain-check on the rest of this article and then just continue living your life \u2013 because ignorance truly is bliss. <\/p>\n\n\n\n<p>But for the rest of us, privacy is an unfortunate consideration in many of the decisions we make online. <\/p>\n\n\n\n<p>And when it comes to our digital privacy, DNS leaks are a\nparticularly pernicious threat to said privacy. But despite their ability to\ncompromise your anonymity, DNS leaks are also one of the least understood\nthreats faced by the modern internet user. That\u2019s owing to a lot of different\nfactors, chief among them that aforementioned blissful ignorance.<\/p>\n\n\n\n<p>If we\u2019re being honest, the average internet user doesn\u2019t understand how the connections being made by their own computer actually work, nor do they understand the Internet Protocol, IP addresses, the Domain Name System or even Virtual Private Networks. In turn, that lack of information makes everything else feel abstract and basically blunts any concern we would otherwise have about the threat.<\/p>\n\n\n\n<p>So, today we\u2019re going to talk about DNS Leaks, what they\nare, why they\u2019re dangerous and how to fix them.<\/p>\n\n\n\n<p>Let\u2019s hash it out.<span id=\"newline\"><\/span><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-internet-connections-and-vpns\">Internet Connections and VPNs<\/h2>\n\n\n\n<p>If you\u2019ll recall a few weeks ago we went <a href=\"https:\/\/www.thesslstore.com\/blog\/what-does-https-protect\/\">in-depth on the TCP\/IP model for network connections<\/a>. If you want a complete explanation of all that, I recommend checking it out. But for now, here\u2019s the abridged version:<\/p>\n\n\n\n<p>Anytime you make a connection on the internet, data is being routed across multiple layers, in multiple ways, to facilitate the connection itself. In fact, calling it a singular connection can even be a little misleading as there are actually multiple connections being made throughout the process. Of course, this all happens in the background, so for most of us our only exposure to a lot of it is the error messages that are triggered when something goes wrong (<a href=\"https:\/\/www.thesslstore.com\/blog\/tls-handshake-failed\/\">TLS handshake error<\/a>, I\u2019m looking at you). <\/p>\n\n\n\n<p>So, while on the user side visiting a website might seem as straightforward as typing \u201camazon.com\u201d into your address bar and within seconds you\u2019re connected to Amazon. But that belies just how complicated making that connection actually was. <\/p>\n\n\n\n<p>Let&#8217;s illustrate with an example. Here\u2019s a quick breakdown of what a mail connection would look like:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"948\" height=\"505\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-TCPIP-Model-1.png\" alt=\"How an internet connection is made\" class=\"wp-image-10223\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-TCPIP-Model-1.png 948w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-TCPIP-Model-1-300x160.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-TCPIP-Model-1-768x409.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-TCPIP-Model-1-940x500.png 940w\" sizes=\"auto, (max-width: 948px) 100vw, 948px\" \/><\/figure>\n<\/div>\n\n\n<p>Again, we\u2019re not going to go too far into the weeds on thre of the four layers you see here, instead we\u2019re going to focus in on the Network Layer where the Internet Protocol functions. <\/p>\n\n\n\n<p>The top two layers, Application and Transport, largely deal with the defining the connection itself. What port will it use. What connection type (TCP or UDP). Data is ported, segmented and put into transmittable packets. <\/p>\n\n\n\n<p>On the Network Layer you\u2019re handling the connection between different networks via the Internet Protocol and the networks\u2019 respective IP addresses.<\/p>\n\n\n\n<p>You\u2019re likely familiar with IP addresses, but you might not know why they\u2019re significant. <a href=\"https:\/\/www.thesslstore.com\/blog\/googles-plan-to-kill-the-url-is-a-golden-opportunity-for-certificate-authorities\/\">While Google has plans to kill it<\/a>, colloquial use of the internet has always relied on the URL or Uniform Resource Locator. Asking people to remember strings of numbers has historically not been a good idea. Our cell phones have largely eliminated the problem, but before everyone had a mobile device in their pocket, remembering phone numbers was a huge pain in the rear. (Also, using Maps.) People often had to carry around black books full of phone numbers or else record them on the walls of bathroom stalls for their use in perpetuity. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-168117545-300x300.jpg\" alt=\"\" class=\"wp-image-10216\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-168117545-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-168117545-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-168117545-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-168117545.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<p>So, asking you to remember an IPv4, or even worse an IPv6 address is going to yield a lot less success than just rolling with a URL like \u201ccompany.com.\u201d People remember \u201ccompany.com.\u201d Thus, we use URLs.<\/p>\n\n\n\n<p>But that creates its own issue, now you need to keep a dedicated resource that serves as a de facto phone book, pairing URLs with their respective IP addresses. But given the fact the internet is constantly growing, that websites can change IP addresses, and considering the amount of space that would be required to keep an ongoing record of all that, how do you reconcile letting users use URLs when networks and websites use IP addresses? <\/p>\n\n\n\n<p>The Domain Name Service or DNS. <\/p>\n\n\n\n<p>DNS is that resource. In the example above, after the information has been segmented and ported, it needs to be delivered to the correct network. In order to do this, the Internet Protocol will likely be used, which will require the correct IP address to be affixed to the data in the form of a header that will be used to route it to the correct destination.<\/p>\n\n\n\n<p>But in order to get the correct IP address, you\u2019re going to need to perform a DNS look-up.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1016\" height=\"448\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Diagram.png\" alt=\"How DNS works\" class=\"wp-image-10208\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Diagram.png 1016w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Diagram-300x132.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Diagram-768x339.png 768w\" sizes=\"auto, (max-width: 1016px) 100vw, 1016px\" \/><\/figure>\n<\/div>\n\n\n<p>This occurs on the network layer. Before the data can be\nrouted to its intended recipient, the sender\u2019s computer system or network is\ngoing to need to reach out to a DNS server or resolver to pair the given URL\nwith its IP address. This is a highly technical step that many people never\ngive a second thought to. But if you\u2019re worried about your privacy this is also\none of those critical steps in a connection that can effectively muck up everything.<\/p>\n\n\n\n<p>Here\u2019s why\u2026<\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-s-the-big-deal-about-a-dns-leak\">What\u2019s the Big Deal About a DNS Leak?<\/h2>\n\n\n\n<p>Ideally, in a perfect world, you wouldn\u2019t need to worry about your DNS lookups being a problem. Guess what, that\u2019s not the world we live in. This issue really plays out on two different levels depending on your geography. But before we get to that, let\u2019s contextualize just a little bit more by bringing VPNs into this conversation.<\/p>\n\n\n\n<p>People use VPNs for two primary reasons: <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Security<\/li>\n\n\n\n<li>Privacy<\/li>\n<\/ul>\n\n\n\n<p>And those two reasons are hardly mutually exclusive. Aptly named, a <a href=\"https:\/\/vpnstore.com\/\">VPN<\/a> is a literal virtual network through which all of a user\u2019s internet traffic can be funneled through to improve privacy. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"998\" height=\"249\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Diagram.png\" alt=\"How a VPN works\" class=\"wp-image-10207\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Diagram.png 998w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Diagram-300x75.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Diagram-768x192.png 768w\" sizes=\"auto, (max-width: 998px) 100vw, 998px\" \/><\/figure>\n<\/div>\n\n\n<p>A well-configured VPN can block your IP address, shield you from tracking and all but make you anonymous. A third party might know that you\u2019re using a VPN, but it doesn\u2019t know what you\u2019re doing with it. <\/p>\n\n\n\n<p>DNS leaking screws all of that up. Typically, the result of\nmisconfiguration (or using a shoddy VPN), DNS leaking occurs when a device or\nnetwork attempts to make a DNS call outside of the VPN tunnel. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"990\" height=\"525\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Leak.png\" alt=\"How a DNS leak works\" class=\"wp-image-10206\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Leak.png 990w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Leak-300x159.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNS-Leak-768x407.png 768w\" sizes=\"auto, (max-width: 990px) 100vw, 990px\" \/><\/figure>\n<\/div>\n\n\n<p>Now, if you\u2019re not using a VPN, then all of this information is already being logged by your Internet Service Provider (ISP), anyway. Every time you try to resolve a URL your ISP\u2019s DNS server records your IP address, the given URL and the IP address you\u2019re attempting to reach. That means it can effectively track you across the internet.<\/p>\n\n\n\n<p>And that\u2019s a big part of why you would want to use a VPN, DNS records provide myriad information about an internet user and their behavior online. Remember how we started this section by mentioning that the severity of your DNS lookups not being private varies by your geography and typically breaks down into one of two different categories?<\/p>\n\n\n\n<p>In the developing world, where internet freedom is not at a premium, DNS records can be used to track internet use, help censor material and even punish people for trying to access banned or blocked content. There are some places around the world where even being tangentially connected to the wrong website or network can land you in a labor camp or jail. <\/p>\n\n\n\n<p>Fortunately, that\u2019s a reality most of us will never experience. For internet users around the rest of the world, VPN use and digital privacy are concerned more with \u201cfirst world problems&#8221; than anything that registers on a human rights scale. <\/p>\n\n\n\n<p>In more developed countries having a DNS leak can lead to:<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/ISP-300x300.png\" alt=\"Your ISP records your DNS calls\" class=\"wp-image-10225\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/ISP-300x300.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/ISP-768x768.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/ISP-1024x1024.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<ul class=\"wp-block-list\">\n<li>Having your internet speed throttled when attempting to access streaming content<\/li>\n\n\n\n<li>Having certain websites and networks slowed down or even blocked by some ISPs<\/li>\n\n\n\n<li>Unwanted legal attention when downloading torrents or pirated content<\/li>\n\n\n\n<li>Potential sale of your internet activity\/history to third-parties like ad networks<\/li>\n<\/ul>\n\n\n\n<p>So, admittedly, having your ISP throttle your speed when you\u2019re trying to watch Netflix kind of pales in comparison to being sent to the Gulags for visiting the wrong news site, but across the world there are real reasons for people to want to keep their DNS look-ups off the radars of their governments and ISPs. <\/p>\n\n\n\n<p>Having your DNS records leak completely undermines that goal, it could also allow a third party to fingerprint you, and figure out your actual IP address, which is its own problem in and of itself. Your IP address reveals a treasure trove of information, things like:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Location<\/li>\n\n\n\n<li>ISP<\/li>\n\n\n\n<li>What scripts you have enabled\/disabled<\/li>\n\n\n\n<li>What privacy measures you have in place<\/li>\n\n\n\n<li>Your system time<\/li>\n\n\n\n<li>Screen size<\/li>\n\n\n\n<li>Operating System<\/li>\n<\/ul>\n\n\n\n<p>So while many people have never given a single thought to\nDNS leaking, if you care about your digital privacy you need to start thinking\nabout it.<\/p>\n\n\n<span style=\"--tl-form-height-m:150.25px;--tl-form-height-t:121.4583px;--tl-form-height-d:121.4583px;\" class=\"tl-placeholder-f-type-shortcode_12753 tl-preload-form\"><span><\/span><\/span>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-do-i-know-if-i-have-a-dns-leak\">How Do I Know If I Have a DNS Leak?<\/h2>\n\n\n\n<p>Like carbon monoxide poisoning, there\u2019s really no telltale\nsign that you have a problem without monitoring for it. That\u2019s kind of a\nmacabre comparison, but also apropos. Fortunately, there are some pretty good\ntools that can help you to test for DNS leaks. <\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>DNSLeakTest.com<\/li>\n\n\n\n<li>BrowserLeaks.com<\/li>\n\n\n\n<li>IPLeak.net<\/li>\n\n\n\n<li>DNSLeak.com<\/li>\n<\/ul>\n\n\n\n<p>Using them is simple enough, just navigate to the website\nand follow their instructions. They\u2019ll give you a pretty clear idea about what\u2019s\nleaking.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"455\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeak.com_-1024x455.png\" alt=\"You have a DNS leak!\" class=\"wp-image-10203\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeak.com_-1024x455.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeak.com_-300x133.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeak.com_-768x341.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeak.com_.png 1656w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Some even explain what exactly the ramifications of a leak\nare.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeakTest.com_-1024x762.png\" alt=\"What your DNS leak means\" class=\"wp-image-10202\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeakTest.com_-1024x762.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeakTest.com_-300x223.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeakTest.com_-768x571.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/DNSLeakTest.com_.png 1441w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>One thing to note is that you may occasionally see a discrepancy\nor two when switching between tests. This can be attributed to the various\ndatabases in use. As long as the IP address shown corresponds to your network\nor VPN, you\u2019re fine. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-what-causes-dns-leaks\">What Causes DNS Leaks?<\/h2>\n\n\n\n<p>There\u2019s a few main reasons these DNS leaks occur, again it\u2019s\ntypically the result of misconfiguration in some form \u2013 either a VPN or a\nnetwork issue \u2013 or Microsoft Windows working against itself. It could also be\nsomething much more malignant, for instance if an attacker takes control of\nyour router \u2013 in which case you\u2019ve got much bigger problems than a DNS leak.\nSo, we\u2019ll assume it\u2019s not that.<\/p>\n\n\n\n<p>Major factors that contribute to DNS leaks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Your Operating System might have features that\ninterfere with DNS traffic<\/li>\n\n\n\n<li>Your DNS is configured to use DNS servers that\naren\u2019t controlled by your VPN (or secured)<\/li>\n\n\n\n<li>Incorrect network configuration is causing DNS\nrequests to leak<\/li>\n\n\n\n<li>IPv6 addresses are not supported<\/li>\n<\/ul>\n\n\n\n<p>We\u2019ll cover a few of the more common ones:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-improperly-configured-networks\">Improperly Configured Networks<\/h3>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"292\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Network-Misconfigured-292x300.png\" alt=\"Improperly configrued network\" class=\"wp-image-10219\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Network-Misconfigured-292x300.png 292w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Network-Misconfigured-768x789.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Network-Misconfigured-997x1024.png 997w\" sizes=\"auto, (max-width: 292px) 100vw, 292px\" \/><\/figure>\n<\/div>\n\n\n<p>Let\u2019s start with network misconfiguration and work our way out. The most common type of network misconfiguration mostly occurs for remote workers that are connecting to the organization\u2019s network via VPN\/Split Tunneling. To understand this we\u2019re going to have to take a (very) quick detour into DHCP or Dynamic Host Configuration Protocol. And rather than get too technical, we\u2019ll just pick up the explanation in media res and catch DHCP in action. <\/p>\n\n\n\n<p>Devices don\u2019t have native IP addresses, they have MAC addresses, networks have IP addresses that they delegate to devices upon their connection. Say you\u2019re visiting a friend and feel like checking your email, they give you their (probably never-changed) WiFi password and you go online. Before your device can start communicating on the network, it needs to have an IP address assigned to it (as well as receiving any other network configuration parameters that are in place). DHCP facilitates that.<\/p>\n\n\n\n<p>Ok, back to DNS leaks, one of the aforementioned network\nconfiguration parameters that DHCP handles is DNS \u2013 it automatically assigns a\nDNS server to handle any requests. Ideally, things should be configured so that\nthe DNS call is made to a secure DNS server, typically one under the auspices\nof your VPN. It\u2019s when the DNS server that\u2019s assigned (usually the ISP\u2019s) is\noutside of that tunnel that DNS leaks occur. <\/p>\n\n\n\n<p>This can be addressed at the client level, or it can be handled at the admin level, depending on your setup.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-not-supporting-ipv6\">Not Supporting IPv6<\/h3>\n\n\n\n<p>IP addresses are more <a href=\"https:\/\/www.thesslstore.com\/blog\/author\/rossthomas\/\">Ross Thomas<\/a>\u2019s area of expertise, <a href=\"https:\/\/www.thesslstore.com\/blog\/subnetting-and-masks\/\">and he\u2019s written about them extensively<\/a> (if you\u2019re interested check it out), so we\u2019ll keep this high level. When most people think of an IP address they think of IPv4 addresses, which are basically four sets of three numbers divided by a period. Those are on their way out. They\u2019re being replaced by IPv6 addresses. &nbsp;<\/p>\n\n\n\n<figure class=\"wp-block-table aligncenter is-style-stripes\"><table><tbody><tr><td><strong>   IPv4 Address <\/strong>  <\/td><td>   <strong>IPv6 Address   <\/strong><\/td><\/tr><tr><td>\n  97.76.174.114\n  <\/td><td>\n  2001:0db8:85a3:0000:0000:8a2e:0370:7334\n  <\/td><\/tr><\/tbody><\/table><\/figure>\n\n\n\n<p>The reason for this is that we\u2019re running out of IPv4 addresses. IPv4 is a 32-bit scheme, that\u2019s good for about 4.3 billion addresses. The internet is now at the point of eclipsing that, so it\u2019s in the early stages of a mass migration to IPv6 addresses, which will offer more than enough possible addresses to support the modern internet. As we\u2019ve covered before though, <a href=\"https:\/\/www.thesslstore.com\/blog\/nearly-21-of-the-worlds-top-100000-websites-still-arent-using-https\/\">these migrations typically take time<\/a> and <a href=\"https:\/\/www.thesslstore.com\/blog\/report-32-percent-us-companies-receive-f-tls-ssl\/\">they don\u2019t always go smoothly<\/a>. Therein lies the rub.<\/p>\n\n\n\n<p>Some VPNs just don\u2019t support IPv6, which if you\u2019re using a\ncommercial service might be a sign to start investigating other options, but\nthat lack of support can cause DNS leaks. If the VPN doesn\u2019t support IPv6, or\nat least know how to block the requests, then the DNS requests are going to\nleak from the tunnel. Fortunately, IPv6 leaks aren\u2019t quite as dangerous as\nregular DNS leaks, yet, it\u2019s still not a situation you want occurring.<\/p>\n\n\n\n<p>Again, ensuring your VPN supports IPv6 is the ideal route, failing that there is a protocol, 6in4, that places IPv6 traffic in an IPv4 wrapper for compatibility.<\/p>\n\n\n\n<p>Or the nuclear option is you could just choose to block IPv6 traffic entirely. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-your-isp-is-using-a-transparent-proxy\">Your ISP Is Using a Transparent Proxy<\/h3>\n\n\n\n<p>The whole debate over <a href=\"https:\/\/www.thesslstore.com\/blog\/end-net-neutrality-means-privacy\/\">Net Neutrality<\/a> looms over today\u2019s conversation about DNS leaks. In the US, at least, they are now an even more relevant threat due to the end of Net Neutrality. The democrats in the US House of Representatives are currently working to restore those protections but given the fact the opposition party controls the Senate, which also need to pass the resolution, that\u2019s likely going no where until the 2020 elections, at least. <\/p>\n\n\n\n<p>Part of the reason this was even a debate at all though is that people do not trust their Internet Service Providers. Ignoring the troubling amount of consolidation that\u2019s occurred within the industry, and the lack of consumer choice that\u2019s led to, they have historically demonstrated a tendency to put their own profitability over the rights and privacy of their customers. And that\u2019s being diplomatic. While they have so far behaved since the end of Net Neutrality (a well-calculated move), practices like transparent proxies \u2013 which is essentially your ISP forcing a DNS leak \u2013 are why the general public is loathe to trust ISPs.<\/p>\n\n\n\n<p>As we covered earlier, many ISPs want you to use their own DNS servers \u2013 after all they get to record all of that valuable information about you when you use their servers \u2013 so they don\u2019t handle it well when you configure your settings to use a third-party DNS server. Oftentimes they\u2019ll deploy a transparent proxy, which intercepts all DNS requests and reroutes them to their own DNS servers.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1018\" height=\"507\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Transparent-Proxy.png\" alt=\"How does a transparent proxy work\" class=\"wp-image-10205\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Transparent-Proxy.png 1018w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Transparent-Proxy-300x149.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Transparent-Proxy-768x382.png 768w\" sizes=\"auto, (max-width: 1018px) 100vw, 1018px\" \/><\/figure>\n<\/div>\n\n\n<p>There is no one-size-fits-all advice for configuration, but\ngenerally you should have an option in your VPN to force the use of the VPN\u2019s\nDNS servers. Alternatively, if you\u2019re using an open-source app like OpenVPN,\nyou\u2019ll need to open the .conf or .ovpn file in your text editor and amend it to\ninclude the line:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">block-outside-dns<\/pre>\n\n\n\n<p>In a moment we\u2019ll discuss <a href=\"https:\/\/www.thesslstore.com\/blog\/dns-over-tls-vs-dns-over-https\/\">DNS-over-HTTPS and DNS-over-VPN<\/a> a bit, this is one area where DNS-over-HTTPS has an edge. It sends its DNS requests via port 443, with the rest of the HTTPS traffic. That means that an ISP would have a much harder time using a transparent proxy to redirect your requests. Using DNS-over-TLS, which makes use of a dedicated port (853), is much easier to spot. Granted, redirecting those requests could still prove prohibitive, but blocking them entirely wouldn\u2019t be. <\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-you-might-need-to-give-windows-the-what-for\">You Might Need to Give Windows the What-For<\/h3>\n\n\n\n<p>Microsoft has produced a couple of features that have inadvertently caused DNS leaks in some contexts. Let\u2019s start with <strong>Smart Multi-Homed Name Resolution, <\/strong>which was rolled out in Windows 8 and is intended to improve performance by sending out DNS requests to all available DNS servers and accepting the quickest response. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Windows-300x300.png\" alt=\"\" class=\"wp-image-10214\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Windows-300x300.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Windows-768x771.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/Windows-1020x1024.png 1020w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<p>This is a perfect example of performance at the expense of\nsecurity though. And DNS leaking is on the lower end of the severity spectrum.\nYou can probably see how sending DNS requests to all available servers, as\nopposed to just using the secure DNS servers that you\u2019d ideally have configured\nyour network to use, could cause DNS leaks. It can also lend itself to DNS\nspoofing and poisoning, where an attacker can divert traffic to malicious\nwebsites by resolving DNS requests to the wrong IP address. <\/p>\n\n\n\n<p>The biggest problem with SMHNR is that it\u2019s difficult to\ndisable, owing to the fact it\u2019s built-in. The easiest way around it is to\nconnect to your VPN using the OpenVPN client, where you can download a free\nplugin that takes care of the problem.<\/p>\n\n\n\n<p>Failing that, there are two other options. If you\u2019re a\nWindows 10 user, you can deactivate it using group policies:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Type \u201cGpedit.msc\u201d into the search field in your\ntaskbar<\/li>\n\n\n\n<li>Double-click the file to open the editor<\/li>\n\n\n\n<li>In Computer Configuration, select Administrative\nTemplates -&gt; Network -&gt; DNS Client<\/li>\n\n\n\n<li>Find the \u201cTurn off Smart Multi-Home Name\nResolution\u201d field and select \u201cEnabled.\u201d<\/li>\n<\/ul>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"476\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/SMHNR-1024x476.png\" alt=\"\" class=\"wp-image-10204\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/SMHNR-1024x476.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/SMHNR-300x139.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/SMHNR-768x357.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/SMHNR.png 1655w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<p>This won\u2019t completely fix this issue, either. In the event\nthe initial DNS request fails, SMHNR will kick on and send out a bunch of\nrequests.<\/p>\n\n\n\n<p>If you\u2019re back on Windows 8 or 8.1, you can turn off SMHNR\nvia the Windows Registry. Be careful if you go into the registry and make\nchanges though, as you can really muck stuff up if you\u2019re not careful. That\u2019s\nwhy I\u2019m not going to include how to bring up the registry, as a kind of\ntechnical barrier to entry sort of thing. <\/p>\n\n\n\n<p>Here\u2019s what you need to do: start by creating a file and\nnaming it DNS.reg. Now add the following command lines:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">[HKEY_LOCAL_MACHINE\\SOFTWARE\\Policies\\Microsoft\\Windows NT\\DNSClient]<br>\"DisableSmartNameResolution\"=dword:00000001<br><br>[HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Services\\Dnscache\\Parameters]<br>\"DisableParallelAandAAAA \"=dword:0000000<\/pre>\n\n\n\n<p>Now save it and double-click it to run the command. Voila.<\/p>\n\n\n\n<p>The other Windows-based culprit for DNS leaks is called <strong>Teredo, <\/strong>which is a built-in feature that is supposed to assist with the aforementioned IPv4-to-IPv6 transition. Ideally it\u2019s supposed to allow both schemes to co-exist peacefully. <\/p>\n\n\n\n<p>The problem is that Teredo is also a tunneling protocol and\nif you\u2019re not configured correctly it can take precedence over your VPN, which\nleads to DNS leaking. Fortunately, fixing this problem is a lot simpler than\ndisabling SMHNR. Simply open your command prompt and type:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">netsh interface teredo set state disabled<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-can-i-prevent-dns-leaks\">How Can I Prevent DNS Leaks?<\/h2>\n\n\n\n<p>We\u2019ve already given some case-by-case advice for specific\ncauses, but there\u2019s also some higher-level things you can make sure you\u2019re\ndoing. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Recolor-300x300.png\" alt=\"VPN concept\" class=\"wp-image-10218\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Recolor-300x300.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Recolor-768x768.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/VPN-Recolor-1024x1024.png 1024w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-a-vpn\">Use a VPN<\/h3>\n\n\n\n<p>Though we\u2019ve basically written this article under the assumption that you should already be using a VPN, it bears repeating that a VPN server is still arguably the best way to prevent DNS leaks. Ideally, VPNs hide your traffic and obscure IP address. But, as we\u2019ve illustrated, they\u2019re not always successful in that endeavor. Still, using a VPN and ensuring that it&#8217;s configured to make DNS requests to its own secure DNS servers is a strong first step.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-use-a-secure-dns-service\">Use a Secure DNS Service<\/h3>\n\n\n\n<p>If you aren\u2019t going to use one of your VPN\u2019s DNS servers, make sure you\u2019re configuring your network to use a secure DNS service that provides you with either <a href=\"https:\/\/www.thesslstore.com\/blog\/dns-over-tls-vs-dns-over-https\/\">DNS-over-HTTPS or DNS-over-TLS<\/a>, we\u2019ve gone in-depth before on the difference between the two. The important thing is that the connection is encrypted so that the requests can\u2019t be seen by your ISP. Depending on whether you\u2019re using DoH or DoT, the ISP may still be able to see you\u2019re making DNS requests, but their contents will be encrypted and unreadable. <\/p>\n\n\n\n<p>A good example would be Cloudflare\u2019s 1.1.1.1, which supports both protocols and is also rated to be the fastest DNS service in the world. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"762\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/cloudflare-dns-1024x762.png\" alt=\"Cloudflare 1.1.1.1 DNS Service\" class=\"wp-image-10210\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/cloudflare-dns-1024x762.png 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/cloudflare-dns-300x223.png 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/cloudflare-dns-768x571.png 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/cloudflare-dns.png 1441w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n<\/div>\n\n\n<p>Other examples of secure DNS services are:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Comodo Secure DNS<\/strong>\n<ul class=\"wp-block-list\">\n<li>Main: 8.26.56.26<\/li>\n\n\n\n<li>Alternative: 8.20.247.20<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Google Public DNS<\/strong>\n<ul class=\"wp-block-list\">\n<li>Main: 8.8.8.8<\/li>\n\n\n\n<li>Alternative: 8.8.4.4<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>Open DNS<\/strong>\n<ul class=\"wp-block-list\">\n<li>Main: 208.67.222.222<\/li>\n\n\n\n<li>Alternative: 208.67.222.220<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"h-other-possible-fixes\">Other Possible Fixes<\/h3>\n\n\n\n<p>Here are a few other suggestions and tweaks:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>If you\u2019re using a VPN with an IP-binding feature, make use of it. This will essentially block any traffic that isn\u2019t traveling through the VPN tunnel. You can also configure your firewall to do this if your VPN doesn\u2019t support that feature.<\/li>\n\n\n\n<li>DNS Leak Tests are a good way to detect problems in your network, use them as part of a larger battery of tests and scans that you perform regularly.<\/li>\n\n\n\n<li>If you really want to stay on top of this, there are even VPN monitoring services that can keep track of your connections.<\/li>\n<\/ul>\n\n\n<span style=\"--tl-form-height-m:861.156px;--tl-form-height-t:899.625px;--tl-form-height-d:899.625px;\" class=\"tl-placeholder-f-type-shortcode_12653 tl-preload-form\"><span><\/span><\/span>\n\n\n<h2 class=\"wp-block-heading\" id=\"h-let-s-wrap-this-up\">Let\u2019s Wrap This Up<\/h2>\n\n\n\n<p>DNS leaks are a problem that not many people know about,\nmuch less truly understand. But as society grows more concerned with digital\nrights and data privacy, this WILL start to get more attention. <\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright\"><img loading=\"lazy\" decoding=\"async\" width=\"300\" height=\"300\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-211692241-300x300.jpg\" alt=\"\" class=\"wp-image-10217\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-211692241-300x300.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-211692241-768x768.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-211692241-1024x1024.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2019\/04\/bigstock-211692241.jpg 1600w\" sizes=\"auto, (max-width: 300px) 100vw, 300px\" \/><\/figure>\n<\/div>\n\n\n<p>While the consequences of DNS leaking in the developed world can range from disconcerting to trivial, the consequences elsewhere sometimes rise to the level of being a human rights issue. Considerable effort has been made to encrypt connections between clients and servers. <a href=\"https:\/\/www.thesslstore.com\/blog\/what-does-https-protect\/\">HTTPS can protect and obfuscate an internet user\u2019s activity ON a website<\/a>, but ISPs and third parties can still see that the user visited the website. And sometimes that, alone, can be enough to get someone in trouble.<\/p>\n\n\n\n<p>HTTPS was a good first step, securing DNS interactions needs\nto be the next one. That\u2019s the only way to prevent anyone from seeing what\nsites you\u2019re visiting in the first place. <\/p>\n\n\n\n<p>Considerable work has been done towards that end, but things like DNS leaks can undermine it all. So while it may seem like a non-issue, in reality, it\u2019s a much bigger deal than that.<\/p>\n\n\n\n<p><em>As always, leave any comments or questions below&#8230;<\/em><\/p>\n\n\n\n<figure class=\"wp-block-image\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"267\" src=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-1024x267.jpg\" alt=\"Hashed Out by The SSL Store is the voice of record in the SSL\/TLS industry.\" class=\"wp-image-7276\" srcset=\"https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-1024x267.jpg 1024w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-300x78.jpg 300w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568-768x200.jpg 768w, https:\/\/www.thesslstore.com\/blog\/wp-content\/uploads\/2018\/08\/bigstock-222348568.jpg 1559w\" sizes=\"auto, (max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>What causes a DNS Leak and what can be done to fix one? Do you remember the first time you grew a little bit concerned about your digital privacy? Maybe&#8230;<\/p>\n","protected":false},"author":6,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":"","tve_updated_post":"","tve_custom_css":"","tve_user_custom_css":"","tve_globals":{},"tcb2_ready":0,"tcb_editor_enabled":0,"tve_landing_page":"","_tve_header":"","_tve_footer":""},"categories":[16],"tags":[2380,10153,9104,4798,1509],"class_list":["post-10200","post","type-post","status-publish","format-standard","hentry","category-hashing-out-cyber-security","tag-dns","tag-dns-leaking","tag-dns-over-https","tag-dns-over-tls","tag-vpn","post-with-tags"],"views":13649,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/10200","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/comments?post=10200"}],"version-history":[{"count":0,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/posts\/10200\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/media?parent=10200"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/categories?post=10200"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.thesslstore.com\/blog\/wp-json\/wp\/v2\/tags?post=10200"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}