How to Change DNS Settings on Any Device
Changing your DNS server can improve your Internet speed, privacy, and security. Instead of using your ISP's default DNS, you can manually set public DNS servers such as Google (8.8.8.8), Cloudflare (1.1.1.1), or Quad9 (9.9.9.9).
⚡ Tip: You can check your DNS speed and IP resolution instantly using our DNS Lookup Tool.
Why Change Your DNS Server?
Default ISP DNS servers can be slow, unreliable, or log your activity. Switching to public or custom DNS servers provides benefits such as:
Related reading: DNS Server List (2025)
What You Need Before Changing DNS
- Admin or root access to your device.
- Preferred DNS addresses (IPv4 & IPv6).
Example DNS Servers:
- Cloudflare:
1.1.1.1/1.0.0.1 - Google:
8.8.8.8/8.8.4.4 - Quad9:
9.9.9.9/149.112.112.112
How to Change DNS on Windows (10 / 11)
Method 1 — via Network Settings
Open Settings → Network & Internet → Change adapter options.
Right-click your active network → Properties.
Select Internet Protocol Version 4 (TCP/IPv4) → click Properties.
Choose Use the following DNS server addresses. Enter:
Preferred DNS server: 1.1.1.1
Alternate DNS server: 8.8.8.8
Click OK and restart your browser.
Method 2 — Command Line
netsh interface ipv4 set dnsservers "Wi-Fi" static 1.1.1.1 primary
netsh interface ipv4 add dnsservers "Wi-Fi" 8.8.8.8 index=2
Verify:
nslookup google.com
or check with DNS Lookup Tool.
How to Change DNS on macOS
Go to System Settings → Network → Advanced → DNS tab.
Click + and add your preferred servers:
1.1.1.1
8.8.8.8
Click OK → Apply.
Flush cache:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
How to Change DNS on Linux (Ubuntu, Debian, Fedora)
GUI Method (Ubuntu)
Settings → Network → Gear icon → IPv4 tab.
Disable "Automatic DNS".
Enter:
1.1.1.1, 8.8.8.8
Save and reconnect.
Command Line
Edit resolv.conf:
sudo nano /etc/resolv.conf
nameserver 1.1.1.1
nameserver 8.8.8.8
or configure via systemd-resolved:
sudo systemd-resolve --set-dns=1.1.1.1 --set-dns=8.8.8.8 --interface=eth0
Check:
dig example.com
How to Change DNS on Android
Android 9+ (Private DNS)
Open Settings → Network & Internet → Private DNS.
Select Private DNS provider hostname.
Enter:
1dot1dot1dot1.cloudflare-dns.com
Save.
Android 8 or older
Go to Wi-Fi → Long-press network → Modify Network.
Expand Advanced Options → Change IP settings to Static.
Set:
DNS 1: 1.1.1.1
DNS 2: 8.8.8.8
Save.
Note: DNS only applies to that Wi-Fi connection.
How to Change DNS on iOS (iPhone / iPad)
Open Settings → Wi-Fi.
Tap the "i" icon beside your network.
Tap Configure DNS → Manual.
Remove old entries → add:
1.1.1.1
8.8.8.8
Tap Save.
For DoT (DNS over TLS), enable via VPN/DNS apps like 1.1.1.1 by Cloudflare.
How to Change DNS on Routers
Changing DNS at the router level applies to all connected devices.
Log in to your router (usually 192.168.1.1 or 192.168.0.1).
Navigate to Internet / WAN / DNS Settings.
Disable "Obtain DNS automatically".
Add:
Primary DNS: 1.1.1.1
Secondary DNS: 8.8.8.8
Save and reboot router.
✅ Optional: Some routers (e.g., Asus, TP-Link, MikroTik) support DNS over TLS (DoT) or DNS over HTTPS (DoH).
How to Change DNS in Web Browsers
Google Chrome / Edge
Go to chrome://settings/security or edge://settings/privacy.
Scroll to "Use secure DNS".
Select: With: Cloudflare (1.1.1.1), Google, or Custom.
To add custom:
https://dns.google/dns-query
https://cloudflare-dns.com/dns-query
Firefox
Open about:preferences#general.
Scroll to Network Settings → click Settings.
Enable DNS over HTTPS (DoH).
Choose Cloudflare or enter a custom URL.
How to Test If DNS Changed Successfully
Run:
nslookup example.com
Look for:
Server: dns.google
Address: 8.8.8.8
Or use DNS Lookup Tool → your domain → verify Resolver IP.
Recommended Public DNS Servers
| Provider | IPv4 | IPv6 | Features |
|---|---|---|---|
| Cloudflare | 1.1.1.1 / 1.0.0.1 |
2606:4700:4700::1111 |
Fast & private |
| Google DNS | 8.8.8.8 / 8.8.4.4 |
2001:4860:4860::8888 |
Reliable, global |
| Quad9 | 9.9.9.9 / 149.112.112.112 |
2620:fe::fe |
Security filtering |
| OpenDNS | 208.67.222.222 / 208.67.220.220 |
2620:119:35::35 |
Parental control |
| AdGuard DNS | 94.140.14.14 / 94.140.15.15 |
2a10:50c0::ad1:ff |
Ad & tracker blocking |
Internal link: More options → Full DNS Server List
Common Issues After Changing DNS
| Issue | Cause | Fix |
|---|---|---|
| Website not loading | Cached old DNS | Flush DNS Cache |
| "DNS server not responding" | Wrong entry or offline resolver | Try alternate DNS |
| No Internet access | Static DNS conflict | Set back to automatic |
| Inconsistent speeds | ISP hijacking DNS | Use encrypted DoH/DoT |
FAQs
1. Is it safe to change DNS servers?
Yes, it's completely safe and reversible. You can switch back anytime.
2. What DNS server is best for speed?
Cloudflare (1.1.1.1) and Google (8.8.8.8) are fastest globally.
3. Do DNS changes affect my IP or Internet plan?
No, DNS only changes how domains resolve, not your IP or bandwidth.
4. Does changing DNS unblock websites?
Sometimes — if restrictions are based on DNS filtering, not IP-level blocks.
5. Should I use the same DNS on all devices?
Yes, for consistency — or configure it once on your router.
Ready to Test Your DNS?
Use our DNS Lookup Tool to verify your DNS changes and check resolution times.
Try DNS Lookup Tool