Why Change Your DNS Server?
Your ISP automatically assigns you a DNS server when you connect to the internet. While convenient, ISP DNS servers often have several disadvantages: they tend to be slower than dedicated public DNS services, they log your queries for commercial or legal purposes, and some inject ads into NXDOMAIN (domain not found) error pages.
Switching to a better DNS server takes minutes and can yield real benefits:
- Speed: Dedicated resolvers like Cloudflare (1.1.1.1) have faster response times than most ISP DNS servers.
- Privacy: Privacy-focused resolvers don't log or sell your query data.
- Security: Some resolvers block known malware and phishing domains automatically.
- Reliability: Large public DNS services have greater infrastructure and uptime than ISP resolvers.
Recommended DNS servers: Cloudflare (1.1.1.1 / 1.0.0.1), Google (8.8.8.8 / 8.8.4.4), or Quad9 (9.9.9.9 / 149.112.112.112). See our full comparison of best public DNS servers. After changing, run a DNS leak test to verify the new settings are active.
Change DNS on Windows 10 and Windows 11
Via Settings (Windows 11):
- Open Settings → Network & Internet.
- Click your active connection (Wi-Fi or Ethernet).
- Scroll to DNS server assignment and click Edit.
- Change "Automatic (DHCP)" to Manual.
- Enable IPv4, then enter Preferred DNS (
1.1.1.1) and Alternate DNS (1.0.0.1). - Click Save.
Via Control Panel (Windows 10/11):
- Open Control Panel → Network and Internet → Network and Sharing Center.
- Click Change adapter settings.
- Right-click your active connection and select Properties.
- Double-click Internet Protocol Version 4 (TCP/IPv4).
- Select "Use the following DNS server addresses".
- Enter
1.1.1.1(preferred) and1.0.0.1(alternate). - Click OK on all dialogs.
Repeat for IPv6 if desired, using 2606:4700:4700::1111 and 2606:4700:4700::1001.
Verify Your DNS Change Worked
Run a DNS leak test to confirm you're using your new DNS server
Hide My IP NowChange DNS on macOS and Linux
macOS:
- Open System Settings → Wi-Fi (or Network for Ethernet).
- Click Details next to your active connection.
- Click the DNS tab.
- Click the + button and add
1.1.1.1, then add1.0.0.1. - Remove any existing DNS entries if desired (or leave them as fallbacks).
- Click OK, then Apply.
Linux (systemd-resolved):
Edit the network interface configuration. For systems using systemd-resolved, edit or create a file in /etc/systemd/resolved.conf.d/:
[Resolve]
DNS=1.1.1.1 1.0.0.1
DNSOverTLS=yes
Then restart the service:
sudo systemctl restart systemd-resolved
Linux (NetworkManager, common on Ubuntu desktop):
# Open the network connection editor
nm-connection-editor
# Select your connection → IPv4 Settings
# Change Method to "Automatic (DHCP) addresses only"
# Add DNS servers: 1.1.1.1,1.0.0.1
After changing, verify with: systemd-resolve --status | grep DNS
Change DNS on Android and iOS
Android (Wi-Fi DNS per-network):
- Go to Settings → Wi-Fi.
- Long-press your connected network and select Modify network (or tap the gear icon).
- Tap Advanced options and change IP settings to Static.
- Scroll to the DNS fields and enter
1.1.1.1and1.0.0.1.
Android Private DNS (system-wide, Android 9+): This is the better option as it applies to all connections:
- Go to Settings → Network & Internet → Private DNS.
- Select "Private DNS provider hostname".
- Enter
one.one.one.onefor Cloudflare ordns.googlefor Google. - Tap Save. This enables DNS over TLS system-wide.
iOS / iPadOS:
- Go to Settings → Wi-Fi.
- Tap the blue ⓘ icon next to your network.
- Scroll to DNS and tap Configure DNS.
- Switch to Manual, delete existing servers, add
1.1.1.1and1.0.0.1. - Tap Save.
For system-wide encrypted DNS on iOS, install the 1.1.1.1 app or a DNS configuration profile from your provider.
Change DNS on Your Router (Best for Whole-Home Coverage)
Changing DNS on your router is the most effective approach — it applies to every device on your network automatically, including smart TVs, game consoles, and IoT devices that don't have accessible DNS settings.
- Access your router: Open a browser and navigate to your router's admin IP. Common addresses are
192.168.1.1,192.168.0.1, or10.0.0.1. Check the label on your router if unsure. - Log in: Use your admin credentials (often printed on the router or defaulting to
admin/admin). - Find DNS settings: Look for "WAN", "Internet", "DHCP Server", or "DNS" in the menu. Exact location varies by router brand.
- Enter DNS servers: Replace existing entries with
1.1.1.1(primary) and1.0.0.1(secondary). - Save and restart: Apply settings and restart the router if required.
After changing your router's DNS, all new connections will use the new servers. Devices with static DNS configured locally will still use their own settings. Verify the change worked by running our DNS leak test from any device on your network. If it still shows your ISP's DNS, flush the DNS cache on that device.

Frequently Asked Questions
Will changing my DNS server affect my internet connection?
Changing DNS only affects how domain names are resolved — it doesn't change your IP address, bandwidth, or actual internet connection. In the worst case, if you enter an invalid DNS server address, websites won't load by name. Fix it by entering a valid address or reverting to automatic DNS.
Which DNS server is the best to use?
For most users, Cloudflare's 1.1.1.1 is the best choice — it's the fastest globally, has a strong privacy policy, and is independently audited. Quad9 (9.9.9.9) is excellent if you want automatic malware domain blocking. See our full <a href="/best-public-dns-servers">DNS server comparison</a>.
How do I know if my DNS change worked?
Run our <a href="/dns-leak-test">DNS leak test</a> after making the change. It will show you which DNS servers are currently handling your queries. If you see the provider you configured (e.g., Cloudflare), the change worked. If you still see your ISP's DNS, try <a href="/how-to-flush-dns-cache">flushing your DNS cache</a> and testing again.
Does changing DNS affect gaming or streaming performance?
Yes, positively in most cases. Faster DNS resolution reduces the time it takes to connect to game servers and streaming services when opening a new session. For ongoing data transfer (actual gameplay or video playback), DNS speed has no effect — it only impacts the initial connection establishment.
