Skip to main content

Command Palette

Search for a command to run...

What is DNS over HTTPS

Updated
7 min read
What is DNS over HTTPS
D

Learning and practicing cybersecurity since 2018, Linux is my home, and my terminal is my playground. I speak fluent Nmap and have a healthy obsession with Wireshark captures.

Introduction

You might have heard about DNS over HTTPS, or DoH, but wondered what it really means for your internet use. If you care about privacy and security online, understanding DoH is important. It’s a technology designed to make your web browsing safer by protecting the way your device looks up websites.

In this article, I’ll explain what DNS over HTTPS is, how it works, and why it’s becoming a key part of internet security. By the end, you’ll know how DoH can help keep your online activities private and how you can start using it today.

What is DNS?

Before diving into DNS over HTTPS, let’s quickly cover what DNS is. DNS stands for Domain Name System. It’s like the phonebook of the internet. When you type a website address like www.example.com, DNS translates that into an IP address, which computers use to find each other.

Without DNS, you’d have to remember long strings of numbers instead of simple website names. This system makes the internet easy to use but also opens up some privacy and security risks.

How DNS Works

  • You enter a website URL in your browser.
  • Your device sends a DNS query to a DNS server.
  • The server responds with the IP address of the website.
  • Your browser connects to the website using that IP address.

This process happens every time you visit a new website, usually in milliseconds.

What is DNS over HTTPS (DoH)?

DNS over HTTPS is a protocol that encrypts DNS queries using HTTPS, the same secure protocol used for websites. Normally, DNS queries are sent in plain text, which means anyone on the network can see what websites you’re trying to visit.

DoH changes this by sending DNS requests inside an encrypted HTTPS connection. This means your DNS queries are hidden from eavesdroppers, making it much harder for hackers, ISPs, or anyone else to spy on your browsing habits.

Key Features of DoH

  • Encryption: DNS queries are encrypted using HTTPS.
  • Privacy: Prevents third parties from seeing your DNS requests.
  • Security: Protects against DNS spoofing and man-in-the-middle attacks.
  • Compatibility: Works with existing DNS infrastructure but adds a layer of security.

Why Does DNS over HTTPS Matter?

You might wonder why encrypting DNS queries is important. Here are some reasons why DoH is gaining attention:

Protecting Your Privacy

When DNS queries are unencrypted, your internet service provider (ISP), network administrators, or hackers can see every website you visit. This data can be used for tracking, profiling, or even selling your browsing habits.

DoH hides this information by encrypting the DNS traffic, so only you and the DNS resolver know what sites you’re visiting.

Improving Security

DNS is a common target for cyberattacks. Hackers can intercept or redirect DNS queries to fake websites, a technique called DNS spoofing or cache poisoning. This can lead to phishing attacks or malware infections.

DoH helps prevent these attacks by encrypting DNS queries and verifying the server’s identity through HTTPS.

Bypassing Censorship and Filtering

In some countries or networks, DNS queries are monitored or blocked to restrict access to certain websites. Since DoH encrypts DNS traffic, it can help users bypass censorship or filtering that relies on monitoring DNS requests.

How Does DNS over HTTPS Work?

DoH works by sending DNS queries as HTTPS requests to a DoH-compatible DNS server. Here’s a simple breakdown:

  1. Your device sends a DNS query wrapped inside an HTTPS request.
  2. The DoH server receives the encrypted request and decrypts it.
  3. The server looks up the IP address for the requested domain.
  4. The server sends the IP address back inside an encrypted HTTPS response.
  5. Your device decrypts the response and connects to the website.

This process happens seamlessly in the background, without changing how you browse the web.

DoH vs Traditional DNS

FeatureTraditional DNSDNS over HTTPS (DoH)
Query EncryptionNoYes
Privacy ProtectionLowHigh
Vulnerable to SpoofingYesNo (due to HTTPS security)
Network CompatibilityUniversalRequires DoH-compatible server
PerformanceFastSlightly slower due to encryption

Who Provides DNS over HTTPS Services?

