Why Change DNS on Your Router?

Configuring DNS on your router rather than on individual devices is the most efficient approach for a home network. Instead of updating settings on every phone, laptop, tablet, and smart TV separately, one change on the router applies to every device that connects to your Wi-Fi automatically.

Common reasons to change your router's DNS include:

  • Faster DNS resolution with a high-performance public resolver
  • Improved privacy by moving away from your ISP's default DNS
  • Network-wide malware and phishing domain blocking
  • Parental controls via filtering DNS providers
  • Using a self-hosted ad blocker like Pi-hole or AdGuard Home

Before You Start

You'll need:

  • Access to your router's admin panel (usually via a web browser)
  • Your router's local IP address (commonly 192.168.1.1 or 192.168.0.1)
  • The admin username and password (check the label on your router if you haven't changed it)
  • The DNS server addresses you want to use

Popular Public DNS Servers

ProviderPrimary DNSSecondary DNSFocus
Cloudflare1.1.1.11.0.0.1Speed & privacy
Google8.8.8.88.8.4.4Reliability
Quad99.9.9.9149.112.112.112Security & malware blocking
OpenDNS208.67.222.222208.67.220.220Filtering & family safety
Cloudflare (family)1.1.1.31.0.0.3Ad & malware blocking

Step-by-Step: Changing DNS on Common Routers

Step 1: Access Your Router Admin Panel

  1. Open a web browser on a device connected to your home network.
  2. Type your router's IP address into the address bar (try 192.168.1.1 or 192.168.0.1). You can find your router's IP by checking your device's network settings under "Default Gateway."
  3. Enter your admin username and password.

Step 2: Find the DNS Settings

The location of DNS settings varies by router brand. Here's where to look:

  • TP-Link: Advanced → Network → DHCP Server → DNS settings
  • Netgear: Advanced → Setup → Internet Setup → Domain Name Server (DNS) Address
  • ASUS: WAN → Internet Connection → WAN DNS Setting
  • Linksys: Connectivity → Local Network → DHCP Server → Static DNS 1/2
  • D-Link: Settings → Internet → DNS Settings

If you can't find it, search for "DNS" in your router's search bar (if it has one) or consult your router's manual.

Step 3: Enter Your DNS Addresses

  1. Look for fields labeled Primary DNS (or DNS 1) and Secondary DNS (or DNS 2).
  2. Enter your chosen DNS server addresses. For example, for Cloudflare: Primary 1.1.1.1, Secondary 1.0.0.1.
  3. Some routers have a separate option to use a custom DNS vs. getting one automatically from your ISP — make sure to select "Use the following DNS server addresses" or equivalent.

Step 4: Save and Apply

  1. Click Save or Apply.
  2. Your router may reboot, or it may apply the settings immediately.
  3. Reconnect your devices if necessary — they should now use the new DNS automatically via DHCP.

Step 5: Verify the Change

To confirm the new DNS is working, visit a DNS leak test site (search for "DNS leak test") and check that the resolver shown matches your chosen provider, not your ISP.

Troubleshooting Tips

  • Website not loading? Double-check you entered the DNS addresses correctly — a typo can break all DNS resolution.
  • Still seeing old DNS? Flush your device's DNS cache: on Windows, run ipconfig /flushdns in Command Prompt; on macOS, run sudo dscacheutil -flushcache.
  • Can't access router admin panel? Make sure you're on your home Wi-Fi, not mobile data, and try different browsers.

Once configured, your entire household benefits from faster, more private DNS resolution without any per-device setup — a small change with a meaningful impact.