How do you know? DNS-server on Xiaomi devices: from smartphone to router

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:

  1. Install the app from Google Play.
  2. Open the tab "LAN" or "Wi-Fi".
  3. 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 dns

This 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_resolver

What if the ADB can’t see the device?
1. Make sure that USB-debugging is enabled and you have confirmed trust in the PC on the phone. 2. Check the drivers ADB (For Windows download Google USB Driver). 3. Try another one. USB-4. In the command line, execute adb kill-server, then adb start-server and reconnect 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:

  1. Connect to the router network.
  2. Open your browser and type 192.168.31.1 (or miwifi.com for new models).
  3. Log in (login and password from the sticker on the router).
  4. Go to Settings β†’ Internet β†’ Basic settings.
  5. In the block "DNS-The server will be given the current values.
Model routerThe DNS path is on the menuFeatures
Mi Router 4AMainstream β†’ InternetSupports manual entry of two DNSs
Mi Router AX1800Settings β†’ Internet β†’ DNSThere is an option "Use the DNS provider"
Mi Router 4CNetwork β†’ WANMay 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:

  1. Open the phone app.
  2. Enter the combination: ##4636###.
  3. Select "Wi-Fi Information" (or "Wi-Fi Information" in global versions).
  4. 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.

FAQ: Frequent questions about DNS on Xiaomi

πŸ”Ή Why Xiaomi does not have manual DNS?
This is a well-known MIUI security policy issue. Solutions: Install DNS through an application (like DNS Changer) rather than through Wi-Fi settings. Turn off Private DNS in Settings β†’ Connections β†’ Private DNS. Update firmware to the latest version - in MIUI 14 the bug is partially fixed.
πŸ”Ή How to check if the provider is blocking my DNS?
Use the DNS Leak Test and compare the results to the ones you asked manually. If they are different, the provider or MIUI will replace them. To bypass: Use a VPN with Custom DNS. Set up DNS-over-HTTPS (DoH) in your browser (e.g. Firefox).
πŸ”Ή Can we change? DNS Xiaomi without root rights?
Yes, but with limitations: πŸ“± On a smartphone: through Wi-Fi settings or applications like DNS Changer. πŸ“‘ On the router: in the web interface (192.168.31.1). πŸ–₯️ On PC: change DNS In connection properties (this will only affect this computer), Root rights are only needed to edit the system file. /etc/resolv.conf, Not recommended without experience.
πŸ”Ή What are they? DNS It is better to use Xiaomi for speed?
Recommended public DNS (check speed via Network Analyzer): Cloudflare: 1.1.1.1 and 1.0.0.1 (fast, DoH-enabled). Google DNS: 8.8.8.8 and 8.8.4.4 (stable, but may be blocked in some countries). OpenDNS: 208.67.222.222 and 208.67.220.220 (with malware filtering).
πŸ”Ή Why not after the shift? DNS Some websites are not opened?
Possible causes: DNS-The server blocks access to the resource (for example, OpenDNS filters adult content). DNS Proxy and ignore your settings.The site requires DNSSEC, a chosen DNS It does not support it (check through the DNSSEC Solution: Try another one. DNS or use VPN.