Where to find DNS settings and what you're changing

DNS settings tell your device which server to contact when you type a web address into your browser. By default, your internet service provider (ISP) assigns these servers automatically. You can change them to use a different DNS provider — like Cloudflare, Google, or Quad9 — by adjusting settings in your network configuration. The steps differ depending on whether you use Windows, Mac, iPhone, Android, or your router.

Changing DNS does not affect your internet speed or connection itself. It only changes which server translates web addresses (like google.com) into the IP addresses your device actually needs. Some people change DNS to use a service that blocks ads, improves privacy, or filters malicious sites. Others change it because their ISP's DNS is slow or unreliable.

Key Takeaways

  • You can change DNS on individual devices (Windows, Mac, iPhone, Android) or on your router to affect all devices connected to it at once.
  • Changing DNS on your router is usually simpler if you want the change to apply everywhere, but requires you to know your router's login credentials.
  • On Windows, DNS settings are in Network Settings under Change Adapter Options or Settings > Network & Internet > Advanced Network Settings.
  • On Mac, DNS settings are in System Settings under Network, then select your connection and click Details.
  • On iPhone and Android, DNS can be changed per Wi-Fi network in the network settings, or system-wide through private DNS (Android) or DNS over HTTPS (iPhone).

Changing DNS on your router (affects all connected devices)

The easiest way to change DNS for your entire household is to do it once on your router, rather than on each device separately. Log into your router's admin panel by opening a web browser and typing your router's IP address — usually 192.168.1.1 or 192.168.0.1. Check the back or bottom of your router for the exact address, or look at your router's manual.

Once you are logged in (you will need your router's username and password, often printed on the device itself), look for a section called DNS, DHCP, or WAN Settings. The exact location varies by router brand. Enter the DNS server addresses you want to use — most services provide two addresses, a primary and a secondary. For example, Cloudflare's public DNS is 1.1.1.1 and 1.0.0.1. Save the changes and restart your router. All devices on your network will now use the new DNS servers.

Changing DNS on Windows 10 and 11

On Windows 11, go to Settings > Network & Internet > Advanced Network Settings. Scroll down to "More settings" and select "DNS server assignment." Click Edit, toggle the setting to Manual, and enter your preferred DNS servers. Windows 10 uses a slightly different path: Settings > Network & Internet > Change Adapter Options, then right-click your active connection and select Properties. Find Internet Protocol Version 4 (IPv4), click Properties, and enter the DNS addresses in the "Preferred DNS server" and "Alternate DNS server" fields.

After you enter the addresses and click OK, the change takes effect immediately. You can verify it worked by opening Command Prompt and typing nslookup google.com — the response should show your new DNS server's address. If you want to revert to automatic DNS, follow the same steps and select "Automatic" instead of Manual.

Changing DNS on Mac

On Mac, open System Settings and click Network. Select your active connection (Wi-Fi or Ethernet) and click Details. Go to the DNS tab. Click the plus button to add a new DNS server, or select an existing one and click the minus button to remove it. Enter the server addresses you want to use, then click OK.

If you are using multiple networks and want different DNS settings for each, you can set them individually this way. To verify the change worked, open Terminal and type scutil --dns — you should see your new DNS servers listed under the resolver configuration. Changes take effect immediately, though you may need to refresh your browser or restart it to see the effect on websites you have already visited.

Changing DNS on iPhone

On iPhone, you can change DNS per Wi-Fi network or system-wide. To change it for a specific Wi-Fi network, go to Settings > Wi-Fi, tap the info icon next to the network name, scroll to DNS, and tap Configure DNS. Select Manual, remove the existing addresses, and add your preferred DNS servers. This setting applies only to that network.

To change DNS system-wide on iPhone, go to Settings > Privacy & Security > DNS over HTTPS. Tap Configure DNS and choose a provider from the list (Cloudflare, Quad9, and others are built in), or select Custom to enter your own server addresses. This method encrypts your DNS queries and applies across all networks your iPhone connects to.

Changing DNS on Android

Android offers two ways to change DNS. For a specific Wi-Fi network, go to Settings > Network & Internet > Wi-Fi, long-press the network name, tap Modify, scroll to Advanced Options, and change the DHCP setting to Static. Then enter your preferred DNS servers in the DNS 1 and DNS 2 fields. This applies only to that network.

To change DNS system-wide on Android 9 and later, go to Settings > Network & Internet > Advanced > Private DNS. Select "Private DNS provider hostname" and enter the hostname of your DNS provider (for example, 1dot1dot1dot1.cloudflare-dns.com for Cloudflare). This encrypts your DNS queries and applies across all networks. Some Android devices also allow you to select from a list of preset providers.

Common DNS providers and what they do

Cloudflare (1.1.1.1 and 1.0.0.1) is a popular choice for privacy — it does not log your browsing activity. Google Public DNS (8.8.8.8 and 8.8.4.4) is fast and reliable but does collect some data. Quad9 (9.9.9.9 and 149.112.112.112) blocks known malicious sites and phishing domains. OpenDNS (208.67.222.222 and 208.67.220.220) offers filtering options and can block adult content or specific categories of sites.

Most of these services are free to use. The main differences are speed (usually negligible), privacy policies (how much data they collect), and filtering (whether they block certain types of sites). If your current DNS feels slow, try Cloudflare or Google. If you want to block ads or malicious sites, Quad9 or OpenDNS may be better choices. You can always change back to your ISP's DNS if you are not happy with the results.

Troubleshooting DNS changes that do not work

If you changed DNS but websites still do not load or load slowly, first check that you entered the addresses correctly. A single wrong digit will cause the DNS server to be unreachable. Restart your device or router after making changes — some devices cache the old DNS settings and do not pick up the new ones until a restart.

If you changed DNS on your router but individual devices still use the old servers, those devices may have DNS settings configured locally that override the router settings. Check the device's network settings and set DNS back to automatic. If you changed DNS on your phone or computer and websites load but slowly, try a different DNS provider — some services are faster in certain regions than others. You can also check whether your ISP is blocking the DNS provider you chose by contacting them directly.

Frequently Asked Questions

Will changing DNS affect my internet speed?

DNS changes rarely affect speed noticeably. If anything, switching to a faster DNS provider might make web pages load slightly quicker, but the difference is usually under 100 milliseconds and imperceptible to most users. If you notice slower speeds after changing DNS, try a different provider or revert to your ISP's DNS.

Can I use different DNS servers on different devices?

Yes. You can set DNS on your router to apply to all devices, or configure it individually on each device. If you set DNS on both your router and a specific device, the device's setting takes priority. This is useful if you want most devices to use one provider but need a specific device to use another.

What happens if a DNS server goes down?

If your primary DNS server becomes unavailable, your device automatically tries the secondary DNS server you configured. If both are down, you will not be able to load websites by name (like google.com) but may still access them by IP address if you know it. This is why most DNS configurations include two servers.

Do I need to change DNS to improve privacy?

Changing to a privacy-focused DNS provider like Cloudflare or Quad9 can reduce the data your ISP sees about which websites you visit. However, your ISP can still see that you are using encrypted connections to those sites. For stronger privacy, consider using a VPN in addition to changing DNS.

Can I change DNS back to automatic?

Yes, at any time. On Windows, go back to Network Settings and select Automatic. On Mac, go to System Settings > Network > DNS and remove the custom servers. On iPhone or Android, remove the custom DNS configuration from your Wi-Fi or Private DNS settings. Your device will revert to using your ISP's DNS servers.