How to Change Your DNS Server to 1.1.1.1 or 8.8.8.8
Last updated: June 7, 2026
Your DNS server translates domain names (like google.com) into IP addresses that your computer can connect to. By default, your ISP provides the DNS server — but ISP DNS can be slow, unreliable, or even censor certain websites. Switching to a public DNS like Cloudflare (1.1.1.1) or Google (8.8.8.8) can fix connectivity issues and speed up your browsing.
Which Public DNS Should You Use?
| Provider | Primary | Secondary | Best For |
| Cloudflare | 1.1.1.1 |
1.0.0.1 |
Fastest, privacy-focused |
8.8.8.8 |
8.8.4.4 |
Reliable, widely supported | |
| Quad9 | 9.9.9.9 |
149.112.112.112 |
Security-focused, blocks malware |
| OpenDNS | 208.67.222.222 |
208.67.220.220 |
Parental controls, filtering |
Windows 10 / Windows 11
Via Settings (easiest)
Press Windows + I to open Settings. Go to Network & Internet → Ethernet (or Wi-Fi if wireless).
Scroll down and click "Edit" next to DNS server assignment. Change from "Automatic (DHCP)" to "Manual".
Toggle on IPv4. Enter:
- Preferred DNS:
1.1.1.1 - Alternate DNS:
1.0.0.1
Click "Save".
Via Command Line (quick)
Right-click the Start button → "Terminal (Admin)" or "Windows PowerShell (Admin)".
For Ethernet:
netsh interface ipv4 set dns "Ethernet" static 1.1.1.1
netsh interface ipv4 add dns "Ethernet" 1.0.0.1 index=2
For Wi-Fi, replace "Ethernet" with "Wi-Fi".
ipconfig /flushdns
netsh interface ipv4 set dns "Ethernet" dhcp
macOS
Click the Apple menu → System Settings (or System Preferences on older macOS).
Click Network in the sidebar → select your active connection (Wi-Fi or Ethernet) → click "Details..." → click the "DNS" tab.
Click the "+" button and add:
1.1.1.11.0.0.1
If there are existing entries (from your ISP), you can remove them or leave them as fallbacks. Click "OK" then "Apply".
iPhone / iPad
Tap the (i) icon next to your connected Wi-Fi network.
Scroll down to "DNS" and tap "Configure DNS". Select "Manual". Remove existing servers and add:
1.1.1.11.0.0.1
Tap "Save".
Android
On Android 9+, you can set a system-wide DNS. Go to Settings → Network & Internet → Private DNS (or search for "Private DNS" in Settings).
Enter: one.one.one.one (for Cloudflare) or dns.google (for Google). Tap "Save".
This works across both Wi-Fi and mobile data.
Linux
sudo nano /etc/resolv.conf
Add or replace with:
nameserver 1.1.1.1nameserver 1.0.0.1
sudo nano /etc/systemd/resolved.conf
Add under [Resolve]:
DNS=1.1.1.1 1.0.0.1
Then restart: sudo systemctl restart systemd-resolved
On Your Router (applies to all devices)
The most effective way — change DNS on your router and every device on your network benefits automatically.
Open a browser and go to 192.168.1.1 or 192.168.0.1 (check your router's manual or sticker for the exact address). Log in with your router's admin credentials.
Look for DNS, Internet, or WAN settings. The exact location varies by router brand. Common paths:
- Advanced → DNS
- Internet → DNS Server
- Network → WAN → DNS
Primary: 1.1.1.1
Secondary: 1.0.0.1
Save and reboot the router. All devices will use the new DNS automatically.
Verify Your DNS Change
After changing your DNS, verify it's working:
In Command Prompt or Terminal, run:
nslookup google.com
The "Server" line should show 1.1.1.1 (or whichever DNS you configured). If it still shows your ISP's DNS, try flushing your DNS cache: How to flush DNS cache.
Still having trouble accessing a website?
Check if the site is down for everyone or just you.
Check Website Status