What DNS does and why you might change it
DNS (Domain Name System) is the service that translates web addresses like google.com into the IP addresses your device actually needs to connect. When you type a URL into your browser, your device asks a DNS server "what is the IP address for this domain?" and the server sends back a number like 142.251.41.14.
By default, your DNS requests go to servers run by your internet service provider. You can change this to use a different DNS provider — common alternatives include Cloudflare (1.1.1.1), Google (8.8.8.8), or Quad9 (9.9.9.9). People change DNS for three reasons: to use a service that blocks malware and phishing sites, to improve speed in their specific location, or to use a provider with stronger privacy practices.
Changing DNS does not require a technician or a new router. You can do it on individual devices, on your router so all connected devices use the new DNS, or both. The change takes effect when ready and you can revert it just as quickly.
Key Takeaways
- DNS changes can be made on your router (affecting all devices) or on individual computers and phones, and take effect when ready.
- On Windows, you change DNS in Settings > Network & Internet > WiFi or Ethernet, then Advanced Options > DNS Server Settings.
- On Mac, you change DNS in System Settings > Network, select your connection, then DNS Servers.
- On Linux, the method depends on your distribution and network manager, but typically involves editing /etc/resolv.conf or using your network settings GUI.
- If you change DNS and websites stop loading, you can revert to automatic DNS in the same settings menu within seconds.
Changing DNS on Windows 10 and 11
Open Settings and go to Network & Internet. If you are on WiFi, click WiFi and then the network you are currently connected to. If you are on ethernet, click Ethernet instead. Scroll down and click Advanced Options.
Scroll down to the DNS Server Settings section and click Edit. A window will open with a dropdown that currently says "Automatic". Change it to Manual. Toggle on IPv4 (or IPv6 if you want to set that instead — most home networks use IPv4). Enter your DNS server addresses in the fields provided. For Cloudflare, enter 1.1.1.1 and 1.0.0.1. For Google, enter 8.8.8.8 and 8.8.4.4. Click Save.
Windows will explore the change when ready. Open a browser and visit a website to confirm it loads. If nothing loads, return to the same menu, click Edit, and change the dropdown back to Automatic.
Changing DNS on Mac
Open System Settings and click Network in the sidebar. Select the connection you want to change (WiFi or Ethernet). Click the DNS tab or button — the exact label depends on your macOS version.
You will see a list of DNS servers with a plus and minus button below. Click the plus button to add a new server. Type the IP address of your chosen DNS provider and press Enter. Repeat for a second server if you want a backup. Click OK to save. macOS applies the change when ready.
If you need to revert, return to the same DNS section, select the servers you added, click the minus button to remove them, and click OK.
Changing DNS on Linux
The method on Linux depends on which distribution you use and which network manager controls your connection. Most modern distributions use NetworkManager, which has a GUI similar to Windows and Mac.
If you use GNOME (the default on Ubuntu), open Settings, go to Network, click the gear icon next to your connection, and look for a DNS section. Toggle the DNS switch to Manual and enter your server addresses. If you use KDE Plasma, open System Settings, go to Connections, select your network, and edit the DNS settings there.
If your distribution does not have a GUI network manager, or if the GUI does not show DNS options, you can edit the configuration file directly. Open a terminal and edit /etc/resolv.conf with a text editor like nano: sudo nano /etc/resolv.conf. Add lines like nameserver 1.1.1.1 and nameserver 1.0.0.1. Save the file (Ctrl+O, then Enter, then Ctrl+X in nano). The change takes effect when ready. Note that some systems regenerate this file automatically, so the change may not persist after a reboot — check your distribution's documentation if that happens.
Changing DNS on your router instead of individual devices
If you want all devices on your home network to use the same DNS, you can change it on the router itself. This way, phones, tablets, laptops, and smart home devices all use your chosen DNS without configuring each one separately.
Log into your router's admin panel. The address is usually printed on the router itself or in the manual — common ones are 192.168.1.1 or 192.168.0.1. Enter your router's username and password (also on the device or in the manual). Look for a section called DNS Settings, DHCP Settings, or WAN Settings. Enter your DNS server addresses in the fields provided. Save and reboot the router if prompted.
After the router restarts, all connected devices will use the new DNS. You can verify this on any device by visiting a website. If something breaks, log back into the router and revert the DNS settings to automatic or to your ISP's defaults.
Choosing a DNS provider
Cloudflare (1.1.1.1) is fast in most locations and blocks malware by default. It has a strong privacy policy and does not log your queries. Quad9 (9.9.9.9) also blocks malware and phishing and is designed for privacy. Google (8.8.8.8) is very fast but does log some query data. OpenDNS (208.67.222.222) offers customizable filtering and is good if you want to block specific categories of sites.
For most home networks, Cloudflare or Quad9 are solid choices. If you are concerned about speed, test a few providers by changing your DNS and visiting a speed test site — the difference is usually small, but it varies by location. If you want to block adult content or gambling sites across all your devices, OpenDNS or your router's built-in parental controls are better options than changing DNS alone.
Troubleshooting DNS changes
If websites do not load after changing DNS, the most common cause is a typo in the server address. Double-check that you entered the numbers correctly. If you are still stuck, revert to automatic DNS when ready — this takes 30 seconds and restores your connection.
If some websites load but others do not, the new DNS provider may be blocking them. This is intentional if you chose a provider that filters malware, but if you did not expect it, try a different provider or revert to automatic. If you changed DNS on your router and only some devices are affected, those devices may be using a different DNS (set on the device itself) — check the device settings and make sure it is set to automatic or to match the router.
If you changed DNS and everything works fine but you want to revert, use the same steps you used to change it and select Automatic instead of Manual. There is no penalty for changing DNS frequently — you can experiment without risk.
Frequently Asked Questions
Will changing DNS make my internet faster?
It might, depending on your location and which provider you choose. DNS lookup is usually fast enough that you will not notice the difference, but some providers have servers closer to you than your ISP's servers. The only way to know is to try it for a few days and see if pages load noticeably quicker. If not, revert to automatic.
Can I use more than two DNS servers?
Yes. Most systems let you add a primary and secondary server, and some let you add more. Your device will use the primary server first, then fall back to the secondary if the primary does not respond. Adding a third or fourth server rarely helps — two is usually enough.
Do I need to change DNS if I already have a VPN?
A VPN encrypts your traffic and hides your IP address, but it does not change which DNS server handles your lookups unless the VPN provider runs its own DNS. If you are using a VPN for privacy, changing to a privacy-focused DNS like Cloudflare or Quad9 adds another layer, but it is not required.
What if I change DNS and my router stops working?
Log back into the router's admin panel and revert the DNS settings to automatic or to your ISP's defaults. If you cannot reach the admin panel, restart the router by unplugging it for 30 seconds. Most routers have a reset button that will restore factory settings, but that will erase all your other settings — use it only as a last resort.
Can I use different DNS servers on different devices?
Yes. You can set DNS on your router (which all devices use by default) and then override it on individual devices by setting their own DNS. This is useful if you want most devices to use one provider but your work computer to use a different one.