- Configuring DNS on Android improves speed, privacy, and security by eliminating dependence on carrier servers.
- Android 9 and later versions allow the use of private DNS with DNS-over-TLS, applicable to Wi-Fi and mobile data from a single setting.
- In Android 8 and earlier, the DNS can only be changed for individual Wi-Fi networks, using a static IP address and the DNS 1 and DNS 2 fields.
- Services like Google, Cloudflare, Quad9, OpenDNS, or NextDNS offer fast DNS, with malware protection and advanced privacy options.
If your Android phone is slow to browse, some websites won't load, or you're worried your carrier knows too much about you, it might be time to adjust your DNS settings and fine-tune your connection. While it may sound technical, changing DNS settings on Android is a simple process anyone can do in just a few minutes, and it can improve speed, privacy, and security while browsing.
Throughout this guide, you'll learn exactly what DNS servers are, why it's such a good idea to replace the default ones, and, most importantly, how to configure DNS on Android step by step in different system versions , both using the private DNS (DNS-over-TLS) feature and by modifying the settings of each Wi-Fi network. We'll also look at the most recommended DNS servers today and some extra tips and tricks related to your phone's network.
What is a DNS and what role does it play in Android?
When you type an address like google.com or visit your favorite website, your mobile phone doesn't work with words, but with numbers: the IP addresses that identify each internet server . The DNS (Domain Name System) is the "address book" that translates those easy-to-remember names into numerical IP addresses that computers understand.
In other words, DNS servers act as a distributed, hierarchical directory that associates domains like example.com with specific IP addresses. On Android, just like on Windows, macOS, or Linux, every time you open a website or app that connects to the internet, the system performs DNS queries in the background to determine which server to use.
By default, your mobile phone receives the DNS servers from the network you're connected to, usually those of your mobile carrier or router . These are perfectly functional, but they aren't always the fastest or most privacy-friendly, and in many cases, they're also used to enforce blocks by order of governments or organizations.
What is a DNS server and what are the differences between them?
A DNS server is the machine or set of machines that responds to your mobile phone's requests when it asks, "What IP address does this domain have?" . Each response can take milliseconds... or much longer, and this is noticeable in the time it takes for a page or online service to start loading.
ISPs' DNS servers typically prioritize simplicity and control, while providers like Google, Cloudflare, Quad9, OpenDNS, and NextDNS boast greater speed, more security options, and much clearer privacy policies . Technically, they do the same thing, but not as quickly or with the same philosophy.
Why is it worth changing DNS settings on Android?
Modifying your Android device's DNS settings might seem like a minor change, but in practice it directly affects your browsing experience . The main reasons for doing so are:
- More speedSome DNS servers resolve domain names much faster, reducing the waiting time before a page starts loading.
- Better privacyCertain providers, such as Cloudflare or NextDNS, commit to not logging your IP address for long periods or to minimizing the amount of data stored.
- Additional securityServices such as Quad9, OpenDNS, or Cisco Umbrella filter malicious domains and automatically block websites associated with malware, phishing, or botnets.
- Bypassing blocks and censorshipWhen a government orders websites to be blocked, one common method is to do so at the DNS level. Using external servers It often allows continued access to those sites.
- Control and extra functionsSome DNS providers include parental controls, content filters, or usage statistics that your carrier doesn't provide by default.
In short, with a change that takes two minutes to apply, you can gain extra speed, increased confidentiality of your traffic, and protection against dangerous websites , without installing anything unusual or rooting your phone.
How do DNS settings work on Android: DHCP, default DNS, and private DNS?
On most networks, whether Wi-Fi or mobile data, your Android phone obtains its network settings via DHCP, including IP address, gateway, and DNS from the provider . Unless you change anything, the system will always use these pre-configured servers.
Android 9 (Pie) introduced a significant improvement: the "Private DNS" option. This feature allows your phone to use DNS-over-TLS (DoT), a protocol that encrypts DNS queries between your device and the server, so neither your carrier nor anyone monitoring your local network can easily see which domains you are accessing.
In versions prior to Android 9, there is no global private DNS. The only built-in way to change the DNS is to configure it network by network for each Wi-Fi connection , defining a static IP address and manually entering the DNS 1 and DNS 2 fields. It's less convenient, but just as effective for those wireless networks.
Change DNS settings on Android 9 and later using “Private DNS”
On devices running Android 9, Android 10, and later, you can set up a secure DNS server that applies to both Wi-Fi and mobile data connections. This option appears in network settings as "Private DNS" or "Private DNS (DNS-over-TLS) . "
The exact path varies slightly depending on the manufacturer and the customization layer, but it's usually something like this: Settings > Network & Internet > Advanced > Private DNS or similar (on some phones you'll see "Connections > Connection settings > Private DNS").
When you open that section you will usually see three main options and, in some cases, a brief explanation:
- DisabledThe system uses unencrypted DNS, just as provided by the network (those from your operator or router).
- AutomaticAndroid attempts to use DNS-over-TLS with servers on its own network, and if that's not possible, it reverts to the traditional unencrypted mode.
- Private DNS provider hostname: Here you can enter the domain of a DoT-compliant DNS service to force all DNS traffic to be encrypted to that provider.
If you choose the third option, the system will ask you for a DNS-over-TLS “hostname” . Some common examples are:
- Google Public DNSYou must enter dns. google as host.
- CloudflareYou must write one.one.one.one.
- Other providers like NextDNS offer a custom hostname associated with your account, which you'll see in their settings panel.
Once you enter the hostname, simply tap "Save" to apply the changes . From that moment on, all connections that support DNS-over-TLS will use that server. If you experience any problems or want to revert to the original DNS settings, you can return to the menu and select "Automatic" or "Disabled."
It's worth noting that Android 9 had a limitation with some VPNs and DNS-modifying apps : these applications could override the private DNS settings and cause DNS traffic to bypass DoT, sending requests in plain text instead. This behavior was improved in Android 10, but if you use VPNs or DNS-changing apps, you should check how they behave with your system version.
Configure DNS on Android 8 and earlier versions (Wi-Fi with static IP)
In Android 8 Oreo and earlier versions, there's no "private DNS" button. However, you can manually change the DNS servers for each Wi-Fi network, which is very useful if you frequently connect to the same networks (home, work, etc.).
First, connect your phone to the Wi-Fi network where you want to change the DNS. Then, open your phone's settings and go to Network & Internet > Wi-Fi (or simply "Wi-Fi") . Find the network you're connected to, tap and hold its name, and select "Modify network" or "Manage network settings," depending on the manufacturer.
In the settings window that opens, you'll usually find a section called "Advanced Options" or "Show Advanced Options." Expanding it will reveal several additional settings, including "IP Settings ." By default, it will be set to "DHCP," meaning everything is configured automatically.
To enter custom DNS, you need to change that field to "Static" . Note: simply clicking the dropdown menu isn't enough; you'll also need to ensure that other fields like IP address, gateway, and prefix length are correct (the phone usually populates valid values based on the current configuration).
Selecting Static IP will display more fields, including “DNS 1” and “DNS 2” . This is where you should enter the addresses of the servers you want to use. A couple of common combinations would be:
- Google Public DNS: in DNS 1 put 8.8.8.8 and in DNS 2 put 8.8.4.4.
- Cloudflare: in DNS 1 put 1.1.1.1 and in DNS 2 put 1.0.0.1.
When you're finished, tap "Save" and your phone will apply the new settings. From that moment on, all DNS requests you make on that specific Wi-Fi network will go to the servers you just defined . If you ever want to revert to the previous settings, simply repeat the process, change from "Static" to "DHCP," and save.
Change DNS to Wi-Fi on current Android (without touching private DNS)
Even if you have a recent version of Android, you might prefer to adjust DNS settings only for specific Wi-Fi networks instead of changing the global configuration with a private DNS. The procedure is very similar to the one described for Android 8, with minor cosmetic variations depending on the Android skin.
Typically, the process will be as follows: Open Settings, go to "Network & Internet," and then to "Internet" or "Wi-Fi." Tap the network you're connected to (or the pencil or gear icon next to its name) and expand "Advanced options." In the "IP settings" section, select "Static IP" to unlock the DNS 1 and DNS 2 fields , and enter the server addresses you want to use.
This method has one important peculiarity: it only affects that specific network . If you change Wi-Fi networks (for example, if you move to another house) or connect using mobile data, the default DNS settings of each network will continue to be used, unless you also adjust their configuration or have a private DNS set up.
Recommended DNS servers for Android
Once you know how to change your DNS, it's time to decide which service to use on your Android phone . These days there are several very solid options, each with its own focus on speed, privacy, or content filtering.
Google Public DNS
Google's public DNS is perhaps the best known in the world. It's designed to offer high performance, good availability, and robust security measures . It's a reliable option if you're looking for something that "just works" and responds quickly from almost anywhere.
These are their addresses :
- IPv4: 8.8.8.8 (primary) and 8.8.4.4 (secondary).
- IPv6: 2001:4860:4860::8888 y 2001:4860:4860::8844.
In addition to the abbreviated addresses, Google provides "full" versions for devices that do not accept the abbreviated :: syntax in IPv6 , where the intervening zeros must be written explicitly (e.g., 2001:4860:4860:0:0:0:0:8888).
Cloudflare DNS (1.1.1.1)
Cloudflare arrived later, but has become a benchmark thanks to its obsession with privacy and its excellent performance . According to measurements like those from DNSPerf, it consistently ranks among the fastest DNS services on the internet.
Its main addresses are:
- IPv4: 1.1.1.1 and 1.0.0.1.
- IPv6: 2606:4700:4700::1111 y 2606:4700:4700::1001.
Cloudflare claims it does not use DNS data to profile users, that it deletes logs after short periods , and that its systems are externally audited. For Android, it also offers an official app that automatically configures the connection (even using a VPN to apply DNS to all traffic, including mobile data).
OpenDNS and Cisco Umbrella
OpenDNS, now part of Cisco, is a very popular solution in home and business environments when seeking content filtering, parental controls, and protection against malicious websites . Its offerings include notable products such as OpenDNS Home and OpenDNS Shield.
Some common combinations are:
- OpenDNS Home (IPv4): 208.67.222.222 (primary) and 208.67.220.220 (secondary).
- OpenDNS Shield (IPv4): 208.67.222.123 and 208.67.220.123, with pre-configured filters for adult content.
In more professional settings, Cisco Umbrella DNS adds advanced security, statistics, and centralized management features . Typical IPv4 addresses include 208.67.222.222 and 208.67.220.220, as well as IPv6 pairs such as 2620:119:35::35 and 2620:119:53::53.
Quad9
If your top priority is protecting yourself from dangerous websites, Quad9 is one of the most interesting services. This provider uses multiple sources of threat intelligence and blocks domains associated with malware, phishing, spyware, or botnets before your browser even connects.
In IPv4 , the most commonly used addresses are:
- Primary: 9.9.9.9.
- Middle School: 149.112.112.112.
Quad9 also has variants with different levels of filtering and IPv6 compatibility, each with its own specific address set, designed for both personal and corporate use.
NextDNS
NextDNS presents itself as a modern alternative focused on privacy, tracker blocking, and extreme customization . It works almost like a "Pihole in the cloud": you can choose blocklists, define rules per device, view statistics, and control in great detail what gets blocked and what doesn't.
On Android, it's typically used via DNS-over-TLS configuration with a custom hostname linked to your account or specific apps. Examples of such addresses include:
- IPv4: 45.90.28.56 and 45.90.30.56.
- IPv6: 2a07:a8c0::52:1851 y 2a07:a8c1::52:1851.
It's a great option to consider if you want to go beyond simply changing your DNS and gain complete control over what comes out of your devices.
Notes on IPv6, DNS64 and compatibility on Android devices
In addition to typical IPv4 DNS servers, many providers offer addresses for IPv6 networks , which are increasingly common in fiber optic and mobile connections. In some specific scenarios, especially in IPv6-only networks, solutions like DNS64 (such as Google Public DNS64) are used, allowing access to IPv4-only services through a NAT64 gateway with prefixes like 64:ff9b::/96.
In practice, for an Android user, this means that if your network and DNS provider are ready, you'll be able to browse without problems even if the destination doesn't yet support IPv6 . Some routers or devices do, however, require that full IPv6 addresses be specified, without shortcuts, so it's advisable to check the documentation for each one.
Other network options on Android related to DNS and connection
Within Android's "Network & Internet" settings, there are other sections that, while not DNS per se, affect how and when your phone uses the connection . It's worthwhile to familiarize yourself with them to fine-tune your device's behavior.
Metered Wi-Fi networks
If you have a Wi-Fi connection with a data limit (for example, a 4G router or hotspot), you can mark it as "metered" to limit your phone's background data usage, updates, and heavy syncing . To do this:
- Connect your mobile phone to the Wi-Fi network you want to configure.
- Open the Settings app and go to “Network & Internet > Internet” or something similar.
- Tap the name of the connected Wi-Fi network.
- Look for the "Network Usage" or "Metered Network" option and select "Treat as metered network".
This way, the system knows to be more careful when using data when you are connected to that specific network.
MAC address and random addresses
On Android 10 and later, in addition to the original Wi-Fi card's MAC address, the system can use random MAC addresses per network to improve privacy . This makes it harder for third parties to track your device across different networks.
To see your phone's MAC address, go to Settings > About phone and scroll down to the "Wi-Fi network MAC address" section. If you also want to find the random MAC address it uses on a specific network:
- Turn on Wi-Fi.
- Go to “Network and Internet > Internet”.
- Tap the network you are connected to.
- Scroll down until you see the field “Random MAC Address” or similar.
If you use MAC filtering on your router or parental control systems, it's important to add both addresses to the allowed lists so that your mobile device doesn't lose access.
More advanced Wi-Fi settings
In the advanced Wi-Fi preferences you can find other options that may indirectly affect your browsing experience:
- Activate Wi-Fi automaticallyThe phone turns on Wi-Fi only when it detects saved trusted networks.
- Notify open networks: your mobile phone alerts you when it cannot automatically connect to a known, good-quality network.
- Install certificates: useful in corporate or educational environments where digital certificates are used to authenticate devices.
- Wi ‑ Fi Direct: allows you to connect your mobile phone directly to other devices without needing a central router.
- In older versions, options such as WPS via button or PIN, now obsolete for safety reasons.
Although they are not DNS settings, knowing these functions helps you have more control over how your Android connects and how it manages its networks.
After reviewing what DNS is, why it's beneficial to change it, and how to configure it step-by-step on Android, the picture becomes quite clear: with a couple of taps in the settings, you can switch from relying on your carrier's servers to using faster, more private, and secure services like those from Google, Cloudflare, Quad9, OpenDNS, or NextDNS. Whether you use the private DNS option with DNS-over-TLS on modern Android or the DNS 1 and DNS 2 fields on Wi-Fi networks with a static IP address , in all cases you gain leverage to bypass blocks, improve response times, and strengthen your privacy without resorting to third-party apps or complicated configurations. Share this guide and help other users learn how to configure their DNS on Android.
Table of Contents
- 1 What is a DNS and what role does it play in Android?
- 2 What is a DNS server and what are the differences between them?
- 3 Why is it worth changing DNS settings on Android?
- 4 How do DNS settings work on Android: DHCP, default DNS, and private DNS?
- 5 Change DNS settings on Android 9 and later using “Private DNS”
- 6 Configure DNS on Android 8 and earlier versions (Wi-Fi with static IP)
- 7 Change DNS to Wi-Fi on current Android (without touching private DNS)
- 8 Recommended DNS servers for Android
- 9 Notes on IPv6, DNS64 and compatibility on Android devices
- 10 Other network options on Android related to DNS and connection
