How to Enable Private DNS on Android Devices

DNS (Domain Name System) plays a vital part in the network infrastructure, that is responsible for translating domain names (e.g. into IP addresses. Devices will then use the information to route the data to the correct web servers. Some ISP-provided DNS servers are known to collect users’ browsing history and sell them to other companies/advertisers, not to mention the concern over Internet Censorship. It is common to see people switching to reputable public DNS servers.

What is Private DNS?

Private DNS mode is a feature rolled out since Android 9.0 Pie in 2018, that allows the operating system to send all DNS queries to a custom DNS server, while encrypting the queries over TLS (DNS over TLS/DoT) to prevent hijacking, snooping or phishing attacks.

In previous Android versions, you can only control which DNS server the devices use in Wi-Fi networks, but not in cellular networks. You will have to manually override the DNS settings in every individual Wi-Fi networks, or directly changes the settings in your router.


Android Devices Private DNS

To enable the Private DNS mode, you will need a device running on Android 9.0 Pie or newer. In this example, we are using a Samsung Galaxy Note 10+ on Android 11 and One UI 3.1. The user interface may be slightly different for your smartphone, but the process is largely the same.

  • First, go to Settings.
  • Look for the sections named “Connections” or “Network & internet”.
  • Click “More connection settings” or “Advanced” to expand more options.
Android Devices Private DNS
  • Select “Private DNS”.
  • Click “Private DNS provider hostname” and Enter your desired custom Public DNS server.
  • We use Cloudflare DNS ( as an example. Enter “” and hit “Save”.
  • You can visit, or other online tools to verify if the device has successfully switch to using the new assigned DNS servers.

Remember to type in the hostname of the DNS server, not the IP address, such as or You should make sure the DNS server supports DNS over HTTPS (DoH) and DNS over TLS (DoT) for better security. It is recommended to also use a creditable Virtual Private Network (VPN) service to protect your other network data.

Below is the list of popular public DNS servers’ hostnames.

*OpenDNS currently only supports DNS over HTTPS (DoH) and DNSCrypt but not DNS over TLS (DoT).

Feel free to leave comments below. Share the article if you enjoy reading it. Follow us on Twitter, Facebook, Instagram and Pinterest.

Support this website simply by shopping on Amazon and Newegg. We will receive small kickbacks, if the above affiliate links are used to make any purchases.


    • Thanks for the correction. Android’s Private DNS cannot use DoH connections ( After doing some extra research, OpenDNS only supports DoH and DNSCrypt. Therefore, “” will work, but without DoT encryption. Article is now updated with the new information.

  1. Hi Buddies, can this DNS server hostname; will work for my cellular data in my Infinix note 11. kindly guide me guys my internet is too slow for some apps.


Please enter your comment!
Please enter your name here