How to change DNS on router in the Internet or WAN settings

How to Change DNS on Router for Faster and Safer Browsing

Do websites take a second or two to start loading, or does your internet provider block or redirect some pages? A slow or unreliable DNS server is often the cause. When you change DNS on router settings, every phone, laptop, smart TV and console on your network uses the new DNS automatically, so you only have to do it once.

This guide explains what DNS is, lists the best DNS servers you can use for free, and shows how to change DNS on router models from TP-Link, NETGEAR, ASUS, Linksys, D-Link and others. It takes about five minutes, and all you need is your router admin login.

What Is DNS and Why Change It?

DNS (Domain Name System) works like the contact list of the internet. When you type a website name such as google.com, a DNS server looks up the matching IP address so your browser knows where to connect. Every link you open and every app you use starts with a DNS lookup.

When a device joins your network, the router gives it a primary and a secondary DNS address along with its IP address. That is why a single change on the router is enough to update the whole network.

By default, your router gets its DNS servers from your internet provider. They work, but they are not always the fastest, most reliable or most private choice. Common reasons to change DNS on router settings include:

  • Faster lookups: public DNS services often respond more quickly, so pages start loading sooner.
  • Better reliability: if your provider’s DNS goes down, websites stop opening even though the internet connection is fine.
  • Security: some DNS services block known malware and phishing websites.
  • Family filtering: family DNS servers block adult content on every device in the home.
  • Privacy: many public DNS services have clear, strict privacy policies about what they log.

Keep in mind that a new DNS server does not raise your internet plan speed. Downloads and streaming will not get faster, but browsing can feel quicker. If your connection is slow because of a poor wireless connection, see how to boost WiFi signal and speed instead.

Best DNS Servers to Use (Free)

These public DNS services are free, reliable and work with any router. Use the primary and secondary addresses from the same row:

DNS providerPrimary DNSSecondary DNSBest for
Cloudflare1.1.1.11.0.0.1Speed and privacy
Cloudflare for Families (malware)1.1.1.21.0.0.2Blocking malware
Cloudflare for Families (malware and adult content)1.1.1.31.0.0.3Homes with children
Google Public DNS8.8.8.88.8.4.4Reliability
Quad99.9.9.9149.112.112.112Security and malware blocking
OpenDNS Home208.67.222.222208.67.220.220Custom filtering with a free account
OpenDNS FamilyShield208.67.222.123208.67.220.123Ready-made adult content blocking

Cloudflare publishes all of its addresses, including IPv6, on its official 1.1.1.1 IP address page. For most homes, the best DNS servers are Cloudflare 1.1.1.1 or Google 8.8.8.8. If you want protection from malware, choose Quad9 or Cloudflare 1.1.1.2.

You can mix providers, for example Cloudflare 1.1.1.1 as primary and Google 8.8.8.8 as secondary, so a backup is always ready. The exception is family filtering: use both addresses from the same filtering service, otherwise devices can fall back to the unfiltered server and skip the filter.

Quick Steps to Change DNS on Router

  1. Connect to your router by WiFi or Ethernet cable.
  2. Open a browser and go to your router IP address, such as 192.168.1.1.
  3. Log in with the router admin username and password.
  4. Open the Internet, WAN or DHCP settings and find the DNS fields.
  5. Turn off automatic DNS, enter the new primary and secondary DNS, then click Save or Apply.

Before You Start

A few minutes of preparation makes the change safe and easy to undo:

  • Write down or take a screenshot of your current router DNS settings so you can switch back if needed.
  • Find your router admin login on the router label or in our list of default router logins.
  • Use a computer if you can, because router menus are easier to read on a bigger screen.
  • If your provider supplied the router, the DNS option may be locked. In that case you can change DNS on each device instead.
  • Pick the DNS servers you want to use from the table above.

How to Change DNS on Router (Step-by-Step)

Step 1: Connect to Your Router

Join your home WiFi or plug a laptop into the router with an Ethernet cable. You must be connected to the router’s own network to open its admin page, so turn off any VPN for now.

Step 2: Open the Router Login Page

Open Chrome, Edge, Safari or Firefox and type the router IP address in the address bar, not the search box. Common addresses are 192.168.1.1, 192.168.0.1 and 10.0.0.1. Mobile routers and fiber modems often use 192.168.8.1 or 192.168.100.1. If you do not know yours, here is how to find router IP address details on any device.

Open the router login page in a browser to change DNS on router
Step 2: type the router IP address in the browser address bar

Step 3: Log In to the Admin Panel

