You change DNS on a router by logging into its admin panel at its local IP address, finding the DNS field under the WAN or internet settings, and entering two server addresses — typically one primary and one secondary. The change takes effect for every device on the network within about 30 seconds of saving, and no device needs to be touched individually. The one condition that trips people up: some ISP-supplied gateways hide the DNS fields entirely, in which case you change DNS per device instead or put the ISP box into bridge mode.

What You Need Before Touching the Router's DNS Fields

You need three pieces of information before you open a browser: the router's admin address, its admin username and password, and the two DNS server addresses you intend to use. The admin address is often printed on a sticker on the bottom or back of the router, along with the default login. Common defaults are 192.168.1.1 for Netgear, 192.168.0.1 for D-Link, and 192.168.1.254 for many BT and EE home hubs in the UK.

If the sticker is gone or the password was changed and forgotten, find the default gateway from a connected computer. On Windows, open Command Prompt and type ipconfig, then read the "Default Gateway" line. On macOS, open System Settings, go to Network, select the active connection, then Details, then TCP/IP, and read the "Router" field. On most Linux desktops, ip route | grep default returns the same address.

Have the DNS addresses written down rather than copied from a browser tab you'll close mid-process. You'll need to type them exactly, and a transposed digit is the most common reason a DNS change appears to "not work." Public resolver addresses are short enough to memorize in pairs.

If you're on a managed router — a landlord's building network, a university hall, or a company-issued gateway — stop here and check with whoever administers it. Changing WAN DNS on equipment you don't own can break captive portals or internal name resolution, and it may violate the terms you agreed to.

Log In to the Router's Admin Panel Using the Gateway Address

Open any browser on a device connected to the router — Wi-Fi or Ethernet both work — and type the gateway address into the address bar, including the http:// prefix if the browser tries to search instead. You'll get a login prompt, sometimes a plain browser dialog and sometimes a branded page with a password field. Enter the admin credentials.

Router login screens vary more than people expect. TP-Link's Archer series uses a single password field set at first setup. ASUS routers use a username of admin plus a password. Linksys Smart Wi-Fi devices ask for an email address and password if the owner created an account. Older Netgear firmware uses admin / password until changed. None of these are universal — treat the sticker as authoritative over any list you find online.

A wrong password after three attempts usually triggers a lockout of 1–5 minutes on modern firmware, so slow down rather than hammering the form. If you genuinely don't have the credentials, the fallback is a factory reset via the recessed pinhole button held for 10–15 seconds, which wipes every setting including your Wi-Fi name and password. Budget 15–20 minutes to rebuild the configuration after a reset.

Watch for a browser warning that the connection "is not private." That's expected on a local admin page with a self-signed certificate. Proceed only if you typed the gateway address yourself and the page is clearly the router's own interface.

Find the DNS Fields: WAN, Internet, or ISP Settings Depending on Brand

The DNS entry fields live in different places depending on firmware, and this is where most guides wave their hands. The table below maps the path for common consumer brands as their standard firmware presents it. Firmware revisions shift menu labels, so treat the path as a strong starting point and the field names as the reliable signal.

Brand Menu path Field label Connection type required
TP-Link (Archer) Advanced → Network → Internet "Use These DNS Servers" radio button Dynamic IP or Static IP
ASUS (ASUSWRT) WAN → Internet Connection "Connect to DNS Server automatically" set to No Any WAN type
Netgear (Nighthawk) Internet Setup → Domain Name Server (DNS) Address "Use These DNS Servers" Any WAN type
D-Link (DIR series) Setup → Internet Setup → Manual Internet Connection Setup "Primary DNS Address" / "Secondary DNS Address" Manual setup mode
Linksys (Smart Wi-Fi) Connectivity → Local Network → DNS "Static DNS 1" / "Static DNS 2" Any WAN type

Two patterns cover nearly every case. On routers with a toggle labeled "Connect to DNS Server automatically" or "Get Dynamically from ISP," switch it off and the address fields appear. On routers without that toggle, look for a radio button offering "Use These DNS Servers" next to a default of "Get Automatically from ISP."

A specific failure case worth knowing: on some TP-Link Archer firmware, the DNS fields are greyed out and uneditable when the WAN connection type is set to "PPPoE." Switching the connection type breaks your internet, so don't. In that situation, check the Advanced → Network → DHCP Server page for a separate DNS setting that applies to LAN clients, or fall back to per-device configuration.

Enter Primary and Secondary DNS Addresses and Save

Type your primary resolver address in the first field and the secondary in the second. Then save. On most firmware the save button is labeled "Save" at the bottom of the page; on ASUS it's "Apply"; on Netgear it's "Apply." The router will often reboot its WAN interface, which drops internet for 20–60 seconds — that's normal and not a sign you broke something.

These are the addresses people most often want to enter, with the operators named:

