How to Fix Wi-Fi DNS Errors: Step-by-Step Guide
In this article
A Wi-Fi DNS error means your device cannot translate website names into IP addresses, so pages fail to load even though the Wi-Fi signal looks fine. The quickest fix is usually to restart your router and device, then switch your DNS servers to a reliable public resolver such as Cloudflare (1.1.1.1) or Google (8.8.8.8). This guide walks through the safe, official steps on Windows, macOS, iPhone and Android, plus what to do when the simple fixes do not stick.
What You'll Need
- Your Wi-Fi network name and password (in case you need to reconnect).
- Access to your router's admin page (address and login are usually printed on the router label).
- The device showing the error, charged or plugged in.
- About 10–15 minutes.
Step-by-Step
- Restart everything in the right order. Turn off the router and modem, wait 30 seconds, power the modem back on, wait for its lights to settle, then power the router on. After the Wi-Fi network returns, restart the affected device. This clears temporary DNS cache and DHCP glitches more often than people expect.
- Confirm the error is DNS and not a dead connection. Try loading a site by IP address, such as
https://1.1.1.1. If that loads butexample.comdoes not, DNS is the problem. If neither loads, the issue is upstream (ISP or router), not DNS. - Flush the DNS cache on the device. On Windows, open Command Prompt as administrator and run
ipconfig /flushdns. On macOS, open Terminal and runsudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder. On iPhone and Android there is no user-facing flush command; toggling Airplane Mode on and off, or restarting the phone, achieves the same effect. - Change the DNS servers on your router (best for all devices). Open a browser and go to your router's admin address (commonly 192.168.1.1 or 192.168.0.1; check the label). Log in, find the Internet or WAN settings, and look for DNS settings. Set the primary DNS to
1.1.1.1and secondary to1.0.0.1(Cloudflare), or8.8.8.8and8.8.4.4(Google). Save and reboot the router. Menu labels vary by router brand and firmware version, so look for “DNS,” “WAN,” or “Internet Setup.” - Or change DNS on a single device. On Windows: Settings > Network & Internet > Wi-Fi > your network > DNS server assignment > Edit, then enter the addresses manually. On macOS: System Settings > Network > Wi-Fi > Details > DNS, then add the servers. On iPhone: Settings > Wi-Fi > tap the “i” next to your network > Configure DNS > Manual. On Android: Settings > Network & internet > Private DNS (or the Wi-Fi network's IP settings), depending on the manufacturer. Labels differ by version and region.
- Disable any VPN or custom DNS app temporarily. A VPN or ad-blocking DNS app can break name resolution. Turn it off, reconnect to Wi-Fi, and test. If the error clears, reconfigure or update the app rather than leaving it off permanently.
- Renew the IP address. On Windows, run
ipconfig /releasethenipconfig /renewin an administrator Command Prompt. On macOS, turn Wi-Fi off and on, or renew the DHCP lease in Network settings. This can fix a stale DNS server handed out by the router. - Update the router firmware and the device OS. Old firmware can ship broken DNS handling. Check the router admin page for a firmware update option and install it from the manufacturer's official site only. Also install pending OS updates on the affected device.
- Forget and rejoin the Wi-Fi network. This clears saved network settings that may include a bad DNS entry. On phones, tap the network and choose Forget, then reconnect with the password.
- Test with a different device and network. If another device on the same Wi-Fi works, the problem is local to the first device. If every device fails, the router or ISP is the cause. If a mobile hotspot works, the home network is the culprit.
Common Mistakes
- Changing DNS on the device but leaving the router set to a broken DNS server, so other devices still fail.
- Typing DNS addresses with spaces or wrong punctuation; use exactly
1.1.1.1, not1.1.1. 1. - Forgetting to save and reboot after changing router DNS settings.
- Blaming DNS when the real issue is a captive portal (hotel or public Wi-Fi) that needs a sign-in page first.
- Installing “DNS fixer” apps from unofficial sources; stick to official app stores and built-in settings.
Tips
- Use a primary and secondary DNS from the same provider; mixing providers can cause slow lookups.
- Keep a note of your original DNS settings so you can revert if a public resolver is blocked on your network.
- If only one website fails, the site's own DNS may be down; test another site before changing settings.
- Public Wi-Fi often blocks custom DNS; use the network's default settings there.
Troubleshooting
If pages still fail after changing DNS, check whether the router is handing out its own address as DNS. In the router's DHCP settings, set the DNS option to “Use these DNS servers” and enter the public addresses again. If the error appears only in one browser, clear that browser's cache and disable its secure DNS or DNS-over-HTTPS setting temporarily. On Windows, run nslookup example.com in Command Prompt; a timeout points to the router or ISP, while a correct answer points to a browser or app issue. If nothing works, contact your ISP and ask whether DNS is being intercepted, and as a last resort reset the router to factory defaults—this erases your Wi-Fi name, password and any custom settings, so note them first.
Frequently Asked Questions
Does changing DNS fix all Wi-Fi errors?
No. It fixes name-resolution failures. If the connection itself is down, DNS changes will not help.
Is it safe to use public DNS servers?
Yes, using well-known providers such as Cloudflare or Google is standard practice. Your ISP can still see your traffic unless you use a VPN.
Why does the DNS error come back after a while?
Usually the router is still advertising its own DNS via DHCP, or a VPN app is resetting it. Change DNS at the router level and check VPN settings.
Can I fix a DNS error on a smart TV?
Often yes: in the TV's network settings, set DNS manually to 8.8.8.8 or 1.1.1.1. Menu names vary by brand.
Do I need to restart after changing DNS?
Yes, restart the router and the device so the new settings take effect.