Introduction: Why You Should Change Your DNS Server
Every time you open a website, launch an app, stream a video, or join a video call, your device performs a lookup through the Domain Name System (DNS) to translate human-friendly domain names (like myip.casa) into machine-readable IP addresses.
By default, your internet connection uses the recursive DNS servers automatically assigned by your Internet Service Provider (ISP). While convenient, default ISP DNS servers present serious drawbacks:
- 🐢 Slow response times: ISP resolvers frequently suffer from overloaded caches and higher latency, causing noticeable delays before web pages start loading.
- 👁️ Data logging and tracking: Many ISPs log every domain lookup your household performs, using your browsing metadata for behavioral profiling or advertising partnerships.
- 🚫 Censorship and DNS redirection: ISPs regularly implement DNS-level blocking for legal or commercial reasons, redirecting queries to error pages or search portals.
- 🔓 Lack of encryption: Traditional DNS queries travel unencrypted over UDP/TCP port 53, leaving them vulnerable to local eavesdropping and man-in-the-middle spoofing.
Switching your DNS server to a reputable public provider (such as Cloudflare, Quad9, or Google Public DNS) immediately gives you faster domain resolution, built-in malware protection, and enhanced privacy.
🔍 Test Your Current DNS Configuration
Before making changes, test which DNS resolvers your device is currently using and verify whether your requests are leaking to your ISP:
Run Instant DNS Leak Test →Best Free Public DNS Providers Compared
Depending on your priority (maximum speed, automated threat blocking, or privacy), select one of the following high-performance public DNS resolvers:
| Provider | Primary IPv4 | Secondary IPv4 | IPv6 Addresses | Best Feature |
|---|---|---|---|---|
| Cloudflare (1.1.1.1) | 1.1.1.1 |
1.0.0.1 |
2606:4700:4700::11112606:4700:4700::1001 |
⚡ Lowest global latency, 24-hour privacy log purging |
| Quad9 | 9.9.9.9 |
149.112.112.112 |
2620:fe::fe2620:fe::9 |
🛡️ Swiss non-profit, automated blocking of malicious phishing/malware domains |
| Google Public DNS | 8.8.8.8 |
8.8.4.4 |
2001:4860:4860::88882001:4860:4860::8844 |
🌐 Massive global infrastructure and unmatched uptime |
| Cloudflare for Families | 1.1.1.2 (Malware)1.1.1.3 (Family) |
1.0.0.21.0.0.3 |
2606:4700:4700::11122606:4700:4700::1113 |
👨👩👦 Automated filtering of malware and adult content |
| AdGuard DNS (Public) | 94.140.14.14 |
94.140.15.15 |
2a10:50c0::ad1:ff2a10:50c0::ad2:ff |
🚫 Blocks ads, trackers, and telemetry at the DNS level |
How to Change DNS Server on Windows 11
Windows 11 includes native support for encrypted DNS over HTTPS (DoH) directly within the modern Settings interface.
- Press Win + I to open Settings.
- Click on Network & internet in the left sidebar.
- Select your active network connection: Wi-Fi (then click your connected network properties) or Ethernet.
- Scroll down to DNS server assignment and click the Edit button.
- Change the dropdown menu from Automatic (DHCP) to Manual.
- Toggle on IPv4:
- Preferred DNS: Enter
1.1.1.1(or9.9.9.9). - DNS over HTTPS: Select On (automatic template) or Encrypted only (DNS over HTTPS).
- Alternate DNS: Enter
1.0.0.1(or149.112.112.112).
- Preferred DNS: Enter
- (Optional) Toggle on IPv6 and enter the corresponding IPv6 DNS addresses.
- Click Save to apply the changes immediately.
PowerShell Shortcut (Admins):
# Replace "Wi-Fi" with your actual network adapter name
Set-DnsClientServerAddress -InterfaceAlias "Wi-Fi" -ServerAddresses ("1.1.1.1","1.0.0.1")
How to Change DNS Server on Windows 10
- Press Win + R, type
ncpa.cpl, and press Enter to open Network Connections. - Right-click your active network adapter (Wi-Fi or Ethernet) and select Properties.
- Under "This connection uses the following items", select Internet Protocol Version 4 (TCP/IPv4) and click Properties.
- Select the radio button "Use the following DNS server addresses".
- Enter:
- Preferred DNS server:
1.1.1.1 - Alternate DNS server:
1.0.0.1
- Preferred DNS server:
- Check "Validate settings upon exit" and click OK.
How to Change DNS Server on macOS
On modern macOS versions (Sequoia, Sonoma, Ventura):
- Click the Apple menu () at top-left and select System Settings.
- Click on Network in the left sidebar.
- Select your active network interface (Wi-Fi or Ethernet), then click the Details... button next to your connection.
- Click the DNS tab in the sidebar of the modal dialog.
- Under the DNS Servers box on the left, click the + (Plus) button.
- Add your primary and secondary DNS servers (e.g.,
1.1.1.1and1.0.0.1). - Click OK, then click Apply.
Terminal Shortcut for macOS:
sudo networksetup -setdnsservers Wi-Fi 1.1.1.1 1.0.0.1
How to Change DNS Server on Linux (Ubuntu, Debian, Fedora)
Method 1: Using NetworkManager GUI
- Open Settings and navigate to Network or Wi-Fi.
- Click the gear icon next to your active network connection.
- Go to the IPv4 tab.
- Turn off the Automatic toggle next to DNS.
- In the input field, enter the DNS IPs separated by a comma:
1.1.1.1, 1.0.0.1. - Click Apply and disconnect/reconnect your network.
Method 2: Using nmcli in Terminal
# Find your active connection name
nmcli connection show
# Set DNS servers on your connection (e.g. "Wired connection 1")
nmcli connection modify "Wired connection 1" ipv4.dns "1.1.1.1 1.0.0.1"
nmcli connection modify "Wired connection 1" ipv4.ignore-auto-dns yes
nmcli connection up "Wired connection 1"
How to Change DNS Server on iPhone & iPad (iOS / iPadOS)
- Open the Settings app on your iOS device.
- Tap on Wi-Fi.
- Tap the ℹ️ (info icon) next to your connected Wi-Fi network.
- Scroll down and tap Configure DNS.
- Switch the mode from Automatic to Manual.
- Under DNS Servers, delete any existing ISP addresses by tapping the red minus button.
- Tap + Add Server and type
1.1.1.1. Tap it again to add1.0.0.1. - Tap Save in the top-right corner.
Note for Cellular Data: iOS does not allow manual DNS configuration for cellular data in standard Wi-Fi settings. To use custom or encrypted DNS over 4G/5G, install a configuration profile (via tools like Apple Configurator or Cloudflare 1.1.1.1 app).
How to Change DNS Server on Android (Android 9 to 15)
Android features system-wide Private DNS using DNS over TLS (DoT), which automatically encrypts all DNS lookups across both Wi-Fi and mobile cellular networks.
- Open the Settings app on your Android device.
- Tap Network & internet (or Connections on Samsung Galaxy devices).
- Tap Private DNS (on some devices, found under More connection settings).
- Select the "Private DNS provider hostname" option.
- Enter the hostname of your chosen secure DNS provider:
- Cloudflare:
one.one.one.one - Quad9:
dns.quad9.net - Google:
dns.google - AdGuard (Ad-blocking):
dns.adguard-dns.com
- Cloudflare:
- Tap Save.
How to Change DNS on Your Router (Whole-Home Network)
Configuring custom DNS on your home Wi-Fi router protects every device connected to your local network—including Smart TVs, PlayStation/Xbox consoles, streaming sticks, and IoT home appliances that don't have native DNS settings.
- Open your web browser and navigate to your router's gateway IP address (typically
192.168.1.1or192.168.0.1). - Log in with your administrator username and password (found on your router sticker if never changed).
- Locate the DHCP, WAN, or Internet / LAN DNS configuration section.
- Look for fields labeled Primary DNS (DNS 1) and Secondary DNS (DNS 2).
- Replace your ISP's addresses with your preferred DNS servers (e.g.,
1.1.1.1and1.0.0.1or9.9.9.9). - Save the settings and reboot your router to push the new DNS configuration to all connected client devices via DHCP.
Encrypted DNS: DoH (DNS over HTTPS) vs DoT (DNS over TLS)
Standard DNS queries are sent as unencrypted plain text across Port 53. Anyone along the network path—including network administrators, public Wi-Fi operators, and your ISP—can inspect which domains you are visiting.
To prevent snooping, modern protocols encrypt your DNS traffic:
- DNS over HTTPS (DoH): Wraps DNS queries inside standard HTTPS traffic over port 443. This blends DNS lookups with regular encrypted web traffic, making it impossible for network firewalls or ISPs to isolate or block your queries.
- DNS over TLS (DoT): Uses a dedicated encrypted tunnel over port 853. Supported natively in Android's Private DNS and enterprise network gear.
How to Enable DoH (Secure DNS) in Your Browser
- Google Chrome / Brave / Edge: Go to Settings > Privacy & security > Security. Under "Use secure DNS", choose "With: Cloudflare (1.1.1.1)" or enter a custom DoH provider.
- Mozilla Firefox: Go to Settings > Privacy & Security > DNS over HTTPS. Set protection to Increased or Max Protection and select Cloudflare or NextDNS.
DNS vs VPN: Which One Do You Need for Privacy?
A common misconception is that changing your DNS server completely hides your internet activity from your ISP. Understanding the technical difference is crucial for digital privacy:
- What Custom DNS Does: Prevents your ISP from logging DNS queries, speeds up lookups, and bypasses DNS-level blocks. However, your ISP still sees the destination IP address of every server you connect to, along with the SNI (Server Name Indication) header during TLS handshakes. Your public IP address remains exposed to every website you visit.
- What a VPN Does: Creates an end-to-end encrypted tunnel that encapsulates all network traffic (DNS, TCP, UDP, and web payloads). Your ISP sees only an encrypted stream to the VPN server, and websites see only the VPN's IP address.
🛡️ Complete Privacy: Beyond DNS Resolution
While switching to a private DNS resolver secures domain queries, it does not hide your physical IP address or encrypt application payloads. A zero-log VPN routes all DNS lookups and data packets through an encrypted tunnel with built-in leak protection.
Learn Why and When to Use a VPN →How to Verify Your New DNS Server and Flush Cache
After changing your DNS settings, your operating system may continue serving old IP addresses stored in its local cache. Flush your DNS cache to force immediate resolution through your new provider:
1. Flush Local DNS Cache
- Windows: Open Command Prompt as Administrator and run:
ipconfig /flushdns - macOS: Open Terminal and execute:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder - Linux (systemd): Run:
sudo systemd-resolve --flush-caches
2. Test Your DNS Resolution in Command Line
Run nslookup to verify which server answers your query:
nslookup myip.casa
The "Server" field in the response should display the IP address of your new provider (e.g. 1.1.1.1 or 9.9.9.9).
3. Run an Online DNS Leak Test
Verify that no rogue ISP resolvers are intercepting your queries by running our free diagnostic tool:
Troubleshooting Common DNS Issues
1. "DNS Server Not Responding" Error
If you lose internet connectivity after changing DNS, verify that you typed the IP addresses accurately without extra spaces. Temporarily switch back to Automatic (DHCP) to test if your router or network firewall blocks third-party DNS ports.
2. Captive Portals on Public Wi-Fi Networks
Public Wi-Fi networks in hotels, airports, and coffee shops require you to accept terms on a splash page before granting internet access. Static DNS or strict DoH can prevent captive portals from intercepting your initial browser session. Revert to automatic DHCP temporarily to complete the login splash screen.
3. Domain Propagation Delays
If you recently moved a domain or modified DNS records and don't see the update yet, read our in-depth guide on How DNS Propagation Works to understand TTL and caching layers.
Frequently Asked Questions (FAQ)
Will changing my DNS server make my internet faster?
Changing DNS improves lookup latency (the fraction of a second required to find a website's IP before connecting), making web browsing feel snappier. However, it does not increase your raw bandwidth (download or upload throughput) provided by your ISP.
Is changing DNS safe and legal?
Yes. Using public DNS servers like Cloudflare, Quad9, or Google is completely safe, standard industry practice, and legal worldwide.
Does changing DNS hide my browsing activity from my ISP?
Only partially. Switching to DoH/DoT prevents your ISP from snooping on DNS queries directly, but your ISP can still see the destination IP addresses your device connects to. To fully conceal web traffic, use a trusted VPN service.
What happens if my custom DNS server goes down?
If your primary DNS server experiences an outage, your operating system automatically falls back to the secondary (alternate) DNS server you configured. Using reputable providers ensures 99.99%+ availability.
Summary: Take Control of Your DNS
Changing your DNS server is one of the simplest and most effective network optimizations you can perform. In less than two minutes, you can improve browsing speed, shield your devices from malicious websites, and reclaim a significant layer of online privacy.