Network troubleshooting technician providing live chat help

Joe B.

Reviewed for technical accuracy

Specialities: Home networking, Wi-Fi routers, modems, Windows/macOS internet issues, DNS & IP configuration, ISP setup

Fix router keeps switching DNS automatically — DNS keeps changing to automatic, ISP DNS, or unknown servers

Technician avatar Technician
Hi! We’ll get this router keeps switching DNS automatically issue under control so your internet is stable again. I just need a quick picture of your setup so we can see who is changing the DNS.

When you set DNS to something like 8.8.8.8 or 1.1.1.1, does it change back to “Obtain DNS automatically” on its own, or do you see strange DNS IPs appear (for example, random public IPs instead of your ISP or Google/Cloudflare)? Are you setting DNS on the router itself, or only in Windows / macOS / Android network settings? And is this an ISP-supplied router, your own router, or a combo (ISP modem/router + your own Wi-Fi router)?
Customer
I’m trying to force Google DNS. In my router DHCP/DNS settings I set 8.8.8.8 and 8.8.4.4, click Apply, and it works for a bit. But after a reboot, or sometimes randomly during the day, the router switches back to “Get DNS from ISP automatically” and my devices start using the ISP DNS again. On my Windows PC the adapter is set to “obtain DNS automatically”, but when I run ipconfig /all I can see the DNS servers keep changing by themselves, matching whatever the router decides to use.
Technician avatar Technician
Got it, that’s a classic router DNS keeps changing situation. There are a few common reasons a router will not keep custom DNS and keeps switching back to automatic or ISP DNS:

• The router is configured to copy DNS from the WAN/ISP on every reconnect, ignoring your manual LAN/DHCP DNS settings.
• The ISP has a “managed router” profile (TR-069 / remote management) that periodically pushes its own DNS settings back to your router.
• There’s a second router or modem/router in front that’s performing DNS proxy or DNS hijacking, so even if you set 8.8.8.8, queries get redirected.
• In some cases, malware or a DNS hijacker on the router changes DNS to suspicious IPs that cause redirects or ads.

We’ll first confirm where your devices are really getting DNS from, then lock DNS down on the router and, if needed, on individual devices so it stops changing automatically.
Customer
I checked ipconfig /all on my PC. When the router is behaving, the DNS server it shows is 8.8.8.8. But after a while it flips back to my ISP DNS (two different 62.x.x.x addresses). I haven’t seen any weird IPs, just the ISP ones. We do have an ISP modem/router combo and then my own ASUS router plugged into it. Wi-Fi is disabled on the ISP box; we only use the ASUS Wi-Fi.
Technician avatar Technician
That’s helpful — so this looks more like an ISP DNS override than full-blown DNS hijacking.

Step A — See exactly where DNS is coming from
1) Log in to your ASUS router and find:
  • The WAN status page (it usually shows Internet IP, Gateway, and DNS).
  • The LAN / DHCP server page where you set “DNS 1 / DNS 2” for clients.
2) When the problem appears, check if the WAN section is receiving DNS from your ISP and if there’s a checkbox like “Connect to DNS server automatically” or “Use WAN DNS”.
3) On your Windows PC, run:
  • nslookup google.com and note the “Server” line (that’s the DNS actually used).
4) If nslookup shows the ISP DNS when the router flips, then your router is either handing out ISP DNS from DHCP or proxying queries to ISP DNS even though you entered custom ones.

Once we see those two pages, we’ll disable “use ISP DNS automatically” and force the router to always provide your own DNS (Google / Cloudflare / etc.) to every device.
Customer
On the WAN page it shows “Get the WAN DNS server automatically” checked, and it lists the two ISP DNS servers. On the LAN/DHCP page I had set 8.8.8.8 and 8.8.4.4. But I noticed that sometimes those LAN DNS boxes are blank again, like the router has reset them. There’s also an option called “Advertise router as DNS” that’s enabled.
Technician avatar Technician
Perfect, that explains why the router DNS keeps changing back to ISP.

