What DNS does and why you might change it

DNS (Domain Name System) is what translates web addresses like google.com into the IP addresses your device actually uses to connect. When you type a web address, your device asks a DNS server "what number goes with this name?" and the server sends back an answer.

Your internet provider sets a default DNS server for you automatically. You might change it to use a faster DNS service, to block certain websites, or to troubleshoot connection problems. Common alternatives include Cloudflare (1.1.1.1), Google (8.8.8.8), and Quad9 (9.9.9.9). Changing DNS does not affect your internet speed directly — it only changes which server translates addresses — but a faster or more reliable DNS server can make web pages load slightly quicker.

The process differs depending on whether you change DNS on your individual device or on your router (which affects all devices connected to it). Changing it on your router is usually simpler if you want the new DNS to apply everywhere at once.

Key Takeaways

  • DNS translates web addresses into numbers your device uses to connect, and your internet provider sets a default one that you can replace.
  • Changing DNS on your router affects all devices connected to it, while changing it on individual devices affects only that one computer or phone.
  • On Windows, you change DNS through Network Settings; on Mac, through System Settings under Wi-Fi or Ethernet; on iPhone and Android, through Wi-Fi or mobile settings.
  • After you change DNS, you may need to restart your browser or device for the change to take effect, and you can test it using online DNS checkers.
  • If a website stops working after you change DNS, you can revert to your provider's default DNS or try a different public DNS service.

Changing DNS on your router

Changing DNS on your router is the fastest way to apply a new DNS server to every device in your home without changing settings on each one individually. 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 — into the address bar. You will be prompted for a username and password; if you have not changed these, they are often "admin" and "admin" or "admin" and the router's default password printed on a sticker on the device itself.

Once logged in, look for a section labeled DNS, DHCP, or WAN Settings. The exact location varies by router brand. In that section, you will see fields for Primary DNS and Secondary DNS (or DNS 1 and DNS 2). Clear the existing numbers and enter the new DNS addresses. For Cloudflare, enter 1.1.1.1 as primary and 1.0.0.1 as secondary. For Google, use 8.8.8.8 and 8.8.4.4. Save your changes and restart the router by unplugging it for 10 seconds, then plugging it back in.

After the router restarts, all devices connected to it will use the new DNS. This change takes effect immediately for new connections, though devices may cache old DNS results for a few minutes.

Changing DNS on Windows

On Windows 10 or 11, open Settings by pressing the Windows key and typing "Settings," then click the Settings app. Navigate to Network & Internet, then select Wi-Fi or Ethernet depending on how you connect to the internet. If you use Wi-Fi, click the network name you are connected to; if you use Ethernet, click "Ethernet" and then your connection name.

Scroll down and click "Edit" next to DNS server assignment. Change the dropdown from "Automatic (DHCP)" to "Manual," then toggle on "IPv4" if it is not already on. In the Preferred DNS server field, enter your new primary DNS address. In the Alternate DNS server field, enter the secondary address. Click Save and close Settings.

Windows will apply the change immediately, though your browser may need to be closed and reopened for it to take effect. If you want to revert to automatic DNS, return to the same screen and change the dropdown back to "Automatic (DHCP)."

Changing DNS on Mac

On Mac, open System Settings (or System Preferences on older versions) and click Network in the sidebar. Select your Wi-Fi network or Ethernet connection, then click "Details" or the gear icon. Look for a DNS tab or DNS Servers section.

Click the plus button to add a new DNS server and type the primary address. Click plus again and add the secondary address. If you want to remove your provider's default DNS servers, select them and click the minus button. Click OK or Done to save, then close System Settings.

The change takes effect immediately. To check that it worked, open a web browser and visit a website. If you want to revert to automatic DNS, return to the same screen and remove the manual DNS servers you added.

Changing DNS on iPhone and Android

On iPhone, open Settings and tap Wi-Fi. Find the network you are connected to and tap the information icon (the small "i" in a circle). Scroll down to DNS and tap "Configure DNS." Change the setting from "Automatic" to "Manual," then tap "Add Server" and enter your primary DNS address. Tap "Add Server" again and enter the secondary address. Tap Save.

On Android, the process depends on your device and Android version. Open Settings and tap Network & Internet or Connections. Select Wi-Fi, then tap the network name and hold it until a menu appears. Tap "Modify Network" or "Edit." Look for Advanced Options or DNS settings. Change DNS 1 to your primary address and DNS 2 to your secondary address. Tap Save.

Note that on both iPhone and Android, changing DNS in Wi-Fi settings only affects that specific Wi-Fi network. If you connect to a different network, it will use that network's DNS unless you change it there too. Changing DNS for mobile data (cellular) is more complex and usually requires a VPN app or configuration profile, which is beyond the scope of basic DNS changes.

Testing your DNS change and troubleshooting

After you change DNS, wait a minute and then open a web browser and visit a website. If the page loads normally, your DNS change worked. To verify which DNS server you are actually using, visit a site like whatismyipaddress.com or dnschecker.org and look for the DNS server listed in the results.

If websites stop working or load very slowly after you change DNS, the new DNS server may be down or unreachable. Revert to your provider's default DNS or try a different public DNS service. If you changed DNS on your router and nothing works, log back into the router and clear the DNS fields, which will restore automatic DNS from your provider.

If only one website is broken but others work fine, the problem is usually not DNS — it is more likely a problem with that specific website. Try clearing your browser cache (Ctrl+Shift+Delete on Windows, Command+Shift+Delete on Mac) and visiting the site again.

When to change DNS and when to leave it alone

Change DNS if your internet provider's DNS is slow or unreliable, if you want to use a DNS service that blocks malware or adult content, or if you are troubleshooting a specific connection problem and a support person has asked you to try a different DNS. Public DNS services like Cloudflare and Google are free and generally reliable.

Do not change DNS if your internet is working fine and you have no specific reason to. Your provider's DNS is optimized for your region and usually works well. Changing it will not make your internet faster unless your provider's DNS is actually the bottleneck, which is rare. If you are not sure whether to change it, leave it on automatic.

Frequently Asked Questions

Will changing DNS make my internet faster?

Changing DNS will not make your internet faster unless your provider's DNS server is unusually slow or unreliable. DNS lookup is a tiny part of the time it takes to load a web page. If your internet feels slow, the problem is almost always your connection speed, not DNS.

Can I use different DNS servers for different devices?

Yes. If you change DNS on your router, all devices use the same DNS. If you change DNS on individual devices, each device can use a different one. This is useful if you want one device to use a content-blocking DNS while others use a standard one.

What happens if I enter a DNS address wrong?

If you enter an invalid DNS address, websites will not load on that device or network. You will see an error like "Cannot reach this page" or "No internet connection." Simply correct the address or revert to automatic DNS and the problem will go away.

Do I need to restart my device after changing DNS?

You do not need to restart your device, but you may need to close and reopen your web browser. Some devices cache DNS results, so closing the browser clears that cache and forces it to use the new DNS immediately.

Can my internet provider see what websites I visit if I change DNS?

Your internet provider can still see the IP addresses you connect to, which reveals which websites you visit. Changing DNS does not hide your browsing from your provider. If privacy is your goal, you need a VPN, not a DNS change.