The DNS configuration is incorrect, the web page opens slowly, and the video loads in circles.
Obviously the broadband at home is 100 Mbit/s or above, but the network speed is very slow. Is it because the operator does not provide enough? In fact, this may be because your DNS is not configured correctly.
The DNS configuration has been corrected, and opening the web page is visibly faster.
DNS is the first threshold of the Internet. Once configured, it will not only open web pages faster, but also prevent hijacking, anti-pollution, and ad filtering. This article explains how to match it clearly.
Problem diagnosis: If the DNS configuration is incorrect, how will the network speed be affected?
First confirm what kind of situation you are encountering:
Common causes (ordered by frequency):
- The router's default DNS is assigned by the operator —— Slow and secretly hijacking
- DNS server address is incorrect ——Parsing fails even if one number is missing
- Each device is configured with a different DNS ——The phone is fast but the computer is slow, I don’t know which one to change
- IPv6 DNS configuration not synchronized —— I took the slow line when IPv6 was given priority.
- cache pollution —— The router’s DNS cache has been cached for too long, and the domain name IP has changed but has not been updated.
solution
Option 1: Modify the router DNS (the most thorough, one change will take effect in the whole house)
The correct way to change DNS:
Operator default DNS → Change to public DNS, One size fits all on the router , all devices automatically take effect.
Recommended public DNS at a glance:
| DNS service provider | Primary DNS | Prepare DNS | Features |
|---|---|---|---|
| AliDNS (AliDNS) | 223.5.5.5 | 223.6.6.6 | Domestic fast, high penetration rate |
| Tencent DNS (DNSPod) | 119.29.29.29 | 182.254.116.116 | Good anti-pollution |
| Baidu DNS | 180.76.76.76 | — | Domestic express |
| Cloudflare( 1.1.1.1 ) | 1.1.1.1 | 1.0.0.1 | Fastest in the world, privacy first |
| Google DNS | 8.8.8.8 | 8.8.4.4 | Overseas websites are fast, domestic websites are average |
The first choice for domestic users: 223.5.5.5 + 223.6.6.6 (Ali) , increasing overseas demand 8.8.8.8 as an alternative.
Modification steps (universal router):
- Enter the router address into the browser to log in ( 192.168.1.1 / 192.168.0.1 / 192.168.31.1 )
- Find "Network Settings" → "WAN Port Settings" or "Internet Settings"」
- Find "Manually specify DNS" or "Advanced DNS"」
- Fill in the primary DNS: 223.5.5.5
- Fill in the backup DNS: 223.6.6.6
- Save and restart the router
TP-Link setting path:
Network parameters → WAN port settings → Advanced → Find the DNS server and fill it in
Xiaomi router settings path:
Common settings → WiFi settings → WiFi advanced settings → Custom DNS
Huawei router setting path:
More functions → Network settings → WAN port settings → DNS settings
💡 Skill : If the router does not have separate DNS settings, you can find them in the advanced settings of the WAN port PPPoE dial-up, which are usually mixed together.
❌ Avoid pitfalls:
- ❌ Do not fill in 114.114.114.114 (Has been exposed and hijacked, not recommended)
- ❌ Do not fill in the DNS of two different operators at the same time - if they do not support each other, the speed will drop.
- ❌ Don’t just fill in one DNS - if the primary DNS is down, all websites cannot be opened. The backup DNS is for life-saving purposes.
Option 2: Configure IPv6 DNS at the same time (to prevent IPv6 from going astray)
After IPv6 becomes popular, many devices will use IPv6 DNS first. If only IPv4 DNS is configured, IPv6 may use the operator's slow line.
How to confirm whether you have IPv6?
- Open test.ipv6.test.ustc.edu.cn
- Can be opened → IPv6 is available
IPv6 DNS recommendation:
| DNS service provider | Primary DNS | Prepare DNS |
|---|---|---|
| Ali | 2400:3200::1 | 2400:3200:baba::1 |
| Tencent | 2402:4e00:: | 2402:4e00:1:: |
| Chinese Academy of Sciences | 2001:cc0:2fff:1:: | — |
Modification steps:
- Log in to the router backend
- Find the "IPv6" setting item (maybe in "Advanced Settings" or "Network Parameters")
- 「IPv6 DNS" manually filled in:
- host: 2400:3200::1
- Prepare: 2400:3200:baba::1
- Save and restart
Option 3: Clear router DNS cache
After changing the DNS, some domain names still resolve to the old IP (which is cached).
Cleanup method:
Method A: Restart the router
- The simplest, clear all caches after restarting
- Wait 2-3 minutes for full startup
Method B: Command line cleanup (advanced users)
Log in to the router backend → Find "System Tools" → "Restart」
Or use SSH (supported by some routers):
# 登录路由器后台(telnet 或 SSH)
# 不同路由器命令略有差异
killall -SIGHUP dnsmasq # 清除 DNS 缓存
Or restart the DNS service directly:
/etc/init.d/dnsmasq restart
Option 4: Assign DNS to specific devices individually
The router has changed the DNS, but some devices (such as smart TVs and game consoles) use their own DNS and are not affected.
TV/box DNS optimization (ad removal + acceleration):
- Open TV settings → Network → WiFi details
- DNS1: 223.5.5.5 (Ali)
- DNS2: 119.29.29.29 (Tencent)
- Confirm to save
Computer-specific designation (Windows):
- Right-click "Network" → "Properties" → "Change Adapter Settings"」
- Double-click the network you are using → "Properties"」
- Double-click Internet Protocol Version 4 (TCP/IPv4)」
- Select "Use the following DNS server addresses"」
- fill in 223.5.5.5 / 223.6.6.6
- Do the same for IPv6, fill in 2400:3200::1 / 2400:3200:baba::1
Mac individually designated:
System Preferences → Network → Wi-Fi → Advanced → DNS → Add 223.5.5.5 / 223.6.6.6
Option 5: Encrypt DNS requests with DNS-over-HTTPS (DoH)
Advanced gameplay: The DNS request itself can also be monitored/hijacked by the operator. After being encrypted with DoH, the operator cannot identify it and cannot hijack it.
Router that supports DoH (requires firmware support):
- Xiaomi/Redmi router (some models need to flash the development version firmware)
- OpenWrt / Merakin / Pandorabox and other third-party firmware
- ASUS router (natively supports DoH)
Setting method (taking ASUS as an example):
- Log in to the ASUS router backend
- External Network → Internet Connection → DNS Settings
- Enable "Resolve via DoH" or "Resolve DNS via TLS"」
- DoH URL fill in:
- Cloudflare: https://cloudflare-dns.com/dns-query
- Google: https://dns.google/dns-query
- save
❌ Avoid pitfalls:
- ❌ DoH will slightly increase the delay (about 5-10ms), but the privacy protection is worth it
- ❌ DoH is prohibited on some school/enterprise networks, and DoH meetings cannot be accessed online.
- ❌ Do not enable DoH in unofficial firmware of Xiaomi routers, as it may be unstable.
Actual measurement of DNS optimization effect
Use the following method to compare the DNS resolution speed before and after optimization:
method: Use nslookup to test DNS response time
Open the command line (for Windows, press Win+R and enter cmd, for Mac, open the terminal):
nslookup www.baidu.com 223.5.5.5
Look at the last line "Response time", normal value:
- &<10ms : DNS server is in the country, extremely fast ✅
- 10-50ms : normal level
- > 100ms : There is a problem with DNS, it may be cross-province resolution
final reminder
- Changing DNS on the router is the most valuable operation , once the change takes effect for the whole house, all devices will benefit.
- Domestic first choice 223.5.5.5 + 223.6.6.6 , stable, fast, less hijacking
- Don’t miss configuration of IPv6 DNS , otherwise the device with IPv6 priority will take the long way around.
- DNS is configured separately for the TV and box , many video apps have slow resolution due to DNS issues.
- Test DNS speed regularly , replace the operator’s DNS in time when it becomes unreliable.
If the DNS configuration is wrong, all other optimizations will be in vain. Fix the DNS first, and then test the network speed to get the real result.
What router are you using? Which DNS is configured now? Let me know in the comment area and help you check if the configuration is correct.