Step B — Stop the router from overwriting your DNS
• On the WAN page, uncheck “Get the WAN DNS server automatically” if your ISP allows custom DNS, then manually put your preferred DNS there (e.g., 1.1.1.1 and 8.8.8.8). This prevents the router from refreshing ISP DNS every time the connection resets.
• On the LAN / DHCP page, re-enter your DNS servers in “DNS 1 / DNS 2” and click Apply. These are the DNS servers your devices will get via DHCP, so they should match what you want (Google DNS, Cloudflare DNS, etc.).
• If there’s an “Advertise router as DNS” or “DNS proxy/relay” option, try disabling it so the router doesn’t rewrite traffic. In that mode, clients are told to use the external DNS directly instead of the router’s IP.
• After saving, reboot the router once manually. Then watch whether the DNS fields stay on your custom values or revert to automatic without you touching anything.

If the router still flips those DNS settings back on its own, that’s when we start suspecting either ISP remote management or a DNS hijacker on the router firmware.
Customer
I turned off “Get WAN DNS automatically” and put 1.1.1.1 and 8.8.8.8 on both the WAN and LAN pages. After a reboot it stayed that way for about an hour, but then I checked again and the WAN DNS had gone back to the ISP ones, even though I didn’t touch anything. The LAN DHCP DNS still shows my custom values, but nslookup is sometimes using the ISP DNS again. I also see that the ISP router has a “remote management” and “TR-069 client” option enabled.
Technician avatar Technician
That’s a strong sign the ISP gateway is pushing DNS overrides or intercepting queries, which is why the router keeps switching DNS automatically back to ISP values.

Step C — Tame the ISP box and secure the router
1) Log in to the ISP modem/router and look for options like “Bridge mode”, “Modem only”, or “Pass-through”. If available, enabling bridge mode turns it into a dumb modem so it no longer injects its own DNS or NAT rules.
2) If bridge mode isn’t an option, disable:
  • Extra Wi-Fi networks.
  • “DNS proxy” or “Secure DNS” features.
  • Unnecessary remote management / TR-069 if your ISP allows it, so it stops rewriting your DNS config.
3) On your ASUS router, change the admin password from the default, disable remote admin from the internet, and check that no unknown admin accounts or suspicious DNS IPs (like random overseas addresses) are configured — those are signs of a DNS hijacker.
4) On your PC, run a full scan with a reputable antivirus / anti-malware to be sure nothing on the computer is tampering with DNS.

Once the ISP box is in bridge mode or at least not forcing its own DNS, your router should stop resetting DNS to automatic or ISP values and instead consistently hand out the custom DNS you set.
Customer
I can enable bridge mode on the ISP router, so I did that and rebooted both boxes. Now the ASUS WAN page only shows the DNS servers I entered and they don’t change after reconnecting. nslookup on my PC shows “Server: 1.1.1.1” like it should. However, my Android phone still sometimes shows the ISP DNS in a network info app, and a couple of sites feel slow or fail to resolve on mobile.
Technician avatar Technician
Great — the core router DNS keeps changing problem is fixed at the network level now; we just need to clean up device DNS so everything matches.

For Windows:
• In the adapter properties, make sure IPv4 is set to “Obtain DNS server address automatically” if you’re letting DHCP hand out your new DNS. If you previously hard-coded ISP DNS there, delete it.
• If you want to force DNS on that PC regardless of router, you can manually set 1.1.1.1 and 8.8.8.8 in the IPv4 DNS fields instead of automatic.

For Android:
• On newer Android versions you can use “Private DNS” and enter one.one.one.one or dns.google so the phone always uses that DNS, even if the router misbehaves.
• On older Android, you can edit the Wi-Fi network, switch IP settings from DHCP to Static, and manually enter DNS 1 and DNS 2 (1.1.1.1 / 8.8.8.8), keeping the IP/gateway/subnet values the same.

