How to Change DNS on Your Router (Step-by-Step)
In this article
Changing your router's DNS (Domain Name System) settings can improve speed, reliability, and security by using a faster or more privacy-focused DNS provider like Google Public DNS, Cloudflare, or OpenDNS. This guide walks you through the process on most routers. You'll need your router's admin password — if you never changed it, it's often printed on a sticker on the router itself.
What You'll Need
- Access to your router's admin panel (via a web browser)
- Your router's admin username and password (default is often "admin" / "admin" or "admin" / "password")
- DNS server addresses you want to use (e.g., Google: 8.8.8.8 and 8.8.4.4, Cloudflare: 1.1.1.1 and 1.0.0.1)
- A device (phone, tablet, or computer) connected to your network
Step-by-Step
- Find your router's IP address. On Windows, open Command Prompt and type
ipconfig— look for "Default Gateway." On Mac, go to System Settings > Network, click your connection, and look for "Router." Common addresses are 192.168.1.1, 192.168.0.1, or 192.168.1.254. - Open the admin panel. Open a web browser and type your router's IP address into the address bar. Press Enter.
- Log in. Enter your admin username and password. If you don't know them, check the router's sticker or manual. If you've changed it and forgot, you may need to reset the router (see Troubleshooting).
- Find the DNS settings. The exact location varies by router brand, but common places are under Internet, WAN, Network Settings, or Advanced Setup. Look for a section labeled "DNS," "DNS Server," or "DNS Settings."
- Change from automatic to manual. By default, most routers use "Obtain DNS automatically" or "Use ISP DNS." Select the option to manually enter DNS servers — often labeled "Use the following DNS servers" or "Manual DNS."
- Enter the new DNS addresses. In the primary (or preferred) DNS field, enter the first address (e.g., 8.8.8.8). In the secondary (or alternate) field, enter the second (e.g., 8.8.4.4). If there's a third field, you can leave it blank or add another.
- Save your changes. Click Apply, Save, or OK. Some routers require a reboot to take effect — if prompted, confirm.
- Restart your devices. After saving, it's a good idea to restart your computer, phone, or other devices, or at least disconnect and reconnect to Wi-Fi, so they pick up the new DNS settings.
- Verify the change. To check if it worked, visit a site like whatismydnsserver.com or use a command line tool. On Windows, type
nslookup example.comand see which server responds. On Mac, usescutil --dns | grep nameserver.
Common Mistakes
- Typing the DNS address incorrectly. Double-check for typos — a single wrong digit can break internet access.
- Changing the wrong setting. Some routers have both a "DNS" section and a "DHCP" section. Make sure you're editing the DNS for the WAN (internet) connection, not the LAN (local network).
- Forgetting to save. If you navigate away without clicking Apply/Save, changes are lost.
- Not restarting devices. Even after saving, devices may keep using old DNS until they reconnect or reboot.
- Using the router's default admin password. If you never changed it, check the sticker — but also consider changing it after this for security.
Tips
- Choose a reputable DNS provider. Google (8.8.8.8, 8.8.4.4), Cloudflare (1.1.1.1, 1.0.0.1), and OpenDNS (208.67.222.222, 208.67.220.220) are all reliable and free.
- Write down your current DNS settings. Before changing, note what the old values were (or take a screenshot). This makes it easy to revert if needed.
- Test multiple providers. If one feels slow, try another. You can also use a tool like DNS Benchmark (on Windows) to compare speeds, but it's optional.
- Consider using a DNS service with parental controls. OpenDNS offers free filtering options that can block adult content.
- If you have a mesh system or separate modem and router, you may need to change DNS on both devices — the modem (if it has routing functions) and the router.
Troubleshooting
If you can't access the router admin panel: Make sure you're connected to the network (via Wi-Fi or Ethernet). Try a different browser or clear your cache. If the IP address isn't working, try the default gateway from your device's network settings. If you still can't get in, you may need to reset the router.
If you forgot your admin password: Most routers have a small reset button on the back or bottom. Press and hold it for 10-15 seconds with a paperclip until the lights blink. This resets the router to factory defaults, including the password. Warning: This will erase all your custom settings (Wi-Fi name, password, port forwards, etc.). You'll need to set them up again.
If the internet stops working after the change: Double-check the DNS addresses you entered. Try reverting to "Automatic" or re-entering the old DNS values. If that fixes it, you may have mistyped the new addresses. Also, try using a different DNS provider.
If some websites still load slowly: Your browser or operating system might have its own DNS cache. Flush it: on Windows, open Command Prompt as admin and type ipconfig /flushdns. On Mac, use sudo dscacheutil -flushcache. Then restart your browser.
If devices still use old DNS: Some devices (like smart TVs or IoT gadgets) may cache DNS aggressively. Restart the device or forget and reconnect to the Wi-Fi network. For a computer, you can also manually set DNS in the network adapter settings, but that's per-device.
Frequently Asked Questions
What is DNS and why would I change it?
DNS translates domain names (like example.com) into IP addresses. Changing it can make browsing faster, block malicious sites, or bypass certain ISP restrictions. It's safe and reversible.
Will changing DNS on my router affect all devices?
Yes, changing it at the router level applies to every device on your network that uses DHCP (most do). Devices with manually set DNS will override the router's setting.
Is it safe to use public DNS like Google or Cloudflare?
Yes, these are widely used, free, and reputable. They log some data but generally less than ISPs. For maximum privacy, you can use a DNS service that doesn't log, like Quad9 (9.9.9.9).
Can I change DNS on my router without a computer?
Yes, you can use a smartphone or tablet. Just open the browser and navigate to the router's IP address. The interface may be a bit small, but it works.
How do I know if my router supports custom DNS?
Most modern routers do. Look for the DNS section in the admin panel. If you can't find it, check the router's manual or manufacturer's website. Very old or ISP-locked routers may not allow it.
Will changing DNS speed up my internet?
It can reduce the time it takes to resolve domain names, which may make web browsing feel snappier, especially on first visits to sites. It won't increase your raw bandwidth or download speed.