Enter the admin username and password. Many older routers use admin as the username, while newer models usually have a unique password printed on the label. If the page will not load, try our 192.168.1.1 not working fixes. If you forgot the password, you may need to reset the router to factory settings.

Enter the router admin username and password before you change router DNS settings
Step 3: sign in with the router admin login details

Step 4: Find the DNS Settings

Router makers place the router DNS settings in different menus. They are usually in one of these places:

  • Internet, WAN or Internet Connection settings (the most common place)
  • LAN or DHCP Server settings
  • Advanced, Network or Setup menus

Look for labels such as DNS Server, Primary DNS, Secondary DNS, Static DNS or Use These DNS Servers. If the fields are greyed out, look for an option such as Get DNS automatically or Connect to DNS Server automatically and turn it off.

Router dashboard showing where to open the Internet and WAN settings to change DNS
Step 4: open the Internet, WAN or DHCP section of the router

Step 5: Enter the New DNS Servers and Save

Type the primary and secondary DNS addresses, for example 1.1.1.1 and 8.8.8.8, exactly as shown with the dots and no spaces. Click Save or Apply. The internet may drop for a few seconds while the router applies the change. Restart the router afterwards so every device picks up the new DNS.

Tip: some routers need a restart before the new DNS takes effect, while others apply it right away. If you are not sure, restart anyway. It only takes a minute or two and makes sure every device uses the new servers.

Where to Change DNS by Router Brand

Menu names differ between brands and even between models of the same brand, but you will usually find the DNS fields here:

Router brandWhere to find DNS settings (varies by model)
TP-LinkAdvanced > Network > Internet, then select Use the following DNS addresses under Advanced Settings. On TP-Link DSL modem routers, go to Advanced > Network > LAN Settings.
NETGEARBASIC > Internet (or Settings > Internet on newer models), then select Use These DNS Servers and enter the Primary DNS and Secondary DNS.
ASUSWAN > Internet Connection > WAN DNS Setting. On newer firmware, click Assign and choose a DNS server or Manual Setting. On older firmware, set Connect to DNS Server automatically to No.
LinksysConnectivity > Local Network > DHCP Server, then enter Static DNS 1 and 2. On older models, go to Setup > Basic Setup and fill in Static DNS.
D-LinkSettings > Internet > Advanced Settings on newer models, or Setup > Internet > Manual Internet Connection Setup on older ones.
Huawei and ZTEOften under LAN > DHCP Server or in the WAN settings. Some provider models hide or lock the DNS option.

ASUS explains both the newer and older firmware methods in its WAN DNS support article. Mesh systems such as TP-Link Deco, eero and Google Nest WiFi are managed in an app, so open the app and look under Advanced, Network settings or DNS. For default IP addresses and logins by brand, see our router brands page.

WAN DNS vs DHCP (LAN) DNS: Which One to Change?

Some routers have two places for DNS, and they work a little differently:

  • WAN or Internet DNS: the DNS servers the router itself uses. Your devices send their requests to the router, and the router forwards them to these servers. This is the setting most guides, including this one, refer to.
  • DHCP or LAN DNS: the DNS servers the router hands out to your devices. Devices then contact these servers directly instead of going through the router.

Either option works for most homes, and changing the WAN DNS is usually enough. If your provider locks the WAN DNS but allows changes in the DHCP server settings, use the DHCP option instead. After changing the DHCP DNS, reconnect your devices so they receive the new addresses.

Should You Add IPv6 DNS Too?

Many internet providers now use IPv6 alongside the older IPv4 addresses. If IPv6 is turned on in your router, it may have separate IPv6 DNS fields. If you only change the IPv4 DNS, some lookups can still go to your provider’s IPv6 DNS. To avoid that, enter matching IPv6 addresses from the same provider:

DNS providerIPv6 primaryIPv6 secondary
Cloudflare2606:4700:4700::11112606:4700:4700::1001
Google Public DNS2001:4860:4860::88882001:4860:4860::8844
Quad92620:fe::fe2620:fe::9

You will usually find these fields in the IPv6 section of the router settings. If your router has no IPv6 DNS option, the IPv4 change still works well for most homes.

How to Check That the New DNS Works

After you change DNS on router settings, restart the router and reconnect a device. Then:

  • Open a few websites and apps to make sure everything loads normally.
  • If you chose Cloudflare, visit 1.1.1.1/help in a browser. It shows whether your device is using 1.1.1.1.
  • Use a DNS leak test website to see which DNS servers answer your requests.

Do not worry if your phone or computer still lists the router IP address, such as 192.168.1.1, as its DNS server. Most routers act as a DNS relay and pass the requests on to the servers you entered.