After that, toggle Wi-Fi off/on on the phone and re-check the network info app. Both router and devices should now show the same custom DNS servers instead of randomly switching to ISP DNS.
Customer
I set Private DNS to one.one.one.one on my phone and left my PC on automatic DNS from the router. Now both are using Cloudflare/Google consistently and everything loads quickly again. Is there anything else I should change on the router so it doesn’t randomly reset my DNS settings in the future or get hijacked?
Technician avatar Technician
Yes — now that DNS is stable, let’s make sure the router doesn’t switch DNS automatically again or get its settings changed by something else.

Step D — Make the DNS fix stick
• Turn on automatic firmware updates or at least check for new firmware every month. Many updates patch security issues that DNS hijackers abuse.
• Confirm the router’s admin username and password are unique and strong, and that remote administration from the internet is disabled so nobody can log in from outside and change DNS.
• Keep the ISP modem in bridge mode so it doesn’t apply ISP DNS policies or interfere with traffic.
• Take a screenshot of your working WAN and LAN DNS settings so if you ever reset the router, you can quickly restore the same configuration.
• Consider using features like DNS over TLS / DNS over HTTPS if your router supports them, which can help prevent third parties (and some ISPs) from rewriting queries on the way out.

With that in place, your home network should stick to the DNS you choose instead of bouncing between ISP DNS, automatic DNS, and custom DNS on its own.
Customer
That all makes sense. With bridge mode enabled, new firmware, and a stronger admin password, the DNS has stayed on 1.1.1.1/8.8.8.8 all afternoon. No more random switches or slow lookups. Thanks for walking me through everything.
Technician avatar Technician
You’re welcome — glad we could stop your router from switching DNS automatically and get your internet back to normal.

Summary: When a router keeps changing DNS by itself, the usual fix is to check where DNS is coming from (router vs ISP vs device), disable “Get DNS from ISP automatically” or DNS proxy options, set reliable DNS servers on WAN and LAN/DHCP, put the ISP modem into bridge mode if needed, and clean up device DNS settings. Securing the router and keeping firmware updated prevents DNS hijacking and keeps your chosen DNS servers in place. If you ever see DNS flipping again or suspicious redirects, you can open a chat with an expert and we’ll trace it live with you.
Customer
Awesome, everything feels faster and safer now. I’ll definitely reach out if the router starts messing with DNS again. Thanks!
Technician avatar Technician
Any time! If a friend or coworker complains that their router keeps switching DNS automatically, DNS keeps resetting to ISP, or they suspect DNS hijacking, you can share this checklist — and if you’d like someone to go through the router and device settings with you in real time, just start a chat with an expert and we’ll take it from there.

Quick answer: the accepted fix

Accepted fix when a router keeps switching DNS automatically: check where devices are getting DNS from, disable “Get DNS from ISP automatically” on the router, set reliable DNS servers (like 1.1.1.1 / 8.8.8.8) on the router’s WAN and LAN/DHCP pages, put any ISP modem/router into bridge mode if it’s overriding DNS, and clean up device Windows / Android / iOS DNS settings so they all consistently use your chosen DNS servers instead of reverting to ISP or unknown addresses.


Why routers keep switching DNS automatically (ISP override, DHCP, malware, Wi-Fi)

Most router DNS keeps changing problems are not caused by your PC or phone but by the way DNS is handled between router, modem, and ISP. If the router is set to “use ISP DNS automatically”, every reconnect can pull new DNS servers from the ISP and overwrite your custom values. Managed ISP gateways may use TR-069 or remote configuration to push their own DNS back onto your router on a schedule. Some models also run a built-in DNS proxy that advertises the router as DNS but silently forwards queries to the ISP.

In worse cases, insecure firmware or a weak admin password lets a DNS hijacker change the router’s DNS to malicious IP addresses that cause redirects, fake login pages, or extra ads. Separating the path into pieces — device → router → modem → ISP DNS — and checking what DNS each hop actually uses is the key to finding out why DNS keeps switching from your preferred servers to automatic or ISP DNS.

How to check if DNS changes are from router, ISP, or device