Several major companies and organizations offer DoH services. You can configure your device or browser to use these DoH servers for better privacy.

  • Cloudflare (1.1.1.1): Known for fast and privacy-focused DNS services.
  • Google Public DNS (8.8.8.8): Offers DoH with a large global network.
  • Quad9 (9.9.9.9): Focuses on security by blocking malicious domains.
  • NextDNS: Customizable DNS with DoH support and privacy controls.

Each provider has its own privacy policies and features, so it’s good to review them before choosing.

How to Enable DNS over HTTPS

You can enable DoH on your device or browser to start benefiting from encrypted DNS queries. Here’s how:

Enabling DoH in Browsers

Most modern browsers support DoH natively.

  • Mozilla Firefox:

    • Go to Settings > General > Network Settings.
    • Enable “Enable DNS over HTTPS.”
    • Choose a provider or enter a custom DoH server URL.
  • Google Chrome:

    • Go to Settings > Privacy and Security > Security.
    • Enable “Use secure DNS.”
    • Select a provider or enter a custom DoH server.

Enabling DoH on Your Device

Some operating systems allow you to configure DoH at the system level.

  • Windows 11:

    • Go to Settings > Network & Internet > Advanced network settings > DNS settings.
    • Choose “Encrypted only (DNS over HTTPS).”
    • Enter your preferred DoH server.
  • Android 9 and above:

    • Go to Settings > Network & Internet > Private DNS.
    • Select “Private DNS provider hostname.”
    • Enter a DoH provider’s hostname (e.g., 1dot1dot1dot1.cloudflare-dns.com).

Enabling DoH at the device level protects all apps, not just your browser.

Potential Drawbacks of DNS over HTTPS

While DoH offers many benefits, it’s not perfect. Here are some challenges to consider:

Network Management Issues

Network administrators often rely on DNS traffic to monitor or filter content. DoH encrypts DNS queries, making it harder for them to manage networks or enforce policies.

Centralization Concerns

If many users rely on a few DoH providers, it could lead to centralization of DNS traffic. This raises privacy concerns if those providers collect or misuse data.

Performance Impact

Encrypting DNS queries adds some overhead, which might slightly slow down DNS resolution. However, this impact is usually minimal with modern networks.

The Future of DNS over HTTPS

DoH is becoming a standard for secure DNS communication. As more devices and services adopt it, online privacy and security will improve. Industry groups and standards organizations continue to work on making DoH easier to deploy and more efficient.

You can expect:

  • Wider adoption across devices and networks.
  • More DoH providers with strong privacy commitments.
  • Improved tools for managing DoH in enterprise and home networks.

Conclusion

DNS over HTTPS is a powerful technology that protects your online privacy by encrypting DNS queries. It stops others from spying on the websites you visit and helps prevent cyberattacks like DNS spoofing. By using DoH, you take an important step toward safer and more private internet browsing.

You don’t have to be a tech expert to benefit from DoH. Many browsers and devices now support it, and enabling it is simple. As the internet evolves, DoH will play a key role in making your online experience more secure and private.

FAQs

What is the main benefit of DNS over HTTPS?

The main benefit is privacy. DoH encrypts DNS queries, preventing others from seeing which websites you visit and protecting your browsing data from eavesdropping.

Can DNS over HTTPS slow down my internet?

DoH may add a tiny delay due to encryption, but with modern networks, this is usually unnoticeable and outweighed by the security benefits.

Is DNS over HTTPS supported on all devices?

Most modern browsers and newer operating systems support DoH. However, some older devices or networks may not support it yet.

How is DNS over HTTPS different from VPN?

DoH encrypts only DNS queries, while a VPN encrypts all your internet traffic and hides your IP address. Both improve privacy but serve different purposes.

Can I use DNS over HTTPS with any DNS provider?

No, you need to use a DNS provider that supports DoH. Popular providers like Cloudflare, Google, and Quad9 offer DoH-compatible servers.

More from this blog

T

Tech-Audit | Cybersecurity Tips, Tricks & Fixes

939 posts