How to enable DNS over TLS in Android Pie

Jack Wallen shows you how to use the new Private DNS feature in Android Pie, which allows DNS over TLS for a more secure experience.

DNS is crucial to networking. In fact, without it, we wouldn't get very far. I don't know about you, but I don't want to memorize a bunch of IP addresses to use instead of domains. The problem with standard DNS is that it isn't always the most secure option.

That's why the Android Pie developers rolled out a new implementation of DNS over TLS, which encrypts all of your DNS traffic (even if you're on your carrier network). This new feature adds a missing layer of security to Android that has never before been available (without rooting a device).

To make this work properly, you must have a DNS provider that supports DNS over TLS. By default, Android Pie devices will automatically upgrade to using DNS over TLS if the network's DNS servers support the protocol. Out of the box, this feature is set to Automatic, which means if your provider does support DNS over TLS, the feature will work without you having to make any changes. However, you might either not have a provider that supports DNS over TLS or you don't know. Should that be the case, what do you do?

SEE: Network security policy (Tech Pro Research)

You manually configure Private DNS. To do that, however, you must have a provider that supports DNS over TLS. I'm going to walk you through how to do this, using CloudFlaure DNS. There are other services, such as CleanBrowsing, which does an outstanding job of offering tiers for different filtering (while supporting DNS over TLS). The three different types of filters CleanBrowsing offers are:

  • Security — — Blocks access to phishing, malware, and malicious domains.
  • Family — — Blocks access to all adult, pornographic, and explicit sites, as well as proxy and VPN domains to bypass filters. Sites like Reddit are blocks, whereas Google, Bing, and YouTube are all set to Safe Mode.
  • Adult Filter — — blocks access to all adult, pornographic, and explicit sites. Sites like Reddit are allowed and both Google and Bing are set to Safe Mode.

Since I've been using Cloudflare DNS for a while, I want to configure that service as my Private DNS in Android Pie. How do you set Private DNS? I'm here to show you. Do note, this only works on Android Pie. If you're using a version prior to 9.0, it will not work.

Configuring DNS

Fortunately, this feature isn't hidden out of sight. To locate the option, open Settings and go to Network & Internet. In this new window (Figure A), tap Advanced.

Figure A

Figure A

The Networking & Internet configuration window.

You should now see the Private DNS entry (Figure B).

Figure B

Figure B

The Private DNS entry in view.

Tap the Private DNS entry. In the resulting pop-up (Figure C), you can turn it off, set it to Automatic, or provide private DNS entries.

Figure C

Figure C

The Private DNS options.

Tap Private DNS and then enter the necessary hostname or provider. Notice that you cannot enter a DNS server address. That is not how this feature works. Instead, you must enter the complete string which resolves to the DNS server address. In the case of Cloudflare, the following string will resolve to

Enter the above in the Private DNS provider hostname section and then tap Save. You're done. You can exit out of Settings and enjoy your new Private DNS over TLS feature in Android Pie.

The Caveat

The one caveat to this is that some apps have their own, built-in DNS querying mechanisms, which means they will not honor the Private DNS setting. Hopefully Android developers will retool their apps to allow for the use of global DNS. What that means is you cannot be certain if an app is using your newly configured DNS over TLS or their own, insecure, DNS mechanisms. Hopefully Android developers will make this change soon.

Also See

About Jack Wallen

Jack Wallen is an award-winning writer for TechRepublic and He’s an avid promoter of open source and the voice of The Android Expert. For more news about Jack Wallen, visit his website

Editor's Picks

Free Newsletters, In your Inbox