Change DNS on Router vs on a Single Device

When you change DNS on router settings, every device on your network is covered at once, including smart TVs, game consoles and smart speakers that have no DNS option of their own. It is the easiest way to add security or family filtering to the whole home.

Changing DNS on a single phone or laptop only affects that device, but it follows the device to any network and works even when your provider locks the router. Android has a Private DNS option, and browsers such as Chrome, Edge and Firefox have a Secure DNS setting. These device and browser settings override the router, so check them if a family filter does not seem to work.

Pros and Cons of Changing Router DNS Settings

ProsCons
Covers every device on the network at onceSome provider routers lock the setting
Faster and more reliable lookups in many areasDoes not increase download or upload speed
Optional malware and adult content blockingSome provider features, such as their own parental controls, may rely on the provider DNS
Easy to undo at any timeA typo can stop websites from loading until it is fixed

DNS Change Not Working? Common Problems

Websites Stopped Loading

Check the addresses for typos, because a single wrong number breaks browsing. Enter them again, or switch back to automatic DNS to confirm the internet connection itself is working.

The DNS Option Is Greyed Out or Missing

Many provider routers lock the router DNS settings. Look under the LAN or DHCP settings, check for a firmware update, or set DNS on your devices instead. Another option is to connect your own router behind the provider’s equipment.

Devices Still Use the Old DNS

Restart the router, then turn WiFi off and on on each device so it gets fresh network settings. On Windows you can also open Command Prompt and run ipconfig /flushdns to clear the DNS cache.

Some Sites Load Slowly After the Change

The fastest DNS depends on where you live. Try Cloudflare, Google and Quad9 one at a time for a day or two and keep the one that feels quickest.

Some Apps or Provider Services Stopped Working

A few provider services, such as TV apps, email or account pages from your internet provider, may expect the provider’s own DNS. If something stops working after the change, switch back to automatic DNS to test. If that fixes it, keep the provider DNS or set the new DNS only on the devices that need it.

I Cannot Log In to the Router

Make sure you are connected to the router network and using the right IP address. If the login page does not open, see our router login guide. If the password is not accepted, check the default login on the router label or reset the router.

Frequently Asked Questions

Is it safe to change DNS on router settings?

Yes. Using a trusted public DNS such as Cloudflare, Google, Quad9 or OpenDNS is safe, and you can switch back to automatic DNS at any time.

Does changing DNS increase internet speed?

It can make websites start loading sooner, but it does not change your download or upload speed. Those depend on your internet plan and WiFi signal.

What are the best DNS servers for gaming?

DNS has almost no effect on in-game ping, because it is only used to find the game server when you connect. Pick a fast, reliable option such as Cloudflare 1.1.1.1 or Google 8.8.8.8.

Can I block adult websites with router DNS settings?

Yes. Enter a family DNS such as Cloudflare 1.1.1.3 and 1.0.0.3, or OpenDNS FamilyShield 208.67.222.123 and 208.67.220.123, on the router to filter every device at home.

Will changing DNS affect my WiFi name, password or devices?

No. Your WiFi name, password and connected devices stay the same. Devices may disconnect for a few seconds while the router restarts.

What is the difference between primary and secondary DNS?

The primary DNS is the main server your router asks first. The secondary DNS is a backup that is used if the primary server does not respond. Always fill in both fields so browsing keeps working if one server has a problem.

Do I need to change DNS on every device after changing it on the router?

No. Devices that get their settings automatically from the router use the new DNS after they reconnect. Only devices with DNS set manually, or with Private DNS or Secure DNS turned on, keep their own settings.

Can I change DNS on router settings from my phone?

Yes. Open the router login page in your phone browser, or use the router app if your router has one, then follow the same steps. The menus are the same, just smaller on the screen.

Which DNS is best for privacy?

Cloudflare 1.1.1.1 and Quad9 both focus on privacy and publish clear policies about what they log. Quad9 is run by a non-profit foundation based in Switzerland, while Cloudflare has its privacy practices checked by an independent auditor.

How do I switch back to my provider’s DNS?

Open the same DNS settings, choose Automatic, Get DNS from ISP or Connect to DNS Server automatically, then save and restart the router.

Final Words

It only takes a few minutes to change DNS on router settings: log in to the admin panel, open the Internet or WAN section, enter a trusted primary and secondary DNS server, and save. Every device on your network then benefits at once. While you are logged in, it is a good time to change router admin password and WiFi password settings too. For more help, visit our router login guide.

Similar Posts

One Comment

Leave a Reply

Your email address will not be published. Required fields are marked *