To change DNS on your router, connect to your home network, open the router admin page at its IP address (usually 192.168.1.1 or 192.168.0.1), log in with the admin password, find the DNS fields under Internet, WAN or DHCP settings, switch from automatic to manual, enter two addresses from the same provider such as Cloudflare 1.1.1.1 and 1.0.0.1, save, and restart the router. Every device on your network then uses the new DNS automatically.
Key takeaways
- Changing DNS once on the router covers every device on your home network, with no setup per device.
- Use two addresses from the same provider, such as Cloudflare 1.1.1.1 and 1.0.0.1, or Google 8.8.8.8 and 8.8.4.4.
- Write down your old DNS settings before you change anything, so you can switch back in a minute.
Every time you type a website address, your network asks a DNS server to turn that name into an IP address. Your internet provider picks that server by default, but you can choose a faster, more private or filtering one instead — and changing it once on the router covers every device in your home.
What is DNS, and why change it on the router?
DNS, the Domain Name System, is the internet's phone book: it translates names such as example.com into IP addresses your devices can connect to. Your router normally uses your internet provider's DNS servers automatically, and most people never think about them.
Changing the router's DNS is worth doing for three reasons: speed, privacy and filtering. A fast public resolver such as Cloudflare's 1.1.1.1 can answer lookups sooner than a slow provider resolver, a privacy-focused resolver does not sell your browsing data, and a filtering resolver can block malware or adult content for the whole household.
Our guide to securing your Wi-Fi covers the other router settings worth checking at the same time.
The key advantage of the router is scope. Change DNS on one laptop and only that laptop benefits; change it on the router and every phone, laptop, smart TV, console and smart speaker uses the new resolver automatically.
Which DNS server should you use?
For most homes, Cloudflare 1.1.1.1 or Google 8.8.8.8 are the best starting points: both are free, fast and reliable, and neither blocks any content. If you want protection, use a filtering variant instead. Always enter the primary and secondary addresses from the same provider, so the second one answers when the first does not.
| Provider | Primary | Secondary | Best for |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Speed and privacy, nothing blocked |
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | Reliability, nothing blocked |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Blocking known malicious domains |
| Cloudflare for Families (malware) | 1.1.1.2 | 1.0.0.2 | Blocking malware |
| Cloudflare for Families (malware + adult) | 1.1.1.3 | 1.0.0.3 | Homes with children |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Filtering with an account |
Cloudflare publishes all of its addresses, including IPv6, on its official 1.1.1.1 page, and Google publishes its addresses in its public DNS documentation. Use the provider's own page rather than copying an old list from an unverified site.
How do I change DNS on my router?
Open the router admin page, find the DNS fields in its internet or WAN settings, switch from automatic to manual, enter two addresses from the same provider, save, and restart the router. The whole job takes about five minutes, and you only need the router admin login, as the step-by-step DNS change guide also shows.
- Connect to your router. Join your home Wi-Fi or plug a laptop into the router with an Ethernet cable. Do not make the change over a mobile connection.
- Write down the current DNS settings. You will need them if the new resolver causes a problem, so take a screenshot or note the values first.
- Open the router login page. Type the router's address into a browser address bar, usually 192.168.1.1, 192.168.0.1 or 10.0.0.1, and log in with the admin username and password, often printed on a label on the router.
- Find the DNS fields. Look under Internet, WAN or Network settings, sometimes under an Advanced section. On some routers they are in the LAN or DHCP settings instead.
- Switch to manual DNS. Choose the option labelled "Use the following DNS addresses", "Use these DNS servers" or "Manual", and enter the primary and secondary addresses exactly, with the dots and no spaces.
- Save, then restart the router so its own DNS cache is cleared and every device picks up the change.
If you cannot find the router's address, check the label on the router, or look at your computer's default gateway. On Windows, run ipconfig in a terminal; on a Mac, check the router address in System Settings under your network connection.
Where is the DNS setting on my router brand?
Router makers put the DNS setting in different menus, and the exact labels vary by model and firmware. The table below covers the most common locations; if yours is not listed, search the manual for "DNS" or "static DNS".
| Router brand | Where to find the DNS setting |
|---|---|
| TP-Link | Advanced > Network > Internet > Advanced > Use the following DNS addresses > Save, then reboot |
| Netgear | Basic > Internet > Use These DNS Servers > Apply |
| ASUS | Advanced Settings > WAN > Internet Connection > WAN DNS Setting > Manual > Apply |
| Linksys | Connectivity > Internet Settings > Edit > Static DNS > Apply |
| Ubiquiti UniFi | Settings > Networks or Internet > WAN > DNS Server: Manual > Apply |
| D-Link | Setup > Internet > Manual Internet Connection Setup > Primary and Secondary DNS |
| Provider-supplied routers | Often locked or hidden; change DNS on each device instead |
On TP-Link DSL modem routers, the setting is instead under Advanced > Network > LAN Settings. On older ASUS firmware, the option reads "Connect to DNS server automatically: No". If the field is greyed out, your provider may have locked it.
How do I check the new DNS is working?
After saving and restarting the router, check from a connected device that the new resolver is answering. The simplest check is to browse a few websites: if they load normally, the change took effect, and if nothing loads, switch back to your old settings.
- Run a DNS lookup: use our free DNS lookup tool to confirm domains resolve correctly from your connection.
- Check your IP and resolver: a DNS leak test shows which resolver your queries reach.
- Test on a phone: turn Wi-Fi off and on again so the phone picks up the new settings, then browse.
- Clear the cache if pages look stale: on Windows, run
ipconfig /flushdnsin a terminal.
You can also check what your connection currently reports with our what is my IP tool before and after the change.
What if my router locks the DNS setting?
Some internet providers lock the DNS setting on the router they supply, or hide it behind a simplified app with no manual option. This is common with provider-supplied routers, and it is not a fault with your connection.
In that case you have three options. First, change DNS on each device instead: on Windows 11, go to Settings > Network & internet > Wi-Fi > your connection's properties > DNS server assignment > Edit > Manual. Second, ask your provider for a router with full admin access, or for the admin password. Third, put the provider router in bridge mode and connect your own router behind it, where you control every setting.
Changing DNS per device is more work, but it has one advantage: you can give different devices different DNS, for example filtering DNS on a child's tablet and unfiltered DNS on your own laptop.
Should I also turn on encrypted DNS?
Encrypted DNS, called DNS over HTTPS (DoH) or DNS over TLS (DoT), wraps your DNS queries so nobody on the network between you and the resolver can read or change which sites you look up. Cloudflare, Google and Quad9 all support it, and Windows, macOS and the major browsers can enable it in their network or privacy settings, as this DNS server guide explains.
Changing the router DNS and turning on encrypted DNS solve different problems. The router change picks which resolver answers; encrypted DNS stops others from snooping on the questions. For most homes, the router change is enough, and encrypted DNS is a useful extra on a laptop or phone used on public Wi-Fi. Check whether your router supports DoH or DoT in its settings; if it does not, enable it in your browser instead.
What mistakes should you avoid?
Most DNS problems after a change come from a typo or from changing the wrong setting. Enter the addresses exactly, with the dots and no spaces, and do not change the router's IP address or DHCP range by accident.
- Typing the address wrong: 1.1.1.1 is not 1.1.1.0, and one wrong digit breaks lookups.
- Mixing providers without a plan: two addresses from different providers can behave inconsistently; keep both from one provider unless you have a reason.
- Forgetting the old settings: without a note or screenshot, switching back takes a call to your provider.
- Changing DNS on the wrong device: make sure you are logged into the router, not the modem or a Wi-Fi extender.
- Using an unknown resolver: a malicious DNS server can redirect you to fake sites, so stick to well-known providers.
The bottom line
Changing DNS on your router takes about five minutes, covers every device in your home, and is easy to reverse. Start with Cloudflare 1.1.1.1 and 1.0.0.1, or Google 8.8.8.8 and 8.8.4.4, and switch to a filtering variant if you want malware or adult-content blocking for the household.
Write down your old settings first, save, restart the router, and verify with a quick lookup. You can check the result with our free DNS lookup tool.
Frequently asked questions
What DNS should I use on my router?
For most homes, Cloudflare 1.1.1.1 and 1.0.0.1 or Google 8.8.8.8 and 8.8.4.4 are the best starting points. Cloudflare is built for speed and privacy, Google for reliability. For blocking malware, use Cloudflare for Families at 1.1.1.2 and 1.0.0.2, or 1.1.1.3 and 1.0.0.3 to also block adult content.
Is it safe to change DNS on my router?
Yes, if you use a well-known public resolver such as Cloudflare, Google or Quad9. The change is reversible: write down your old settings first, and you can switch back at any time. Avoid DNS addresses from random lists online, since a malicious resolver can redirect your traffic.
Will changing DNS make my internet faster?
It can make websites feel faster to start loading, because a faster resolver answers lookups sooner. It does not increase your download speed, which is set by your broadband plan. The difference is usually small, measured in milliseconds per lookup.
Why can't I change DNS on my router?
Some internet providers lock the DNS setting on the router they supply, or hide it in a simplified app. In that case, change DNS on each device instead, in its network settings, or ask your provider for a router with full admin access. You can also put the provider router in bridge mode and use your own router behind it.
Do I need to change DNS on every device too?
No. Once the router uses the new DNS, every device that gets its network settings from the router uses it automatically. You only need per-device settings if the router is locked, or if one device needs different DNS from the rest of the home.
How do I know my new DNS is working?
After saving and restarting the router, visit a DNS leak test site or run a lookup from a connected computer and check which resolver answers. You can also simply browse a few sites: if they load normally, the change took effect. If nothing loads, switch back to your old settings.
Sources
The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.
Checked against router setup guides and Cloudflare and Google public DNS documentation.
How we write and fact-check →