Why you might change your DNS server

Your DNS server translates web addresses like google.com into the IP addresses that actually route your traffic. By default, your internet provider assigns you one automatically — but you can switch to a different one if you want faster lookups, better privacy, or to block certain sites on your home network.

Common reasons to change: your provider's DNS is slow, you want to use a privacy-focused option like Cloudflare or Quad9 that doesn't log your browsing, or you're setting up parental controls. The change is reversible and takes just a few minutes.

Key Takeaways

  • You can change DNS at the device level (affects only that computer or phone) or at the router level (affects all devices on your network).
  • Common alternatives to your ISP's DNS include Cloudflare (1.1.1.1), Google (8.8.8.8), and Quad9 (9.9.9.9), each with different privacy and filtering features.
  • On Windows, go to Settings > Network & Internet > Advanced Network Settings > DNS Server Settings; on Mac, open System Settings > Network > Wi-Fi > DNS.
  • Changes take effect immediately on most devices, though your browser cache may show old results for a few minutes.
  • If a DNS change breaks your internet or causes problems, you can revert to automatic (DHCP) settings in the same menu where you changed it.

Changing DNS on Windows 11

Open Settings and go to Network & Internet. Click Advanced Network Settings, then scroll down and select DNS Server Settings. Click Edit next to your current connection.

Toggle "Automatic (DHCP)" to off. You'll now see two fields for DNS servers. Enter your preferred primary DNS in the first field — for example, 1.1.1.1 for Cloudflare. In the second field, enter a secondary DNS (Cloudflare's secondary is 1.0.0.1). Click Save. Your device will use the new servers immediately.

If you're on Windows 10, the path is slightly different: Settings > Network & Internet > Change Adapter Options, then right-click your connection, select Properties, highlight Internet Protocol Version 4 (TCP/IPv4), click Properties, and manually enter the DNS addresses in the same format.

Changing DNS on Mac

Open System Settings and click Network on the left sidebar. Select your Wi-Fi network, then click Details. Go to the DNS tab at the top.

Click the + button at the bottom left of the DNS Servers list. Type in your preferred DNS address (for example, 1.1.1.1) and press Enter. Add a secondary server the same way. Click Done, then Apply. The change takes effect immediately.

If you need to revert, return to the same DNS tab and click the − button next to each server you added, or click Restore Defaults.

Changing DNS on iPhone and iPad

Open Settings and tap Wi-Fi. Find your network in the list and tap the info icon (circle with an i) next to it. Scroll down and tap Configure DNS, then select Manual.

Tap Add Server and enter your DNS address. Repeat for a secondary server if desired. Tap Save. The device will use these servers only on this Wi-Fi network — if you switch networks, you'll use that network's DNS unless you configure it separately.

This method does not work for cellular data. If you want to change DNS for mobile data, you'll need to use a VPN app that routes DNS through its own servers, since iOS doesn't expose DNS settings for cellular connections.

Changing DNS on Android

The process varies by manufacturer. On most devices, open Settings, go to Network & Internet or Connections, select Wi-Fi, long-press your network name, and tap Edit or Modify. Look for Advanced Options or DNS Settings and toggle to Manual or Static.

Enter your primary and secondary DNS addresses. Tap Save or Connect. Some Android phones (Samsung, OnePlus, Google Pixel) place this setting in slightly different locations — if you can't find it in the path above, search "DNS" in your Settings app.

Like iPhone, this changes DNS only for the Wi-Fi network you're editing. For mobile data DNS on Android, you'll need a VPN app or a custom DNS app that your phone allows to override system settings.

Changing DNS at your router for all devices

If you want every device on your home network to use the same DNS server, change it at the router instead of on each device. Open your browser and go to your router's admin page — usually 192.168.1.1 or 192.168.0.1, though some routers use a web address like routerlogin.net.

Log in with your router's admin username and password (often "admin" and "admin", or printed on the router itself). Look for a section called DNS, DHCP, or WAN Settings. Enter your preferred DNS servers in the fields provided. Save and reboot the router. All devices will now use the new DNS automatically.

Changing DNS at the router is useful for parental controls — services like Cloudflare for Families and Quad9 block malware and adult content at the DNS level, so the filtering applies to every device without needing separate software on each one.

Common DNS servers and what they do

ServicePrimary AddressSecondary AddressKey Feature
Cloudflare1.1.1.11.0.0.1Fast, privacy-focused; doesn't log queries
Cloudflare for Families1.1.1.21.0.0.2Blocks malware and adult content
Google8.8.8.88.8.4.4Very fast; Google logs queries for security purposes
Quad99.9.9.9149.112.112.112Blocks malware; privacy-focused
OpenDNS208.67.222.222208.67.220.220Customizable filtering; good for families

Troubleshooting DNS changes

If you change DNS and your internet stops working, the new server may be unreachable or your device may have rejected the entry. Revert to automatic DNS in the same menu where you changed it, or try a different DNS service. Google's 8.8.8.8 is widely available and rarely causes problems — if that works, your original choice may have been the issue.

If websites load slowly after a DNS change, wait a few minutes — your browser's cache may be serving old results. Clear your browser cache (Ctrl+Shift+Delete on Windows, Command+Shift+Delete on Mac) or try a different browser to rule out caching. If slowness persists, your new DNS server may be overloaded; try a different one from the table above.

Some corporate networks and school networks block custom DNS servers to enforce their own filtering. If you change DNS on a work or school device and it doesn't take effect, your network administrator has likely locked this setting. Contact your IT department if you need to use a different DNS.

Frequently Asked Questions

Will changing DNS improve my internet speed?

It may, depending on your ISP's DNS performance. Cloudflare and Google's DNS are generally faster than many ISP servers, but the difference is usually small — a few milliseconds. If speed is your main goal, test your current DNS first using a tool like DNS Benchmark, then compare it to your new choice after a few days of use.

Does changing DNS affect my security?

Changing to a reputable DNS service like Cloudflare, Google, or Quad9 does not reduce security. Some services (Quad9, Cloudflare for Families) actively block known malware domains. However, DNS alone does not protect you from phishing or viruses — you still need antivirus software and safe browsing habits.

Can my ISP see what websites I visit if I change DNS?

Your ISP can still see that you're connecting to a website (the IP address), but they cannot see the specific page you're on if the site uses HTTPS. Changing to a privacy-focused DNS like Cloudflare or Quad9 means that company, rather than your ISP, sees your DNS queries. Neither approach hides your activity completely — a VPN does that.

What if I change DNS and websites don't load at all?

The DNS server you entered may be down or unreachable from your location. Go back to the same menu, toggle Automatic (DHCP) back on, and try a different DNS service. If automatic DNS works but your custom choice doesn't, try Google's 8.8.8.8 or Cloudflare's 1.1.1.1 — both are widely available and rarely blocked.

Do I need to change DNS on every device, or just my router?

Changing it at your router affects all devices automatically. Changing it on individual devices overrides the router's setting for just that device. If you want consistent DNS across your home network, change it at the router once. If you want different settings on different devices, change them individually.