How to permanently remove ads on Xiaomi through setting up DNS-server

Why does the ad appear on Xiaomi devices and can it be turned off?

Xiaomi smartphone, tablet and TV owners regularly face intrusive ads in system apps, Mi Browser, launcher and even settings menus. The company integrates ad units into MIUI and HyperOS firmware as a way to monetize, but it becomes an annoying factor for users, especially annoying advertising on budget models, where it can occupy up to 10-15% of the screen on some menus.

One of the most effective ways to combat this problem is to block advertising servers at the DNS level. Unlike installing third-party blockers (such as AdGuard or Blokada), the method with DNS does not require root rights, does not load the system and works on all Xiaomi devices - from Redmi Note 10 to the flagship Xiaomi 14 Ultra. The main advantage: the lock works even in system applications where conventional adblock extensions do not have access.

In this article, we will discuss:

  • πŸ” How it works DNS-Advertising blocking and why it is safe
  • πŸ“± Step-by-step settings on smartphones Xiaomi/Redmi/Poco (including HyperOS)
  • πŸ“Ί Features of settings for Mi TVs TV and the Mi Box.
  • ⚠️ Possible problems and how to avoid them (including bypassing the lock by the operator)
  • πŸ”„ Alternatives DNS-Servers and their comparison in terms of efficiency
πŸ“Š What kind of Xiaomi device are you using?
Smartphone
Television
The Mi Box console
Tablet
Other

How it works DNS-Advertising blocking: technical details

