🧅 Tor Browser & DNSaaS

Understanding Tor Browser's DNS handling and why DoH configuration is not applicable.

🧅 Tor Browser • Desktop ⚠️ Not Supported 🔒 Built-in DNS over Tor

📋 Overview

Tor Browser is a privacy-focused browser that routes all traffic through the Tor network. Unlike other browsers, Tor handles DNS resolution internally through its own encrypted network for maximum privacy and anonymity.

🔒 Why Tor Browser Does NOT Support Custom DoH

  • Internal Resolution: Tor Browser routes DNS requests through the SOCKS proxy and Tor circuit, anonymizing traffic.
  • Bypassing Tor: Forcing an external DoH resolver inside Tor Browser can leak DNS requests or break .onion domain resolution.
  • Project Consensus: The Tor Project developers and community consensus state that standard browser-level DoH settings should be left disabled or default.
⚠️ Important Configuring DNS-over-HTTPS (DoH) inside the Tor Browser is not recommended and may compromise your privacy and anonymity.

🔍 How Tor Browser Handles DNS

Aspect How Tor Browser Works
DNS Resolution DNS requests are routed through the Tor network, not to external DNS servers.
.onion Domains Tor Browser resolves .onion domains internally using the Tor network's distributed hash table.
Privacy DNS queries are encrypted and anonymized through the Tor circuit.
DoH Support While the underlying Firefox engine supports DoH, it is disabled by default and not recommended to enable.

⚖️ Tor Browser vs Standard Browsers

🌐 Standard Browsers ✅ DoH Supported Chrome, Firefox, Edge, Brave, Opera, Vivaldi
🧅 Tor Browser ⚠️ DoH Not Recommended Uses built-in DNS over Tor
Feature Standard Browsers Tor Browser
Custom DoH Support ✅ Yes ❌ Not Recommended
Token Authentication ✅ Supported ❌ Not Applicable
.onion Domain Resolution ❌ No ✅ Yes
DNS Privacy ⚠️ Depends on DoH provider ✅ Built-in anonymity

⚙️ What Happens If You Try to Configure DoH

1 Attempting to Change Settings

If you try to configure DoH in Tor Browser via about:config, you may find that:

  • network.trr.mode is set to 5 (disabled)
  • Changing this setting may break Tor's built-in DNS resolution
  • .onion domains will stop resolving correctly
❌ Do Not Configure DoH in Tor Browser
  • network.trr.mode = 5 is the default (DoH disabled)
  • Changing to 2 or 3 will break Tor's anonymity
  • .onion domains will no longer resolve correctly
  • DNS queries may leak outside the Tor network

2 Recommended Configuration

Leave Tor Browser at its default settings.

Tor Browser is designed to protect your privacy and anonymity out of the box. No additional DNS configuration is needed or recommended.

💡 Recommended Approach for Businesses

For organizations that want to use both DNSaaS and Tor Browser:

Option 1: System-Level DNS

Configure DNSaaS at the operating system level using dnsdist or systemd-resolved.

  • All applications (including Tor Browser) will use the system DNS
  • Tor Browser will still route DNS through the Tor network
  • Does not interfere with Tor's anonymity

Option 2: Network-Level DNS

Configure DNSaaS at the router/network level.

  • All devices on the network use DNSaaS
  • Tor Browser's DNS remains internal to Tor
  • Recommended for enterprise environments

Option 3: Use Other Browsers for DNSaaS

Use Tor Browser only for anonymous browsing and other browsers for regular browsing with DNSaaS.

  • Firefox, Brave, Chrome, Edge, Opera, Vivaldi all support DNSaaS
  • Tor Browser remains in its default configuration
  • Best of both worlds

🎯 Summary


📚 Official Documentation:
https://tb-manual.torproject.org/