Home
How to Change Your DNS Server on Windows, Mac, Mobile, and Routers
Changing your DNS (Domain Name System) server is one of the most effective and simplest ways to optimize your internet connection. While your Internet Service Provider (ISP) automatically assigns a DNS server, it is often not the fastest, most private, or most secure option available. By manually switching to a third-party provider like Cloudflare, Google, or Quad9, you can experience faster page load times, enhanced security against phishing, and improved privacy.
This comprehensive guide provides detailed, step-by-step instructions for changing DNS settings across every major operating system and router brand, alongside a technical breakdown of why this change matters.
Quick Reference: Top Public DNS Providers
If you are looking for the addresses to enter, here are the most reliable and fastest public DNS resolvers currently available.
| Provider | Primary IPv4 | Secondary IPv4 | Best For |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Speed and Privacy |
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | Reliability and Global Reach |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Security (Malware Blocking) |
| OpenDNS (Cisco) | 208.67.222.222 | 208.67.220.220 | Parental Controls |
| AdGuard DNS | 94.140.14.14 | 94.140.15.15 | Ad Blocking |
Understanding DNS and Why You Should Change It
The Domain Name System (DNS) acts as the phonebook of the internet. When you type a URL like example.com into your browser, your computer doesn't inherently know where that website is located. It asks a DNS server to translate that human-readable name into a machine-readable IP address (e.g., 192.0.2.1).
1. Speed Improvements
ISP-provided DNS servers can be slow and overburdened. High-performance resolvers like Cloudflare utilize massive global networks (Anycast) to ensure that the "lookup" happens at a server physically close to you, reducing latency and making the web feel snappier.
2. Privacy Protections
Many ISPs log your DNS queries, creating a trail of every website you visit. This data can be sold to advertisers or monitored. Providers like Cloudflare and Quad9 have strict no-logging policies or anonymize your data, preventing your ISP from tracking your browsing habits at the DNS level.
3. Security and Filtering
Standard DNS doesn't filter out threats. Third-party DNS servers often include "threat intelligence" feeds. For example, Quad9 blocks known malicious domains, preventing your device from connecting to phishing sites or malware command-and-control servers before the page even begins to load.
4. Bypassing Restrictions
Sometimes ISPs use DNS to block specific websites at the request of governments or copyright holders. Using an independent DNS server often bypasses these basic level blocks.
How to Change DNS Server on a Router (Network-Wide)
Changing the DNS on your router is the most efficient method because it automatically applies to every device connected to your Wi-Fi—smartphones, laptops, smart TVs, and IoT devices—without needing to configure them individually.
General Steps for Most Routers
- Access the Admin Interface: Open a web browser and type your router’s IP address. Common addresses include
192.168.1.1,192.168.0.1, or10.0.0.1. - Log In: Enter your admin username and password (usually found on a sticker on the router).
- Find DNS Settings: Look for menus labeled WAN, Internet, or DHCP.
- Enter Manual DNS: Change the setting from "Automatic" or "Get from ISP" to "Manual" or "Use these DNS Servers."
- Save and Reboot: Apply the changes and restart the router to ensure all devices renew their connection.
Brand-Specific Instructions
ASUS Routers
- Log in to the web interface (usually
router.asus.com). - In the left sidebar, under Advanced Settings, click on WAN.
- Select the Internet Connection tab.
- Scroll down to WAN DNS Setting.
- Set Connect to DNS Server automatically to No.
- Enter your chosen IPs in DNS Server 1 and DNS Server 2.
- Click Apply.
TP-Link Routers
- Log in (usually
tplinkwifi.net). - Go to Advanced > Network > Internet.
- If your connection type is Dynamic IP, click on Advanced.
- Select Use the following DNS Addresses.
- Enter the Primary and Secondary DNS.
- Click Save.
Netgear Routers
- Log in (usually
routerlogin.net). - Click on the Basic tab and select Internet.
- Under the Domain Name Server (DNS) Address section, select Use These DNS Servers.
- Enter the IPs in the Primary and Secondary fields.
- Click Apply.
FRITZ!Box (Common in Europe)
- Open
fritz.boxin your browser. - Navigate to Internet > Account Information.
- Select the DNS Server tab.
- Choose Use other DNSv4 servers.
- Enter the preferred and alternative DNS addresses.
- Click Apply.
How to Change DNS Server on Windows 11
Windows 11 has modernized its network settings, making it easier to manage DNS, including support for encrypted DNS (DNS over HTTPS).
- Open Settings by pressing
Win + I. - Navigate to Network & internet.
- Click on your active connection (either Wi-Fi or Ethernet) at the top.
- Scroll down to DNS server assignment and click Edit.
- Change the dropdown from Automatic (DHCP) to Manual.
- Toggle the IPv4 switch to On.
- Enter the Preferred DNS (e.g.,
1.1.1.1) and Alternate DNS (e.g.,1.0.0.1). - (Optional) For better security, change DNS over HTTPS connection to Encrypted only (DNS over HTTPS) if your provider supports it.
- Click Save.
How to Change DNS Server on Windows 10
Windows 10 retains the classic Control Panel method, which is often more reliable for troubleshooting.
- Open the Control Panel.
- Go to Network and Internet > Network and Sharing Center.
- Click Change adapter settings in the left pane.
- Right-click your active network adapter and select Properties.
- Select Internet Protocol Version 4 (TCP/IPv4) and click the Properties button.
- Select the radio button: Use the following DNS server addresses.
- Type in your Primary and Secondary DNS addresses.
- Check Validate settings upon exit and click OK.
How to Change DNS Server on macOS
Apple’s macOS makes DNS changes straightforward through System Settings.
- Click the Apple Menu and select System Settings (or System Preferences on older versions).
- Click Network in the sidebar.
- Select your active connection (Wi-Fi or Ethernet) and click Details... (or Advanced).
- Navigate to the DNS tab.
- Click the + (plus) button under the DNS Servers list.
- Type in the IPv4 address of your chosen DNS server. Repeat for the secondary address.
- Click OK, then click Apply to finalize.
How to Change DNS Server on Android
Android handles DNS in two ways: per Wi-Fi network or system-wide using the "Private DNS" feature (available on Android 9 and later).
Using Private DNS (Recommended)
This method works for both Wi-Fi and mobile data and uses DNS over TLS (DoT) for encryption.
- Open Settings.
- Go to Network & Internet (or Connections).
- Tap on Private DNS (it might be under "Advanced" or "More connection settings").
- Select Private DNS provider hostname.
- Enter the hostname of the provider:
- For Cloudflare:
one.one.one.oneor1dot1dot1dot1.cloudflare-dns.com - For Google:
dns.google - For Quad9:
dns.quad9.net
- For Cloudflare:
- Tap Save.
Per Wi-Fi Network (Older Method)
- Go to Settings > Wi-Fi.
- Long-press the connected network and tap Modify Network.
- Expand Advanced options.
- Change IP Settings from DHCP to Static.
- Scroll down to the DNS 1 and DNS 2 fields and enter your IPs.
- Tap Save.
How to Change DNS Server on iOS (iPhone & iPad)
On iOS, DNS settings are configured per Wi-Fi network. If you want a system-wide change including cellular data, you must use a third-party app (like the Cloudflare 1.1.1.1 app).
- Open Settings and tap Wi-Fi.
- Tap the blue (i) icon next to your connected network.
- Scroll down and tap Configure DNS.
- Change the setting from Automatic to Manual.
- Under DNS Servers, tap Add Server and enter your chosen addresses. Delete the existing ISP addresses if they remain.
- Tap Save in the top right corner.
How to Change DNS Server on Linux
Most modern Linux distributions (like Ubuntu, Fedora, or Debian) use NetworkManager or systemd-resolved.
Using the Command Line (nmcli)
- Identify your connection name:
nmcli connection show - Set the DNS servers (replace "Wired connection 1" with your actual name):
sudo nmcli connection modify "Wired connection 1" ipv4.dns "1.1.1.1 1.0.0.1" sudo nmcli connection modify "Wired connection 1" ipv4.ignore-auto-dns yes - Restart the connection:
sudo nmcli connection up "Wired connection 1"
Using Desktop GUI (Ubuntu/GNOME)
- Open Settings > Network.
- Click the gear icon next to your connection.
- Go to the IPv4 tab.
- Turn off the Automatic toggle next to DNS.
- Enter your addresses separated by a comma (e.g.,
1.1.1.1, 1.0.0.1). - Click Apply.
What is DNS over HTTPS (DoH) and DNS over TLS (DoT)?
Standard DNS queries are sent in plain text, meaning anyone on your network—or your ISP—can see which websites you are looking up, even if the website itself is encrypted (HTTPS).
- DNS over HTTPS (DoH): Wraps DNS queries inside standard HTTPS traffic. This makes DNS queries indistinguishable from other web traffic, making it harder for networks to block or monitor them. It is supported by Windows 11 and modern browsers like Chrome and Firefox.
- DNS over TLS (DoT): Uses a dedicated port and encryption protocol for DNS. This is the standard used by Android's "Private DNS" feature.
Both technologies significantly improve privacy by ensuring your DNS "requests" cannot be tampered with (DNS spoofing) or eavesdropped upon.
How to Verify Your DNS Changes
After following the steps above, it is important to verify that your device is actually using the new servers.
- Use an Online Tool: Visit a site like
browserleaks.com/dnsordnsleaktest.com. - Check the Results: These tools will show which IP addresses are resolving your requests. If you see "Cloudflare" or "Google" instead of your ISP's name, the change was successful.
- Command Line Check:
- Windows: Open Command Prompt and type
nslookup google.com. The "Server" line will show the IP address of the DNS server currently in use. - Mac/Linux: Open Terminal and type
dig google.com. Look for the "SERVER" section at the bottom of the output.
- Windows: Open Command Prompt and type
Troubleshooting Common DNS Issues
1. No Internet After Change
If you lose internet access after changing DNS, you likely entered the IP addresses incorrectly. Double-check for typos (e.g., 1.1.1.1 vs 1.1.1). If the problem persists, revert to "Automatic" to restore connectivity and try a different provider.
2. DNS Cache Issues
Sometimes your computer remembers old DNS data. You can clear this by "flushing" your DNS.
- Windows: Open CMD as Admin and type
ipconfig /flushdns. - macOS: Open Terminal and type
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder.
3. VPN Interference
If you use a VPN, it will likely override your system's DNS settings to prevent "DNS leaks." If you want to use a specific DNS while using a VPN, you must usually configure this within the VPN app's settings.
Summary
Changing your DNS server is a high-reward, low-effort optimization for your digital life. While the Router-level change is the most effective for households, individual device settings are crucial for laptops and mobile devices that connect to public Wi-Fi.
- For Speed: Choose Cloudflare (1.1.1.1).
- For Reliability: Choose Google (8.8.8.8).
- For Security: Choose Quad9 (9.9.9.9).
- For Families: Choose OpenDNS.
By taking control of your DNS, you move away from the often slow and invasive defaults of your ISP and towards a faster, more secure internet experience.
FAQ: Frequently Asked Questions
Is it safe to use a third-party DNS server?
Yes, provided you choose a reputable provider like those mentioned in this guide. These companies have significant infrastructure and security protocols in place that often exceed those of standard ISPs.
Does changing DNS increase my download speed?
DNS only affects the time it takes to find a website, not the speed at which files are downloaded once the connection is established. However, because a typical webpage requires dozens of DNS lookups for various scripts and images, a faster DNS can make the overall browsing experience feel significantly faster.
Will changing DNS bypass a school or work block?
It can bypass blocks that are implemented solely via DNS redirection. However, if the network uses a sophisticated firewall or Deep Packet Inspection (DPI), changing the DNS alone may not be sufficient.
Do I need to change both IPv4 and IPv6 DNS?
Most networks still primarily use IPv4. However, if your ISP provides an IPv6 connection, it is best practice to update both to prevent "leaks" where your computer reverts to the ISP's DNS via the IPv6 protocol.
-
Topic: how to change dns servers on most popular routershttps://www.lifewire.com/how-to-change-dns-servers-on-most-popular-routers-2617995
-
Topic: How to Change DNS Servers (All Devices & Router) | DNSnexushttps://www.thednsnexus.com/guides/how-to-change-dns-servers
-
Topic: How to change your DNS server | NordVPNhttps://nordvpn.com/ar/blog/how-to-change-dns/?srsltid=AfmBOooatbcxMglGoN9xCNtf3C-JUcI4qBkXQwONBylisMydgaSFWnLO