Changing the domain name system (DNS) settings on your mobile device is one of the most effective ways to speed up the loading of web pages, bypass some types of ISP blocking and increase the level of privacy online. Standard servers, which are automatically assigned by your cellular operator or Wi-Fi router, are often overloaded or subject to censorship. Switching to alternative addresses such as Google Public DNS or Cloudflare can dramatically change the quality of your surfing. In this article, we will look in detail at where to register DNS on Android, using both the built-in functions of modern versions of the system and third-party applications for older models.
The setup process depends on the version of your operating system Android. Starting with the ninth version, the developers introduced the “Private DNS” function, which encrypts requests and protects them from interception. However, for devices running on older builds, or for specific local network tasks, you will need to manually enter parameters in the advanced Wi-Fi settings. Understanding the differences between these methods will allow you to choose the best solution for your specific situation.
Before making changes, make sure you have the server addresses you plan to use on hand. Incorrectly entered numbers can lead to complete loss of Internet access, so be careful when typing characters. We will look at proven server options, their advantages and disadvantages, as well as ways to quickly check the functionality of a new configuration.
Why change the standard DNS on a smartphone
The main task of DNS is to convert human-readable website addresses (for example, youtube.com) into digital IP addresses that network devices can understand. When you use a provider's default servers, your requests are often slow and your browsing history may be logged. Changing your DNS provider allows you to redirect these requests to faster, more reliable nodes that are closer to you or optimized for high performance.
In addition to speed, data securityis a critical aspect. Many public DNS services support encryption protocols (DoT or DoH) that hide the contents of your requests from the ISP and attackers on a public Wi-Fi network. This prevents responses from being spoofed and redirected to phishing sites. For users concerned about privacy, this becomes a mandatory security measure.
Another reason for changing settings is bypassing blocking. If your carrier blocks access to certain resources at the DNS level, switching to an alternative server can often restore access without the need for complex VPN tunnels. However, it is worth remembering that this method does not hide your IP address or encrypt all traffic, as a full-fledged VPN does.
⚠️ Attention: Changing DNS servers is not an anonymizer in the full sense of the word. Your real IP address remains visible to the sites you visit, and the provider still sees the fact of connecting to the remote server, although it does not see specific requests to domains when using encryption.
Setting up Private DNS on Android 9 and later
The most modern and preferred way to change settings is available on devices with the operating system version Android 9 Pie and above. This feature is called "Private DNS" and uses the DNS-over-TLS protocol to encrypt traffic. Unlike manually entering IP addresses, this uses the domain name of the provider, which simplifies the configuration and increases the reliability of the connection.
To activate this feature, open the main settings of your smartphone. The path may differ slightly depending on the manufacturer's shell (MIUI, OneUI, ColorOS), but the logic remains the same. Usually the required item is located in the “Connections”, “Network and Internet” or “Advanced” sections. Find the item called Private DNS (Private DNS).
By default, the “Auto” mode is selected, which means using the provider’s servers. You need to switch the mode to “Private DNS provider hostname”. It is in this field that you need to enter not the IP address, but the domain name of the service. After entering, save the settings and check the Internet.
Use the address dns.google or 1dot1dot1dot1.cloudflare-dns.com to connect to the fast and secure Google and Cloudflare servers, respectively.
Here is a list of popular hosts to enter in the “Host Name” field:
- 🌐 Google Public DNS:
dns.google - 🚀 Cloudflare:
1dot1dot1dot1.cloudflare-dns.com - 🛡️ AdGuard DNS (ad blocking):
dns.adguard.com - 👨👩👧👦 FamilyShield (content blocking 18+):
family.cloudflare-dns.com
If after entering the address the Internet stopped working or sites began to load with errors, return the setting to “Auto” or “Disabled” mode. This may happen if the selected provider is temporarily unavailable in your region or is blocked by your telecom operator.
Manual DNS registration for Wi-Fi connections
For devices on older versions of Android or for situations where you need to set specific IP addresses for a specific Wi-Fi network, the manual configuration method is used. This method only applies to connections via a wireless network and does not work for mobile data (3G/4G/5G) without root access or special applications.
Go to Wi-Fi settings and find the network you are currently connected to. Click on it and hold your finger (or click on the gear/arrow icon next to the name) to open the control menu. In the window that appears, select “Edit network” or “Manage network”. You will need to expand additional settings by clicking on the checkbox or item Advanced.
Find the “IP settings” field. By default, the value is “DHCP”, which means that all parameters are automatically received from the router. Change this value to Static (Static). After this, fields will open for manually entering the IP address, gateway and DNS servers.
☑️ Check before saving
In the “DNS 1” and “DNS 2” fields, enter the addresses of the desired servers. It is important not to touch the IP Address and Gateway fields unless you know exactly what values should be there, otherwise you may lose access to the local network. Usually the system substitutes them automatically when switching to static mode, but it’s better to double-check.
| Provider | DNS 1 (Main) | DNS 2 (Alternate) | Feature |
|---|---|---|---|
| 8.8.8.8 | 8.8.4.4 | High speed | |
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Privacy |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Security |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Filtering |
After entering all the data, click “Save”. The device will reconnect to the network with new parameters. If the connection does not occur, check whether the IP address of the smartphone itself is entered correctly - it should be different from the gateway address, but located in the same subnet.
DNS setup for mobile data
It is impossible to change DNS servers for the mobile data (via SIM card) using standard Android tools. The operating system strictly binds these settings to the profile of the cellular operator. To solve this problem on older versions of Android, you will need root access and specialized utilities, which carries risks for the security of the device.
However, if you have version Android 9 or higher installed, the “Private DNS” function described in the first section works globally. This means that the host you select will be used for both Wi-Fi and 4G/LTE mobile network. This is a huge advantage that allows you to protect traffic even outside the home without the need to obtain superuser rights.
For owners of devices running Android 8 and below who critically need to change the DNS on the mobile network, there is the only legal way - using client applications. Such apps create a local VPN tunnel on the device, redirecting all DNS traffic through selected servers. Examples of such applications are Intra, Nebulo or DNS Changer.
⚠️ Attention: Applications that change DNS for mobile data without root access create a local VPN profile. This may conflict with other VPN services you use to change your country or hide your IP. They will not be able to work at the same time.
Using such applications requires constant running of the background service, which may slightly increase battery consumption. However, to ensure security on public networks, this is a justified measure. Just install the application, select a server from the list and press the connect button.
Diagnostics and checking the operation of new settings
After you have registered DNS on Android, you need to make sure that the changes have taken effect and are working correctly. Simply having a Wi-Fi or 4G icon is not enough to ensure that requests are going through the new servers. There are easy ways to check the current DNS in use directly from your phone.
One of the most reliable methods is to use online diagnostic services. Open a browser on your smartphone and go to a website that displays information about your connection. Specialized resources will show the IP address of the DNS resolver used and its membership in a specific organization.
You can also use the command line if a terminal is installed on your device (for example, Termux). By entering the command nslookup google.com, you will see in the response the address of the server that processed the request. If your provider's address is indicated there, it means that the settings were not applied or were reset.
nslookup google.com
Server: 1.1.1.1
Address: 1.1.1.1#53
Pay attention to the response speed. If, after changing the DNS, pages begin to load noticeably slower or “Site not found” errors occur, try switching to another server from the table above. The geographical distance of the server can affect the ping, so the ideal option is selected experimentally.
The best DNS server is the one that provides minimal latency (ping) in your region and with your provider. There is no universal solution for everyone.
Possible problems and ways to solve them
When changing network settings, users often encounter a number of typical problems. The most common of them is a complete loss of Internet access after saving static parameters. This usually happens due to an error in entering the gateway address or a conflict of IP addresses on the local network.
If the Internet is lost, first of all return the IP settings to DHCP (automatic) mode. This will restore the connection. Then try entering the data again, carefully checking each number. Make sure you do not use spaces at the end of lines when copying addresses.
Another problem is the unstable operation of specific applications. Some banking applications or corporate services may block the connection if they see the use of non-standard DNS servers, regarding this as a sign of an insecure network. In this case, you will have to temporarily disable Private DNS or create an exception in the client application.
What to do if Private DNS is constantly disabled?
If the system automatically disables Private DNS, it means that it cannot establish a secure connection with the specified host. Try changing your provider (for example, from Google to Cloudflare). If the problem persists, your carrier may be blocking port 853, which is used for DNS-over-TLS. In this case, only using applications with DNS-over-HTTPS or VPN will help.
It is also worth considering that settings interfaces can be updated by smartphone manufacturers. Menu items may have different names or be hidden in submenus. If you cannot find the section you need, use the search in your phone settings by entering the query “DNS.”
⚠️ Attention: Settings interfaces and menu item names may differ depending on the version of Android and the manufacturer’s shell (Samsung, Xiaomi, Huawei). If you do not find the described item, use the search inside the settings menu.
Frequently asked questions (FAQ)
Will the DNS setting be reset after rebooting the phone?
No, if you saved the settings correctly. Private DNS or static IP settings for Wi-Fi are saved in the device memory and are applied automatically after each reboot. A reset can only occur if you yourself return the settings to “Auto” or “DHCP” mode, or perform a complete network reset.
Does changing DNS affect the speed of downloading files?
Changing DNS itself does not increase the channel bandwidth provided by the provider. However, it speeds up the domain name resolution process. This makes opening new tabs and switching between sites more instantaneous, but the loading speed of a heavy file (movie, game) will remain the same, since it depends on the channel width.
Can I use my own DNS server?
Yes, you can register the IP address of any server to which you have access. This is relevant for system administrators using corporate networks, or enthusiasts who have set up their server at AdGuard Home or Pi-hole at home. The main thing is that the device can establish a connection with this server.
Is it safe to use public DNS from Google or Cloudflare?
Yes, it is absolutely safe and even recommended. Large technology companies invest heavily in protecting their infrastructures. Using their servers is often safer than using your local provider's DNS, which may not have the proper level of protection against DDoS attacks and record spoofing.
Why doesn't Private DNS work on my Android 10?
The function may not work if the selected host does not support the DNS-over-TLS protocol, if there are problems with the Internet connection at the time checks, or if security certificates are installed on the device that intercept traffic (for example, from an antivirus or corporate profile). Try temporarily disabling third-party security applications.