Where is Your DNS ? Ever Wondered !

We connect to IP address of the Website if not using Domain Name and we go through the ISP (Internet Service Provider).

If we use Domain Names, we need to resolve those Domain Names by IP stack (full DNS in your OS), applications (usually browsers) call it and all the queries to authoritative server are done by your own device.

Note : This is not how it has worked for last 20-25 years.

In IP stack, piece of software which does the resolution isn’t full resolution.

This is how DNS query works in general :

Stub Resolver (OS Resolver) -> ISP Resolver (Name Server) -> DNS Authoritative Server.

Learn More About DNS queries here.

There are two sides of the DNS network: Authoritative (the content side) and Resolver (the consumer side). Every Domain needs a Authoritative DNS provider. On the other hand, every device that connects to the Internet needs a DNS resolver. The resolver is set depending upon which network you connect to (which is usually your ISP, coffee shop router).

Initially name server was provided by your ISP, your ISP resolver will connect to Authoritative DNS Server ( do caching) called as Local DNS Resolution.

Then Remote DNS Resolution start to happen. Still have to go through ISP to a topologically distant resolver like (paid DNS resolver: CISCO umbrella /opendns) and free ones like Cloudflare.

DoH (DNS over HTTPS Protocol)

On April 1, 2018, Cloudflare announced that they are launching as the fastest, privacy-first consumer DNS Service. This was very disturbing for group of people who wanted to monitor every activity of the common people. Of course by group of people i mean bad people or good people with bad intentions !

Features :

  • It transmit DNS queries to the Resolver over an HTTPS Connection that is HTTP protocol over SSL (Secure Socket Layer)/TLS (Transport Layer Security) which encrypts the DNS queries.
  • Main objective is to mix up DNS traffic with common HTTPS web traffic on port 443 instead of port 53 which sends DNS queries in clear text.
  • It can be used by an HTTPS-speaking app, bypassing the OS and its settings.

Main changes to DNS Resolution Process :

  1. Device to Resolver connection is encrypted and hidden inside web traffic.
  2. Each application can use different resolver.
  3. DNS becomes an application level service.
  4. Each application maker can hardware their own remote resolver, at least as a default.

What are the concerns of ISPs and Governments over DoH ?

The Truth is that even when you are visiting a website that is encrypted – has the little green lock in your browser – that doesn’t keep your DNS resolver (by default your ISP) from knowing the identity of all the sites you visit.

But when DNS queries are transported with encrypted HTTPS traffic, it is impossible from the outside to distinguish weather some HTTPS traffic contains DNS queries or contains normal web page unless you block all the HTTPS traffic.

Real Worries : Suppose you have someone who wants to track you on your path to remote resolver, and of course today DNS is not encrypted, the transport is not encrypted, so they can see all your queries, they can track you and they can make a list of everything you see on the Internet, because everything starts with DNS resolution. For example, your ISP wants to keep track of your activities and somehow monetize it.

Good or Bad Cases with DNS over HTTPS :

It is a privacy and security problem unless you are using Local DNS resolution, not intercepted unless the ISP is hacked. But for people using a remote resolver and there are many people actually wants to use one, this really changes the security of the connection.

There are number of cases if you use remote resolver and its good because in the end it gives you more privacy and security into your connection. Is this Good or Bad ?

Case 1 : ISPs using transparent DNS proxies

There are many ISPs using transparent DNS proxies and you actually think you configured a remote resolver because you put remote resolver in your system but they still intercepting your queries since they are in clear. They can take note and track you and apply some policies, may be some low mandated filtering some stuff, which is prevented by the DoH.

Case 2 : Device to Resolver Connection encrypted and Mixed with Web Traffic

If you use remote resolution and are tracked or attacked. If you trust your ISP / it does good things for you. If you use local resolution and are attacked or tracked. Unless the attacker is on the ISP’s network.

If your don’t trust your ISP / It does bad things to you.
Your ISP use transparent proxy for example filtering out botnets and malwares or they give you voluntary Services like Parental Control, Productivity Controls of all that your children can’t see Specific content in certain times of day.

Case 3 : Each application can use different resolver

If the application maker is smarter than the user and is honest. If the application maker is smarter than the User, and is dishonest. If each DoH application used the OS settings ( but you really can’t force them to ).
If you don’t trust your OS. If the user is smarter than the application maker.

Configure DNS over HTTPS :

For Firefox Users :

  • type “about:config” in address bar
  • type “network.trr” in search field
  • double click on “network.trr.mode”
  • type “2” in field and PRESS OK
  • make sure “network.trr.uri” is SET to “https://mozilla.cloudflare-dns.com/dns-query”
  • Now encrypt the Server Name Indication
  • type “network.security.esni.enabled” in search field
  • double click on it, Toggle and SET it to “TRUE”
  • Restart your browser ! Congrats , you are awesome !
  • At last Check your Browser Security here
  • Check your Connection here

For Chrome Users :

  • Click here and follow the steps
  • It is only available for Chrome Mobile

Solution for Network Administrators for DoH : ” DON’T TALK TO STRANGERS “

The Real Question is who should choose Your Resolver ?

  1. The User ?
  2. The ISP ?
  3. The Browser ?
  4. ISP, on behalf of User ?
  5. Browser, on behalf of User ?

Who should be entitled to apply policies to your DNS ?

  1. The Government ?
  2. The Resolver ?
  3. The Network Administrator ?


The DNS resolution is the very first thing is done in background when you connect to Internet and most important to focus on. It totally depends upon you to choose a DNS resolver that you trust and configure it with IP address of remote resolver. But in my opinion Cloudflare is putting great effort in making it secure and fast. So you must use (Cloudflare) or (Quad9) DNS servers. Cloudflare says that they keep DNS queries for only 24 hours and do not write the querying IP address to the disk. They do not use browser data for targeting ads. You can take Domain hosting services from Cloudflare here.

What you think about it ? Let us know in the comments below !!

9 thoughts on “DNS over HTTPS

  1. Hi there, i read your blog occasionally and i own a similar one
    and i was just curious if you get a lot of spam
    comments? If so how do you prevent it, any plugin or anything you can advise?
    I get so much lately it’s driving me mad so any help is very
    much appreciated. I’ve been browsing online more than 2 hours today, yet I never found any
    interesting article like yours. It’s pretty worth enough for me.
    In my opinion, if all webmasters and bloggers made good content as you did,
    the web will be a lot more useful than ever before.
    I’ve been surfing online more than 2 hours today, yet I never found
    any interesting article like yours. It’s pretty worth enough
    for me. In my view, if all site owners and bloggers made good content as you did, the web will be much more useful than ever before.

  2. Hiya, I stumbled upon your internet site by the use of Google
    at the same time searching for a affiliated field, your site got here in place, it appears awesome.
    I’ve bookmarked doing it within my aol favorites.

  3. I blog often and I truly thank you for your content.

    Your article has truly peaked my interest. I am going to book mark your site and keep checking for new
    information about once a week. I opted in for your Feed as well.

  4. It is appropriate time to make some plans for the future and it is
    time to be happy. I have read this post and if I could I wish to
    suggest you few interesting things or advice. Maybe you can write next articles referring to this article.
    I wish to read even more things about it! I could not
    refrain from commenting. Exceptionally well written! I will immediately snatch your rss feed as I
    can’t to find your e-mail subscription link or newsletter service.

    Do you have any? Please permit me know in order that I could subscribe.
    Thanks. http://alexa.com/

Leave a Reply

Your email address will not be published. Required fields are marked *