Android 9.0

How to setup DNS Over TLS in Android P and use Cloudflare’s DNS?

Google just announced Android P Beta 2 today for Pixel series and 7 more manufacturer smartphones. The developer preview images are readily available download and the OTA is also rolling out right now. Android 9.0 P comes with many new features such as Adaptive Battery, Adaptive Brightness, App Actions, Assistant voices, new Google News feed, and much more. The most stunning feature is the Private DNS over TLS support. Now, you can use your own private DNS by default. So let’s see how to setup a private DNS on Android P.

What are the uses of using DNS over TLS you say? Changing DNS can significantly boost the internet speed of you Android devices, WiFi routers, Windows and Linux machines. Some DNS may also be useful in unblocking blocked or throttled websites. Most importantly, a good DNS is more secure as it adds an additional layer of security and privacy. Also, in most cases, your ISP cannot track your usage, and the websites you visit.

Recently, Cloudflare released its DNS support for all your devices. Cloudflare claims that the DNS they provide is more secure, and faster than any other DNS available out there including the popular ones such as Google DNS and the OpenDNS.

So now that we have Android P Beta 2 released for a lot of Android devices, you can test and setup Cloudflare’s DNS on your devices. You can use other DNS as well. Here is the full list of many DNS providers. The list consists of Quad9’s, Surfnet, Cloudflare’s, UncensoredDNS, and much more.

List of available Hostnames that can be used for DNS over TLS in Android P.

Note that, you will need to input the string from Hostname for TLS
authentication column. Let’s see an example on how to use Android P’s DNS over TLS support.

How to setup Cloudflare’s with Private DNS over TLS feature in Android P?

Now that Android P supports DNS over TLS you may want to setup the Cloudflare’s new DNS service. There are other ways to setup too. Howeevr, that requires a rooted device and a Magisk Module as well.

The list above consists of a lot of DNS. However, for Cloudflare’s DNS to work, the string listed does not work. So here is the correct Hostname for the same.

  • First, make sure you have Android P enabled device.
  • Now, go to Settings.
  • Open Network & internet settings > Private DNS.
  • Or simply search Private DNS from settings search bar.

Private DNS over TLS Android P Beta 2

To use this service, you will need to input the complete string which resolves to Input the following:

Also, for users who would like to use Quad9 DNS, can use only, as the Hostname resolves to

Note: For a complete secure network, you can also setup DNS over WiFi router. See instructions below.

How to setup setup Cloudflare’s DNS with WiFi router?

  1. Connect to your WiFi router.
  2. Enter your router’s IP address in your browser. Usually or
  3. Input the username and password to log into your router. This information may be labeled on the router itself.
  4. In your router’s configuration page, locate the DNS server settings. Usually under Network > Advanced.
  5. Note down any existing DNS server entries for future reference.
  6. Replace or add the following DNS addresses:
    • For IPv4: and
    • For IPv6: 2606:4700:4700::1111 and 2606:4700:4700::1001
  7. You can also enable IPv6 in your router. (Optional)
  8. Save your settings, then restart your browser and router as well.
  9. Now visit our website and see how fast it is.

Alternatively, you can go to this page for more device setup.