Cloudflare: 1.1.1.1 primary, 1.0.0.1 secondary. Also offers 1.1.1.2 and 1.0.0.2, which block malware domains. Google Public DNS: 8.8.8.8 primary, 8.8.4.4 secondary. Quad9: 9.9.9.9 primary, 149.112.112.112 secondary. Blocks known malicious domains by default. OpenDNS: 208.67.222.222 primary, 208.67.220.220 secondary.

If your router has separate IPv6 DNS fields — usually on the same page or under an IPv6 tab — leave them alone unless you have IPv6 resolver addresses ready. Half-configured IPv6 DNS is a known cause of slow page loads on dual-stack connections, because the router hands out working IPv4 resolvers and broken IPv6 ones simultaneously.

After saving, reconnect one device to the Wi-Fi to force a fresh DHCP lease. Existing connections may hold cached settings for several minutes.

Verify the Change Actually Took Effect From a Client Device

Don't trust the router's own status page alone — confirm from a client. On Windows, open Command Prompt and run nslookup example.com. The output names the server that answered, and it should show your new resolver's address. On macOS or Linux, the same nslookup command works, or dig example.com prints a "SERVER:" line with the address.

If the client still reports the old DNS server, the device is holding a cached lease. On Windows, ipconfig /flushdns clears the resolver cache; a full release-and-renew with ipconfig /release then ipconfig /renew forces a new lease from the router. On a phone, toggling Wi-Fi off and on is usually enough, though Android and iOS both keep their own DNS caches that clear within a few minutes.

One timing detail that confuses people: the router's DNS setting only reaches devices when they next request a DHCP lease. A laptop with a 24-hour lease won't pick up the change until it renews or reconnects. If you need the change to apply immediately across a household, reboot the router — clients re-lease on reconnect.

Check the router's WAN status page as a second signal. Most firmware displays the "DNS Servers" it's currently using on the status or dashboard screen, and those two addresses should match what you entered.

Why Your ISP's Gateway May Not Let You Change DNS at All

ISP-supplied gateways — the combined modem-router boxes from cable and fiber providers — frequently lock the DNS fields, either hiding them, greying them out, or overwriting them on each reconnect. This is a real limitation, not user error, and it's the single biggest reason this task fails. The ISP controls the firmware and can push updates that remove or relocate settings without notice.

The standard workaround is bridge mode. You ask the ISP (or configure it yourself if the gateway allows) to put the box into bridge mode, which turns off its routing and hands the public connection to a router you own. Your router then holds the WAN connection and its DNS fields work normally. Bridge mode typically requires a phone call to the ISP for cable gateways, and it disables the gateway's Wi-Fi, so you need your own router and access point ready first.

A lighter option is per-device DNS. You lose the central-management benefit — every phone, laptop, TV, and smart speaker needs configuring separately — and devices like game consoles and streaming sticks often don't expose a DNS setting at all. That's the trade-off: bridge mode is more work up front and cleaner long term; per-device changes are quick but partial.

If you rent the gateway, ask the ISP whether bridge mode affects your support terms before switching. Some providers won't troubleshoot anything behind a customer-owned router.

Set a Static IP First or Your DNS Change Will Vanish on Reboot

On routers where the WAN connection type is "Dynamic IP," some firmware discards manually entered DNS addresses when the lease renews or the router reboots. The fix is to switch the WAN type to "Static IP" and enter the IP address, subnet mask, gateway, and DNS that the ISP assigned — information your ISP provides, and which you should confirm with them rather than guess. Getting this wrong takes you offline until you revert.

The safer first move is to note down the current WAN settings before changing anything. Screenshot the status page showing the current IP address, subnet mask, default gateway, and DNS. If the DNS change doesn't survive a reboot, you have the numbers to restore the previous state in under a minute.

This static-versus-dynamic quirk is firmware-specific and inconsistent across brands, which is why some users report DNS changes "sticking" and others don't. Test it deliberately: after saving your DNS, reboot the router from its admin panel, wait for it to come back, and re-check the WAN status page. If the addresses reverted, you know which situation you're in.

Reserve the static address outside your router's DHCP pool if your ISP assigns addresses that way — a conflict between the router's WAN address and a device on the LAN causes intermittent, hard-to-diagnose outages.

Roll Back in Two Minutes If Pages Stop Loading

A bad DNS entry usually looks like this: Wi-Fi connects fine, the router's admin page loads, but every website times out. That's name resolution failing while the network itself works. Don't factory reset — just log back into the admin panel and either re-enter the correct addresses or switch the DNS setting back to automatic.

The rollback path differs by firmware. On routers with the "Connect to DNS Server automatically" toggle, flip it back on and save. On routers with the radio-button style, select "Get Automatically from ISP." Both restore the ISP's resolvers, which will work even if they're not the fastest option available.

If the admin page itself won't load, you may have changed the router's LAN IP by accident while editing WAN settings. Connect by Ethernet, check the default gateway again with ipconfig, and use whatever address appears. If nothing responds, the pinhole reset is the last resort, and it costs you the Wi-Fi configuration.

