How to set up DNS-Xiaomi router server: a complete guide with examples

Setting up DNS-Xiaomi router servers are one of the most effective ways to improve website loading speed, protect against phishing and block intrusive ads on all devices on your network. Many users mistakenly believe that changing the content of the server is a good way to do business. DNS It's only for advanced administrators, but it actually takes less than 5 minutes and doesn't require any special knowledge. DNS From the provider often work slowly, which alternative servers are worth using, and show the unique settings for Xiaomi routers with MiWiFi and Padavan firmware.

It is important to understand that the wrong choice DNS Not only can the Internet slow down, it can also create security vulnerabilities. DNS-Servers (such as Google or Cloudflare) collect data about your queries, while others (such as AdGuard) collect data about your requests. DNS) We've tested over 10 popular trackers. DNS on the Xiaomi Mi Router routers 4A, AX3000 and AX6000 β€” We are ready to share the results that will help you make an informed choice.

Why change the DNS on Xiaomi router?

By default, your router uses DNS-The servers that the ISP provides are not always optimal for several reasons:

  • 🐒 Low speed: Provider DNS Often overloaded, which increases response time (ping) when opening sites.
  • πŸ›‘οΈ Lack of protection: Many providers do not filter malicious sites, which increases the risk of devices being infected with viruses.
  • 🚫 Censorship and blocking: Some DNS artificially restrict access to certain resources (for example, Torrent trackers or VPN-service).
  • πŸ“Š Data collection: Providers can log your queries and use them for targeted advertising.

Research shows that replacing DNS with alternative servers (such as Cloudflare or OpenDNS) can reduce page load times by 20-50%, and specialized DNSs like AdGuard DNS or CleanBrowsing block ads and trackers at the network level, which means that ads will disappear even in mobile applications where there are no built-in blockers.

⚠️ Note: If you are using a corporate network or connected to a VPN from the employer, change DNS It may violate security policies. Before setting up, check with the network administrator.

πŸ“Š What? DNS You're using it now?
Provider (by default)
Google DNS (8.8.8.8)
Cloudflare (1.1.1.1)
AdGuard DNS
Other

What are they? DNS-Best Servers to Choose for Xiaomi?

The choice of DNS depends on your goals. We have compiled a table with popular options and their features:

DNS-serverIP-address (IPv4)AdvantagesDeficiencies
Cloudflare1.1.1.1, 1.0.0.1The fastest (DNSPerf tests), supports DNS-over-HTTPS, no logsDoes not block advertising, basic protection against malicious sites
Google DNS8.8.8.8, 8.8.4.4Stable work, high speed, integration with Google servicesCollects data about requests (anonymized logs are stored 24-48 hours)
AdGuard DNS94.140.14.14, 94.140.15.15Blocks advertising, trackers and phishing, there is a β€œfamily” filterIt can falsely block legitimate websites
OpenDNS208.67.222.222, 208.67.220.220Good filtering of malicious sites, there are customizable "whitelists"Requires registration for full-time operation, may be slower than Cloudflare
Quad99.9.9.9, 149.112.112.112Blocks malicious domains based on IBM X-Force, no logsSometimes there are false positives on secure sites.

For most Xiaomi users, we recommend:

  • πŸš€ Top speed: Cloudflare (1.1.1.1) or Google DNS (8.8.8.8).
  • πŸ›‘οΈ Protection + Ad blocking: AdGuard DNS (94.140.14.14).
  • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ Family filter: OpenDNS FamilyShield (208.67.222.123, 208.67.220.123).

πŸ’‘

Before choosing a DNS, check its speed on your connection using the DNSPerf service or the namebench utility (for PC).

Step-by-step DNS setup on Xiaomi router (official firmware MiWiFi)

If your router runs on standard MiWiFi firmware (most models, including Mi Router 4A, AX3600, AX6000), follow this instruction:

  1. Open your browser and enter 192.168.31.1 (or miwifi.com) and log in with your login and password (admin/admin, if you haven’t changed it).
  2. Go to the section Additional settings β†’ Network β†’ LAN.
  3. Find the field. DNS-The server (may be called the main server) DNS and secondary DNS).
  4. Enter. IP-address DNS-servers (e.g. 1.1.1.1 and 1.0.0.1 for Cloudflare).
  5. Click Save and restart the router (Reboot button in the upper right corner).

Once you restart, all devices on your network will automatically start using the new DNS. To check if the settings have been applied, run a command in the command line (Windows) or terminal (macOS/Linux):

nslookup google.com

The answer should be displayed. IP-address DNS-the server you have specified (e.g. 1.1.1.1).

Make sure the router is restarted|Check the Internet connection on devices|Perform nslookup to verify DNS|Check the speed of loading sites (for example, through speedtest.net)|Open a website with ads (such as Forbes) to check for a lock-->

⚠️ Note: Some Xiaomi models (e.g. Mi Router) 3G/4C) hand-in-field DNS In this case, use an alternative method through DHCP-server (see next section) or update the firmware.

Configure DNS over DHCP (if the DNS field is blocked)

If the router’s web interface does not have the ability to change the DNS directly, you can redirect client devices to the desired servers through the DHCP settings. This method works on all firmware, including Padavan:

  1. Go to the router control panel (192.168.31.1).
  2. Go to Additional settings β†’ Network β†’ DHCP.
  3. Find the Primary DNS and Secondary DNS fields in the DHCP Settings section.
  4. Enter. IP-Addresses (e.g. 94.140.14.14 and 94.140.15.15 for AdGuard).
  5. Save the settings and restart the router.