DNS (Domain Name System is a system that converts domain names (such as ads.mi.com) into domain names. IP-Addresses. When you use an alternative. DNS-Filtered server, all requests to advertising domains are redirected to "empty" IP Or they're blocked. That means that:

  • 🚫 Banners in Mi Browser, Mi Video, Mi Music are no longer downloadable
  • πŸ“΅ System notifications with ads (e.g., in Security or Cleaner) disappear
  • ⚑ Page loading speeds can increase (no time is wasted loading ads)
  • πŸ”’ No security risk – you don’t install third-party apps with unknown permissions

It is important to understand that DNS-The lock doesn't physically remove ads -- it just makes them invisible to your device. Xiaomi's ad servers keep working, but your smartphone or TV doesn't get data from them anymore. DNS On the router, advertising will disappear on the phone and on the TV).

Among the popular DNS-servers for blocking advertising are allocated:

DNS-serverIPv4-addressIPv6-addressFeatures
AdGuard DNS94.140.14.1494.140.15.152a10:50c0::ad1:ff2a10:50c0::ad2:ffBlocks ads, trackers and phishing, and there's a family mode with 18+ content blocking.
NextDNSIndividual (after registration)IndividualFlexible filter configuration, query statistics, free up to 300,000 requests/month
CleanBrowsing185.228.168.9185.228.169.92a0d:2a00:1::2a0d:2a00:2::Focus on security and blocking malicious sites.
Cloudflare Family1.1.1.31.0.0.32606:4700:4700::11132606:4700:4700::1003Blocks malware and adult content, but filters ads weakly

⚠️ Note: Some mobile operators (e.g. MTS, Beeline) may ignore user-generated DNS-settings in mobile networks (3G/4G/5G). In this case, the lock will only work through Wi-Fi. VPN custom-supported DNS.

Step-by-step: how to configure DNS on a Xiaomi smartphone

The setup process is the same for most MIUI 12–14 and HyperOS devices, but there may be minor differences in the layout of menu items.

  • πŸ“± Xiaomi 13/14 series, Redmi Note 12/13, Poco F5/X5
  • πŸ“± Budget models: Redmi A2, Poco M6, Redmi 12C
  • πŸ“± Older devices (if updated to current firmware)

Step 1. Open your Wi-Fi settings

Go to Settings β†’ Wi-Fi. Click on the name of your network (to which you are connected) and hold your finger for 1-2 seconds until the context menu appears. Select Change Network (or Network Management on some firmware).

Step 2. Enable advanced settings

At the bottom of the screen, tap on Additional (or Advanced Settings). Here you need to find the IP Settings item and change it from DHCP to Static.

Step 3. Specify DNS-server

Scroll down to the DNS 1 and DNS 2 fields, enter the addresses of one of the servers in the table above, for example, for AdGuard DNS:

DNS 1: 94.140.14.14


DNS 2: 94.140.15.15

If you use NextDNS, pre-register on the site and get a personalized IP-address.

Step 4: Save and reconnect.

Click Save (or check in the top right corner). Unplug from Wi-Fi and reconnect. Changes may require rebooting the device to apply.

Make sure the internet is working (open your browser)

Check out the lack of ads in Mi Browser (open mi.com)

Launch the Security app and check notifications

Restart the device if the ad is still displayed-->

⚠️ Note: Some Xiaomi firmware after settings system update DNS They're reset. To avoid that, use applications like this. DNS Changer (requires permissions) VPN) or tune in DNS router-level.

Features of DNS settings on Mi TVs and Mi Box consoles

Xiaomi Mi TVs (including Mi TV A2, Mi TV Q2, Mi TV P1) and Mi Box S/Mi Box 4K also support DNS change, but the settings interface is different from smartphones. The main difficulty is the lack of a full-fledged browser to check the lock, so you will have to focus on the disappearance of advertising in system applications.

Instructions for Mi TV (Android TV):

  1. Open Settings β†’ Network and Internet β†’ Wi-Fi.
  2. Select your network and click Change Network (or Network Settings).
  3. In the DNS section, select Manual and enter addresses (e.g. 94.140.14.14 and 94.140.15.15).
  4. Save the settings and restart the TV (required!).

Instructions for the Mi Box:

On consoles, the path is a little different: Settings β†’ Network β†’ Wi-Fi setup β†’ Additional β†’ IP settings β†’ Static. Once you enter DNS, restart the device through Settings β†’ Device β†’ Reboot.

Important: On Xiaomi TVs with PatchWall-based firmware (e.g. India), you may need to reset to factory settings after changing the DNS, as the system caches advertising modules.

What if after setting up the DNS advertising remained?
If the advertisement continues to appear, check it out: 1. Application cache: Clear data in Settings β†’ Annexes β†’ Mi Browser/Security. 2. Alternative DNS: Try another server (e.g. NextDNS instead of AdGuard). 3. Update of the firmware: On some versions MIUI old-fashioned DNS-Addresses can be ignored. 4. Connection Check: Make sure the device is actually using the new one DNS (You can check it out through the app DNS Checker on a smartphone).

Problems and Solutions: Why DNS-The lock may not work.

Despite the simplicity of the method, users often face difficulties, and consider the typical problems and ways to solve them:

Problem.Possible causeDecision
DNS is not used on mobile networksThe operator ignores user DNS (T-Mobile, MTS, Beeline)Use a VPN with custom DNS support (e.g. 1.1.1.1 WARP)
Advertising remains in some applicationsDNS does not block all Xiaomi advertising domainsAdd additional filters to NextDNS or use AdGuard Home on your router
After the MIUI DNS update, it dropped.The system resets network settings when updatingSet up DNS on your router or use DNS Changer with Auto-Run
No Internet after DNS changesIP input error or server not availableCheck the correct addresses. Try 8.8.8.8 (Google DNS) for the test.

If you use NextDNS, pay attention to the request limit (300,000/month on the free rate). If you exceed the limit, the lock is disabled until the next month. To track usage, register on nextdns.io and link your IP.

πŸ’‘

For maximum efficiency, combine DNS-lock with disabling personalized advertising in the settings of Xiaomi. β†’ Google β†’ Advertising and deactivate the option "Personalized Advertising".

Alternative ways to block ads on Xiaomi

If DNS-This method is not suitable (for example, due to operator limitations), consider alternatives:

  • πŸ›‘οΈ AdGuard or Blokada: Applications with a function VPN-They require constant work in the background, but they block ads in all applications, including games.
  • πŸ“¦ Disabling System Applications: Through Settings β†’ Annexes β†’ You can disable Mi Browser, Mi Video, Cleaner, but that won't remove ads from the launcher or settings.
  • πŸ”§ Editing hosts file: Requires root rights. /system/etc/hosts Added records to redirect advertising domains to 127.0.0.1. Risky method – an error can lead to loss of system performance.
  • 🌐 Router settings: Change DNS It's going to block ads for all devices on the network, it's going to be for Xiaomi Router, TP-Link, Keenetic. DHCP β†’ DNS-server.

For users ready for experimentation, there is a radical method – install custom firmware (for example, LineageOS or Pixel Experience), these firmware are devoid of Xiaomi advertising modules, but require unlocking the bootloader and can deprive the device of warranty.

πŸ’‘

DNS-Blocking is the safest and most versatile way to remove ads on Xiaomi.It does not require root rights, does not affect performance and works on all devices of the brand, including TVs and set-top boxes.

FAQ: Frequent questions about DNS ad blocking

❓ Can I use it? DNS-lock on Xiaomi with two SIM-map?
Yes, but DNS settings apply separately for each Wi-Fi network. In mobile networks (3G/4G/5G), the operator can ignore user DNS. To completely block, configure DNS on the router or use a VPN with custom DNS support (for example, 1.1.1.1 WARP).
❓ Will the lock be effective if I move to another country?
Yes, DNS-Servers like AdGuard and NextDNS are globally active, but some countries (like China, UAE) may have restrictions on third-party servers. DNS. In this case, it will be necessary VPN.
❓ How to bring back the standard DNS, if something went wrong?
Go to your Wi-Fi settings, select your network, and change your IP settings from Static to DHCP. Or manually enter Google's DNS: 8.8.8.8 and 8.8.4.4.
❓ Xiaomi can block my device for using alternatives DNS?
No, using third-party DNSs does not violate Xiaomi’s user agreement; it is a standard Android/TV feature, and the company cannot restrict its use, but future firmware updates may include bypass mechanisms for displaying ads.
❓ Why after setting up DNS Some websites are not opened?
Some of them DNS-Servers (e.g. CleanBrowsing or Cloudflare Family) block not only ads, but also certain categories of sites (gambling, 18).+ Try changing the server to AdGuard. DNS (without a family filter or temporarily disable the lock.