To quickly narrow down a router keeps switching DNS automatically issue, start with a few tests:

• On a computer, run nslookup example.com or check ipconfig /all / nmcli to see which DNS server IP is actually used.
• Log in to the router and compare the WAN DNS addresses to the LAN/DHCP DNS addresses the router hands out to clients.
• See if an ISP modem/router in front of your own router is performing NAT or DNS proxying; if so, put it into bridge mode or disable DNS-related features.
• On devices that behave differently (for example, Android vs Windows), open their network adapter or Wi-Fi settings and verify whether they have a manual DNS override or are set to automatic.

If the router and modem both show the same ISP DNS but you’ve configured custom DNS, focus on router WAN settings and ISP overrides. If only one device shows a different DNS, the problem is local to that device’s network settings or VPN/antivirus software.

Router keeps switching DNS automatically — quick troubleshooting tips

Confirm where DNS is set, then lock it down on the router and devices.

Fast path: check which DNS server your devices are using → log in to the router and disable “Get DNS automatically from ISP” → enter reliable DNS servers on the WAN and LAN/DHCP pages → put any ISP router into bridge mode if it’s overriding DNS → clean up device-side DNS settings in Windows, macOS, Android, and iOS so they don’t point to old ISP DNS. Keeping router firmware updated and turning off unnecessary remote management helps prevent DNS hijacking and random DNS changes in the future.

Disclaimer: This information is AI-generated and intended for general guidance only. For advice specific to your router model, firmware version, and ISP DNS policies, please consult a verified expert on Whizz-Tech before making changes.


Getting Started Is Easy

Ask for help, 24/7

Members enjoy round-the-clock access to 12,000+ verified Experts for router keeps switching DNS automatically, DNS keeps resetting to ISP, slow DNS lookups, and more.

Expert will respond in minutes

We match you with a networking specialist who knows DNS, DHCP, routers, modems, and ISP DNS policies for all major brands (Netgear, TP-Link, ASUS, Linksys and more).

Save time & money

Stop guessing why your router DNS keeps changing by itself and fighting random redirects. Get a clear step-by-step DNS fix in chat and get back to a fast, stable internet connection.

FAQ

Why does my router keep switching DNS automatically?

Most of the time a router keeps switching DNS automatically because it is set to obtain DNS from the ISP whenever the WAN reconnects, or because an ISP modem/router in front of it overrides DNS using remote management or DNS proxy features. In other cases, outdated firmware or weak admin passwords let a DNS hijacker change the router’s DNS to different servers without your knowledge.

How do I stop my router from changing DNS back to ISP servers?

Log in to the router and turn off options like “Get DNS automatically” or “Use WAN DNS”. Manually enter your preferred DNS servers on both the WAN and LAN/DHCP pages, then apply and reboot. If you have an ISP modem/router, put it in bridge mode or disable DNS proxy so it stops overriding your settings. Finally, secure the router with a strong admin password and up-to-date firmware so DNS settings can’t be changed remotely.

How can I tell if my DNS has been hijacked?

Signs of DNS hijacking include DNS settings that keep changing to unknown IP addresses, login pages or search results that don’t look normal, and extra ads or redirects on otherwise legitimate sites. Check the DNS server IPs shown in the router status page and on your devices (for example with ipconfig /all or nslookup). If they don’t match your ISP or well-known providers like Google/Cloudflare, reset the router, update firmware, set a strong admin password, and run a security scan on your devices.

Should I set DNS on the router or on each device?

For most homes, it’s easiest to set DNS on the router so all devices automatically use the same servers via DHCP. However, if your router keeps changing DNS back to ISP or you can’t fully control the router (for example on some ISP hardware), you can override DNS on individual devices instead — for example in Windows IPv4 settings or using Private DNS on Android — to ensure those devices always use your preferred DNS servers.

Sources

Matt Verified Icon
Matt ● replies in < 1 min
Technician Expert
⭐⭐⭐⭐⭐ Trusted by 27,000+ customers
Avatar
Alex · Expert's Assistant