When it comes to setting up the internet on Xiaomi devices, the question of determining the DNS-This may be needed to fix connection problems, optimize site loading speeds, or adjust parental controls, but many users face difficulties in finding these settings in firmware. MIUI, How to distinguish the main DNS Why the system sometimes shows the wrong values you set manually.
In this article, we will look at all the current ways to verify DNS, from standard Android tools to hidden Xiaomi menus and third-party utilities. Particular attention will be paid to the nuances associated with automatic override of DNS by the provider on devices with MIUI Global, which often causes VPNs or ad blockers to work incorrectly. If you use not only a smartphone, but also a Mi Router router or a Mi TV smart TV, you will find solutions here too.
1. Verify DNS through Wi-Fi settings on Xiaomi smartphone
The most obvious way is to look at the current DNS-servers directly in the connection settings. MIUI 12β14 The path to these settings may be slightly different, but the general logic is maintained (4G/5G), This method will show DNS your carrier, not your router.
Instructions:
- π± Open the Settings. β Wi-Fi and tap your network name (not the switch!).
- π Scroll down to the "Additional Settings" block (in some versions) MIUI It's called "Settings." IP").
- π In the field "DNS 1" and "DNS 2" will indicate the current servers. If there is "Auto" - then the values from the router are used.
The name of the network matches your router.|Regime. IP fixed "DHCP" (unless configured statically)|There are no warnings about βimpermissibleβ DNS"|Try to reconnect to the network (forget and connect again)-->
β οΈ Note: Some models (e.g. Redmi Note 10 Pro) POCO X3 Pro after updating to MIUI 14 block DNS It can be hidden. In this case, use the method. β3 with command line.
2. Use of applications for network analysis
If standard settings donβt show DNS, or you suspect the system is replacing them, third-party software can help. Apps like Network Analyzer or DNS Checker not only display current servers, but also test their speed, which is especially useful for diagnosing problems connecting to certain sites.
Top.-3 apps:
- π§ Network Analyzer - shows DNS, ping, route tracing. The free version is sufficient for basic tasks.
- π DNS Changer β allows not only to check, but also to quickly switch between public DNS (Google, Cloudflare, OpenDNS).
- π‘ PingTools Network Utilities β Advanced Tool with Support IPv6 diagnostics MTU.
Example of Network Analyzer:
- Install the app from Google Play.
- Open the tab "LAN" or "Wi-Fi".
- Active servers will be displayed in the DNS Servers block (even if they are assigned automatically).
Network Analyzer|DNS Changer|PingTools|Other|Not using.-->
3. Command line: ADB and terminal
For advanced users or cases where the GUI doesn't show real data, the command line will help.This method works on all Xiaomi devices with unlocked data. USB-Debugging (included in Settings) β The phone. β Version. MIUI β tap 7 times on the assembly number).
Method 1: Through ADB (for PC):
adb shell getprop | grep dnsThis command will display all the DNS-related system properties, including net.dns1 and net.dns2.
Method 2: via Termux (on the phone):
pkg install net-tools
cat /proc/net/dns_resolverWhat if the ADB canβt see the device?
β οΈ Attention: On some firmware MIUI (In particular, Chinese teams can return empty values, because of Xiaomi's security policies that restrict access to system files. β4 with router.
4.DNS check on the Xiaomi Mi Router router
If you need to know the DNS assigned by your router (such as Mi Router 4A or AX3600), you can do this through the deviceβs web interface, which is relevant when youβre connected to Wi-Fi, but youβre not sure what servers the router is giving away.
Step-by-step:
- Connect to the router network.
- Open your browser and type 192.168.31.1 (or miwifi.com for new models).
- Log in (login and password from the sticker on the router).
- Go to Settings β Internet β Basic settings.
- In the block "DNS-The server will be given the current values.
| Model router | The DNS path is on the menu | Features |
|---|---|---|
| Mi Router 4A | Mainstream β Internet | Supports manual entry of two DNSs |
| Mi Router AX1800 | Settings β Internet β DNS | There is an option "Use the DNS provider" |
| Mi Router 4C | Network β WAN | May require a reboot after the change |
π‘
If you have a checkmark on your router's "Automatically Receive DNS" settings, but you want to use, for example, Cloudflare (1.1.1.1), uncheck it and enter the values manually, which will speed up access to foreign sites and bypass some blocking.
5. Hidden MIUI settings: engineering menu
MIUI has a hidden engineering menu that provides advanced network information, including DNS, which is suitable for root-free devices, but requires caution β donβt change other settings unless youβre sure theyβre there.
How to open it:
- Open the phone app.
- Enter the combination: ##4636###.
- Select "Wi-Fi Information" (or "Wi-Fi Information" in global versions).
- Scroll to the "DNS 1" and "DNS 2" blocks.
β οΈ Note: Some models (e.g. Xiaomi) 12T or Redmi K50) This menu can be blocked, and when you enter the code, you will see a message saying, "This menu is disabled." MTK Engineering Mode (for devices running MediaTek processors).
6. Alternative methods: online services and tracing
If none of these things worked, you can use online tools or tracing utilities to show you which DNSs are used for specific queries, even if the system hides them.
Ways:
- π Website DNS Leak Test (dnsleaktest.com) β determines DNS, It's in a browser, it doesn't require installation.
- π The tracert command (in Windows) or traceroute command (in Linux/macOS) β The route of the packets is usually indicated in the first step. DNS. Example: traceroute -q 1 ya.ru
- π Network reset - if DNS are replaced in an unknown way, try resetting network settings in Settings β System system β Resetting settings β Resetting Wi-Fi, Mobile Network and Bluetooth.
π‘
Online services like the DNS Leak Test show the real DNS your device uses for external queries, which is useful if you suspect that MIUI or ISP is swapping your settings.