How to Configure Private DNS (DNS-over-TLS) on Android

Every time you open a website, launch a mobile application, or stream media on your Android phone, your device issues Domain Name System (DNS) queries to translate human-readable domain names into numerical IP addresses. By default, standard DNS queries are transmitted across port 53 in plain, unencrypted text. This legacy architecture allows Internet Service Providers (ISPs), mobile network operators, and eavesdroppers on unencrypted public Wi-Fi networks to monitor your browsing habits, inject unwanted advertisements, or log personal activity. Starting with Android 9.0 and refined across modern releases, Android includes native support for Private DNS using DNS-over-TLS (DoT).

Configuring Private DNS encrypts your mobile device’s domain resolution requests directly at the operating system level, protecting your privacy across both Wi-Fi networks and mobile cellular connections without requiring third-party VPN apps.

Why Configure Private DNS on Android?

Implementing DNS-over-TLS provides immediate privacy and security benefits over standard ISP DNS resolvers:

  • End-to-End Cryptographic Encryption: Private DNS wraps all query packets in Transport Layer Security (TLS) across dedicated port 853, rendering requests indecipherable to intermediate network snoops.
  • System-Wide Coverage: While browser extensions protect only web navigation, Android’s Private DNS setting governs every installed application, mobile game, and background system synchronization service automatically.
  • Battery and Resource Efficiency: Because DNS encryption is handled natively by Android’s networking stack, it consumes virtually zero additional battery or system memory compared to running a persistent VPN background tunnel.
  • Ad and Tracker Blocking Capabilities: Selecting a specialized privacy resolver blocks known telemetry trackers, phishing portals, and intrusive in-app advertising domains before they load.

Selecting a Reliable Private DNS Provider

Android requires entering a valid DNS-over-TLS hostname rather than raw numeric IP addresses. Choose a provider aligned with your security priorities:

  • Cloudflare DNS (Speed & Privacy): 1dot1dot1dot1.cloudflare-dns.com — Delivers exceptionally low lookup latency, supported by independent third-party privacy audits with strict zero-logging policies.
  • Quad9 (Malware & Phishing Shield): dns.quad9.net — Automatically blocks access to known malicious domains, phishing portals, and exploit servers using threat intelligence aggregated from global security vendors.
  • AdGuard DNS (Ad & Tracker Blocker): dns.adguard-dns.com — Filters out mobile ad networks, analytics trackers, and deceptive pop-ups directly at the resolver layer.
  • NextDNS (Personalised Cloud Firewall): Provides a custom alphanumeric hostname upon creating a free account, allowing you to build tailored domain whitelists and blacklists.

Step-by-Step: Enabling Private DNS in Android Settings

Configure Private DNS across any device running Android 9.0 or later:

  1. Open the Settings application on your Android phone.
  2. Tap Network & internet (on Samsung Galaxy smartphones, tap Connections > More connection settings).
  3. Select Private DNS.
  4. By default, Android is set to Automatic. Tap the radio button labeled Private DNS provider hostname.
  5. In the input field below, enter your chosen resolver’s hostname:
dns.quad9.net
  1. Tap Save. Android immediately establishes a secure TLS handshake with the resolver. If the hostname connects successfully, the provider name displays below the setting without warning messages.

Verifying Encryption and Testing for DNS Leaks

After saving your configuration, confirm that your mobile traffic is utilizing the encrypted resolver:

  1. Open your mobile web browser and navigate to a trusted diagnostic portal such as dnsleaktest.com.
  2. Tap Standard test.
  3. Inspect the query results: the detected IP addresses and hostnames should reflect your chosen provider (e.g. Quad9 or Cloudflare) rather than your mobile cellular carrier or local home broadband provider.
  4. If testing Cloudflare, navigate to one.one.one.one/help and verify that Using DNS over TLS (DoT) reports Yes.

Bypassing Public Wi-Fi Captive Portal Conflicts

When connecting to commercial Wi-Fi hotspots at hotels, airports, or coffee shops that require accepting terms via a captive portal web page, encrypted DNS can occasionally block the local redirect page from rendering:

  • If a captive portal fails to load, temporarily return to Settings > Network & internet > Private DNS and switch the setting to Automatic or Off.
  • Complete the login process on the venue’s browser splash screen.
  • Once internet connectivity is established, switch Private DNS back to Private DNS provider hostname to restore full DNS encryption.

Get the best tech tips delivered straight to your inbox.

Join thousands of readers mastering Apple, Google, Microsoft, and Linux.