This method will force the router to give out the selected DNS to all devices when connected to the network, but it has a drawback: if the device uses a static IP or a manually prescribed DNS, the settings will not apply.

  • πŸ”„ Forced renewal IP on the device (in Windows: ipconfig) /release β†’ ipconfig /renew).
  • πŸ“± Nana Android/iOS Reset your network settings (forget the Wi-Fi network and connect again).
What if DNS is not used on some devices?
If, after setting up, DHCP Some devices continue to use the old ones. DNS, check: 1. Static IP: The device can be configured to manually receive IP/DNS (check in the network settings). 2. VPN or proxy: Some applications (for example, 1.1.1.1 Cloudflare Redefined System Systems DNS. 3. Cash. DNS: Clear the cache on your device: - Windows: ipconfig /flushdns - macOS: sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - Android/iOS: Restart the device or turn on/off the aircraft mode.

Setup DNS on Xiaomi routers with Padavan firmware

Padavan firmware (an alternative to many Xiaomi models) offers advanced DNS settings, including support for DNS-over-TLS (DoT) and DNS-over-HTTPS (DoH).

  1. Go to the Padavan control panel (usually 192.168.1.1).
  2. Go online. β†’ LAN β†’ Settings DHCP/DNS.
  3. In the section DNS-servers specify the addresses they need (e.g. 8.8.8.8 and 1.1.1.1).
  4. To enable DoT (encrypted DNS), tick the Enable DNS-over-TLS box and select a server from the list (e.g., cloudflare-dns.com).
  5. Save the settings and restart the router.

Padavan also allows you to configure redirection DNS-request (DNS Forwarding) to block ads at the router level:

  1. Go to Advanced Settings β†’ DNS Forwarding.
  2. Enable the option and add rules (for example, to block ad network domains).

πŸ’‘

Using DNS-over-TLS (DoT) on Padavan protects your requests from being eavesdropped by the provider, but can slightly increase ping.

Problems After DNS Change and Solutions

Sometimes when you change your DNS, you might have a problem, and we've collected some of the most common problems and ways to fix them.

Problem.Possible causeDecision
The Internet is gone after the DNS changeIncorrect. IP-address DNS orCheck the correct addresses. Return the ISP's standard DNS and try again.
Some sites are not openedDNS-The server blocks domains (for example, AdGuard blocks ad networks)Try a different DNS or add a problematic site to the whitelist (if supported).
Page loading slowed down.Selected DNS is slower than the providerTest your DNS speed with nslookup or DNS Benchmark. Choose another server.
DNS is not used on phone/PCThe device uses a static DNS or VPNReset your network settings on your device or turn off the VPN. Check your IP settings (should be "Get Automatic").

After the shift DNS You've noticed that some services (e.g., online banks or government sites) have become unavailable, and this may be due to geo-blocking. DNS-Servers (like Google or Cloudflare) can redirect requests through foreign nodes, resulting in blocking:

  • 🌍 Use it. DNS Support for your region (e.g. 77.88.8.8 – Yandex.DNS for Russia).
  • πŸ”„ Go back to DNS provider for critical services.

Additional features: Ad blocking and parental control

One of the most useful bonuses from the change DNS β€” The ability to block ads and malicious sites at the router level, which means that ads will disappear on all devices, including smart devices.-TB, game consoles and smart speakers where you can not install AdBlock.

The following DNSs will be suitable for this:

  • πŸ›‘οΈ AdGuard DNS (94.140.14.14, 94.140.15.15 – blocks advertising, trackers and phishing.
  • πŸ‘¨β€πŸ‘©β€πŸ‘§β€πŸ‘¦ CleanBrowsing Family Filter (185.228.168.168) – Blocks adult content + promotion.
  • πŸ”’ OpenDNS FamilyShield (208.67.222.123) – filtering by category (social networks, games, etc.).

To set up parental controls through DNS:

  1. Select a family filtered DNS (e.g. OpenDNS FamilyShield).
  2. Set it up in the router (as described above).
  3. Register on the service’s website (such as OpenDNS) to fine-tune the rules.

Please note that DNS-Filtering does not replace full parental control. DNS with router settings (for example, limitation on the MAC-addresses or schedules of access).

FAQ: Frequent questions about setting up DNS on Xiaomi

Can I use several of them? DNS-servers simultaneously?
Yes, router settings usually have fields for primary and secondary DNS. The router will use a secondary server if the primary is not available. However, some services (such as AdGuard DNS) recommend using both of their addresses to balance the load.
How to return standard DNS from the provider?
Go to the router settings (192.168.31.1) and delete manually entered DNS-And when you save and reboot the router automatically gets the address. DNS from provider through DHCP.
Will a Smart TV or a game console with custom DNS work?
Yes, all devices on the network (including Xiaomi Mi) TV, PlayStation, Xbox will be used DNS, The router is registered if they receive IP-address (DHCP). Exception - devices with static IP or manually DNS.
Can you configure different DNSs for different devices on the same network?
On standard MiWiFi firmware, this is not possible β€” DNS It's assigned to the entire network, but alternative firmware (like Padavan) can be used. DNS Forwarding with rules for individual IP/MAC-address.
Why do some websites open more slowly after the DNS change?
It could be related to: 🌍 Geographical location DNS-Cloudflare is faster for European users, and Yandex.DNS is faster for Russian users). πŸ”„ Caching: The first appeal to a new DNS Wait 10-15 minutes and check again. πŸ›‘οΈ Filtration: Some DNS (So, for example, OpenDNS, they analyze queries, which adds to the delay. Solution: test the speed of different types of queries. DNS assisted DNS Benchmark and choose the best one.