What changing your DNS address does, and why you might want to

DNS (Domain Name System) is the service that translates web addresses like google.com into the IP addresses your device actually needs to connect. By default, your internet provider controls your DNS — but you can change it to use a different company's DNS servers instead. This matters for security because some DNS providers block malicious sites before your device even tries to reach them, while others keep better records about what you browse.

The trade-off is real: switching DNS means a different company sees which websites you visit (though not what you do on them). Your internet provider still sees that traffic leaving your home. If privacy from your ISP is your goal, changing DNS alone will not solve it — you would need a VPN for that. But if you want to block known malware sites or use a DNS service with stronger privacy policies than your ISP's default, changing DNS is straightforward and costs nothing.

Key Takeaways

  • Your internet provider's DNS is the default, but you can switch to Cloudflare (1.1.1.1), Google (8.8.8.8), or Quad9 (9.9.9.9) in your router or device settings.
  • Changing DNS at the router level affects all devices on your network; changing it on individual devices affects only that one.
  • The process takes five to ten minutes and requires you to restart your connection or device afterward.
  • Different DNS providers have different privacy policies and blocking features — research which one matches what you actually want.
  • If a website stops working after you change DNS, switching back to your ISP's DNS is the fastest way to test whether DNS was the problem.

Change DNS on your router to protect all devices at once

Changing DNS at the router level is the most efficient approach if you want the same DNS service protecting every device in your home — phones, laptops, tablets, everything. You log into your router's settings page, find the DNS field, and replace your ISP's address with the new one. The exact steps depend on your router model, but the principle is the same.

Start by finding your router's IP address. On Windows, open Command Prompt and type ipconfig, then look for "Default Gateway" — that number (usually 192.168.1.1 or 192.168.0.1) is your router's address. On Mac, open System Preferences, go to Network, select your connection, and click Advanced — the router address is listed there. Type that address into your web browser's address bar, and you will be prompted to log in. Use the username and password printed on your router, or check your ISP's documentation if you changed them.

Once logged in, look for a section called DNS, Domain Name Server, or WAN Settings. You will see two or three DNS address fields. Write down the current addresses before you change them — you may need to revert if something breaks. Replace the first address with your chosen DNS provider's primary address, and the second with their secondary address. Cloudflare uses 1.1.1.1 and 1.0.0.1; Google uses 8.8.8.8 and 8.8.4.4; Quad9 uses 9.9.9.9 and 149.112.112.112. Save the changes, and your router will restart the connection — this takes one to three minutes.

Change DNS on individual Windows devices

If you only want to change DNS on one Windows computer, or if your router does not let you change DNS settings, you can do it in Windows itself. This does not affect other devices on your network.

Open Settings and go to Network & Internet, then select your connection type (Wi-Fi or Ethernet). Click on your current network name, then scroll down and click "Edit" next to DNS server assignment. Change the setting from "Automatic" to "Manual", turn on IPv4, and enter your chosen DNS addresses in the two fields. Save the changes. Windows will explore them when ready, but you may need to restart your browser for websites to load properly.

If you prefer the older Control Panel method: open Control Panel, go to Network and Internet, then Network and Sharing Center. Click "Change adapter settings" on the left, right-click your connection, and select Properties. Highlight "Internet Protocol Version 4 (TCP/IPv4)" and click Properties. Select "Use the following DNS server addresses" and enter your new addresses. Click OK, and the change takes effect right away.

Change DNS on Mac and iOS devices

On a Mac, open System Preferences and go to Network. Select your connection (Wi-Fi or Ethernet) and click Advanced. Go to the DNS tab, click the plus button to add a new DNS server, and type in your chosen address. Add both the primary and secondary addresses, then click OK and explore. The change takes effect when ready.

On an iPhone or iPad, go to Settings, tap Wi-Fi, and select your network. Tap "Configure DNS" and choose "Manual". Add your DNS addresses one at a time, tapping the plus button after each. Tap Save when you are done. This only affects that specific Wi-Fi network — if you connect to a different network, it will use that network's DNS settings unless you change them there too. Cellular data always uses your carrier's DNS, not your Wi-Fi settings.

Change DNS on Android devices

Android does not have a built-in way to change DNS for a specific Wi-Fi network through Settings alone — the option exists only if your router supports it or if you use a private DNS service. The easiest method is to use a private DNS app like Cloudflare's 1.1.1.1 app or Quad9's app, which you read from the Google Play Store and run in the background.

Alternatively, if your Android phone supports it, go to Settings, tap Network & Internet, then Advanced, then Private DNS. Enter your DNS provider's address (for Cloudflare, use one.one.one.one). This method works on Android 9 and later. If neither option works on your device, changing DNS at the router level is the simplest solution — it will protect your Android phone without requiring any changes to the phone itself.

Understand what each major DNS provider actually does

Not all DNS services are the same. Cloudflare's 1.1.1.1 is designed for privacy — the company says it does not log which websites you visit, and it blocks malware and phishing sites by default. Google's Public DNS (8.8.8.8) is fast and reliable, but Google does log DNS queries tied to your account if you are signed in. Quad9 (9.9.9.9) blocks malware and phishing without logging, and is run by a nonprofit. OpenDNS (208.67.222.222) offers more customization, including content filtering, but requires you to set up an account.

Read each provider's privacy policy before you switch — what they promise about logging and data sharing varies significantly. Also consider whether you want automatic blocking of malware sites (which all three major options offer) or whether you prefer to see all sites and decide for yourself. If you switch to a DNS service and a website suddenly stops loading, that site may be blocked by that service's malware filter. You can test this by switching back to your ISP's DNS temporarily.

Troubleshoot when DNS changes break something

If websites stop loading after you change DNS, or if loading becomes much slower, the new DNS service may be blocking the site or may not be working properly on your network. The fastest test is to switch back to your ISP's DNS and see if the site loads again. If it does, the problem is with your new DNS service — either the site is blocked, or the service is not reachable from your location.

If switching back does not fix it, restart your device or router. DNS changes sometimes require a full restart to take effect, especially on older devices. If you changed DNS at the router level and one device still has problems, try changing that device's DNS settings individually to rule out a device-specific issue. If you changed DNS on a single device and it is not working, make sure you saved the changes and restarted your browser — some browsers cache DNS results and do not pick up changes when ready.

Frequently Asked Questions

Will changing DNS make my internet faster?

Sometimes. A faster DNS service can reduce the time it takes to look up a website address, but the difference is usually small — a few milliseconds. If your internet feels slow, the problem is almost always your connection speed, not DNS. Changing DNS might help slightly, but it is not a fix for slow internet.

Can I use different DNS services on different devices?

Yes. If you change DNS at the router level, all devices use that service. If you change DNS on individual devices, each one can use a different service. You might use Cloudflare on your laptop for privacy and Google DNS on your phone for speed, for example.

Do I need to change DNS if I use a VPN?

A VPN encrypts all your traffic, including DNS queries, so your ISP cannot see which sites you visit. Changing DNS becomes less important for privacy if you are already using a VPN. However, you might still want to switch to a DNS service that blocks malware, since that protection works regardless of whether you use a VPN.

What happens if the DNS service I choose goes down?

If your chosen DNS service becomes unavailable, websites will not load. This is rare for major services like Cloudflare and Google, but it can happen. Having a secondary DNS address (which you enter when you change your settings) provides a backup — if the first address does not respond, your device tries the second one automatically.

Can I change DNS on my work or school network?

Not usually. Most work and school networks lock down DNS settings so all devices use the organization's DNS service. Attempting to change it may violate your network agreement or trigger security alerts. If you need different DNS on a work device, ask your IT department whether they allow it.