Keep a written note of your original DNS values — even "automatic" — taped inside a cabinet or saved in a password manager. The two-minute recovery depends entirely on knowing what the previous state was.

Router-Level DNS Compared With Per-Device DNS

The router approach applies one setting to every device that joins the network, including guests and devices with no DNS menu of their own. Per-device configuration gives you granular control — different resolvers for different machines — but you'll redo it on every new device and every operating system update that resets network settings.

Dimension Router-level DNS Per-device DNS
Devices covered Every device on the network, automatically Only devices you configure manually
Setup time 2–5 minutes, once 3–5 minutes per device
Works on locked ISP gateways No Yes
Covers consoles and smart TVs Yes Often no — many lack the setting
Survives router replacement No — redo on new router Yes — settings live on the device
Granular per-device control None Full

Choose router-level if you control the gateway and want the whole household covered in one pass. Choose per-device if the gateway is locked, if you're on someone else's network, or if you only want filtered DNS on the kids' devices and unfiltered elsewhere. The two aren't exclusive — router-level for the default, per-device overrides where you need them.

Do DNS Changes Improve Speed, Privacy, and Filtering?

A DNS change does not increase your download speed. It can shorten the delay before a connection starts, because your device gets the server's address faster, and that shows up as snappier page starts on sites you haven't visited recently. Once the connection is open, throughput depends on your ISP link and Wi-Fi, not the resolver.

Privacy depends on the operator. Cloudflare states that it doesn't sell query data and keeps logs for a limited period; Google publishes its retention terms for Public DNS; Quad9 positions itself around malware blocking rather than logging minimalism. Read the current policy on each operator's site, because terms change and this article can't track them.

Filtering is the most tangible benefit. Quad9 blocks known malicious domains at the resolver, and Cloudflare's 1.1.1.2 family blocks malware. OpenDNS offers content filtering on its free Home plan with a account-based dashboard. These block at the name-resolution layer, so they work on every device using the router — including ones with no filtering software.

The honest limit: DNS filtering only blocks domains, not content within a site, and it's trivially bypassed by anyone who knows how to change their device's DNS. Treat it as a speed bump for accidental clicks, not a parental-control system.

FAQ

Does changing router DNS affect my Wi-Fi password or network name?

No. DNS settings live in the WAN configuration, entirely separate from the wireless settings, so your Wi-Fi name and password stay untouched. You also don't need to reconnect every device manually — they'll re-lease the new DNS automatically as their DHCP leases renew, typically within 24 hours or immediately after a router reboot. If you factory reset the router during troubleshooting, that's the one scenario where Wi-Fi credentials get wiped, and that's the reset's doing, not the DNS change.

Why do some sites still load after I enter a wrong DNS address?

Because the operating system caches DNS answers, and a device that resolved a domain before your change will keep using the cached address until the record's time-to-live expires — commonly between 300 seconds and 24 hours depending on the site. A second factor is that many routers fall back to the ISP's resolvers if the configured ones stop responding, so a typo in one field may never surface. Run nslookup on a domain you've never visited to test the new resolver honestly.

Can I use DNS to block ads across every device in the house?

Partly. Ad-blocking DNS services work at the domain level, so they block requests to known ad-server hostnames — effective against many display ads, ineffective against ads served from the same domain as the content. Expect roughly partial coverage rather than a clean page, and expect some sites to break when their tracking or ad domains fail to load. It's a reasonable supplement to a browser extension, not a replacement, and it won't touch ads inside apps that use their own resolvers.

What happens to my DNS setting if the ISP pushes a firmware update?

On ISP-owned gateways, a firmware update can reset WAN settings to the provider's defaults, silently reverting your DNS change. There's no notification in most cases — you find out when filtering stops working or a status page shows the old addresses. Re-check the WAN status page after any provider-announced maintenance, and if reverts become frequent, bridge mode with your own router is the durable fix.

Is a paid DNS service worth it over a free one?

For a household, usually not. Free resolvers from Cloudflare, Google, and Quad9 cover the common needs — speed, basic privacy posture, malware blocking — at no cost. Paid tiers sell features like detailed query logging, custom blocklists, and per-user policies, which matter to small businesses and schools more than homes. Try a free resolver first; if you can't name the specific feature you're missing, you don't need the paid plan.

Do I need to change DNS on my phone and laptop too after doing the router?

Only if you want those devices to override the router's setting. Devices set to "automatic" inherit whatever the router hands out via DHCP, so the router change covers them. A phone with a manually configured DNS — common when someone set up a private DNS feature on Android or a DNS profile on iOS — keeps its own setting and ignores the router. Check each device's network settings if behavior seems inconsistent.

Will changing DNS break my smart home devices or streaming apps?

Rarely, but it can. Some smart-home hubs and streaming devices rely on the ISP's resolver to reach vendor-specific domains, and a filtering resolver that blocks tracking domains can break device setup or firmware checks. If a device misbehaves after the change, add its vendor's domains to an allowlist where your resolver supports one, or give that device its own DNS setting pointing at the ISP's resolvers.