What DNS does and why you might change it
DNS (Domain Name System) is the service that translates website names like google.com into the IP addresses your device actually needs to connect. When you type a web address, your device asks a DNS server "what number does this name point to?" — and that server answers.
By default, your device uses the DNS server provided by your internet service provider. You might change this to a different DNS provider if you want faster lookups, better privacy, or built-in filtering of malicious sites. Common alternatives include Cloudflare (1.1.1.1), Google (8.8.8.8), and Quad9 (9.9.9.9), each with different privacy policies and features.
Changing DNS is one of the simplest network changes you can make, and it takes effect when ready — you do not need to restart your device or modem. The change applies only to the device you modify, so you can test a new DNS server on one computer while others on your network keep using the old one.
Key Takeaways
- DNS translates website names into IP addresses, and your device normally uses your ISP's DNS server by default.
- You can change DNS on individual devices (Windows, Mac, iPhone, Android) without affecting other devices on your network.
- Windows and Mac users change DNS in network settings; phone users typically change it in WiFi settings or through a VPN app.
- After changing DNS, test the change by visiting a website — if it loads, the new DNS is working.
- If a new DNS server causes problems, you can revert to automatic settings or your ISP's DNS in the same place you changed it.
Changing DNS on Windows 10 and 11
Open Settings and go to Network & Internet, then select WiFi or Ethernet depending on how you connect. Click the network you are currently using, then scroll down and select "DNS server assignment" followed by "Edit."
Change the dropdown from "Automatic (DHCP)" to "Manual." Toggle on "IPv4" and enter the DNS server address in the "Preferred DNS server" field — for example, 1.1.1.1 for Cloudflare. You can add a second DNS server in the "Alternate DNS server" field as a backup; Cloudflare's alternate is 1.0.0.1. Click Save.
To verify the change worked, open Command Prompt and type nslookup google.com. The response should show the IP address for Google's servers. If it does, your new DNS is active.
Changing DNS on Mac
Open System Settings and go to Network. Select your active connection (WiFi or Ethernet) from the left sidebar, then click "Details." Go to the DNS tab.
Click the plus button at the bottom of the DNS Servers list and type the address of your chosen DNS server — for example, 1.1.1.1. You can add multiple servers; the Mac will try them in order. Click OK, then click Done to save.
To test the change, open Terminal and type nslookup google.com. You should see the IP address returned, confirming the new DNS is working.
Changing DNS on iPhone and iPad
Go to Settings, then WiFi. Tap the information icon next to the network you are connected to. Scroll down and tap "Configure DNS," then select "Manual."
Tap "Add Server" and enter the DNS address (for example, 1.1.1.1). You can add multiple servers. Tap "Save" when finished. This change applies only to that specific WiFi network — if you connect to a different network, it will use that network's default DNS unless you change it there too.
If you want to change DNS for cellular data as well, you will need to use a VPN app that offers DNS filtering, since iOS does not allow direct DNS changes for cellular connections.
Changing DNS on Android
The process varies by manufacturer, but the general path is Settings > Network & Internet > WiFi. Long-press the network you are connected to and select "Modify Network" or "Edit." Look for "Advanced Options" or "IP Settings" and change the dropdown from "DHCP" to "Static."
Scroll down to the DNS fields and enter your preferred DNS server address. Some Android versions show two DNS fields; fill in the primary and leave the secondary blank, or add a backup server. Tap Save.
If your Android device does not offer DNS settings in WiFi options, you can use a VPN app that includes DNS filtering, or change DNS at the router level so all devices on your network use the same server.
Changing DNS at the router level
If you want all devices on your home network to use the same DNS server without changing each one individually, you can set it at the router. Log into your router's admin panel — usually by typing 192.168.1.1 or 192.168.0.1 into a browser, or using your router's app.
Look for DNS settings under WAN, Internet, or DHCP settings depending on your router brand. Enter your preferred DNS server addresses in the DNS fields. Save and reboot the router. All devices that connect to that router will now use the new DNS by default.
This approach is simpler if you have many devices, but it means you cannot test different DNS servers on individual devices without changing the router back.
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 — for example, 1.1.1.1 not 1.1.1.11. If the address is correct, try flushing your DNS cache. On Windows, open Command Prompt and type ipconfig /flushdns. On Mac, open Terminal and type sudo dscacheutil -flushcache.
If problems persist, revert to automatic DNS settings in the same place you changed them. Your device will go back to using your ISP's DNS server. If that fixes the problem, the DNS server you chose may be temporarily unavailable or incompatible with your network.
Some networks — particularly corporate or school networks — block non-standard DNS servers. If you are on a managed network and cannot change DNS, contact your network administrator.
Frequently Asked Questions
Will changing DNS make my internet faster?
It may, depending on your ISP's DNS server and which one you switch to. Cloudflare and Quad9 are often faster than ISP servers, but the difference is usually small — a few milliseconds. You will notice it most when loading a new website for the first time. The best way to test is to change DNS and visit several websites you have not been to recently.
Is changing DNS safe?
Yes. Changing to a reputable DNS provider like Cloudflare, Google, or Quad9 is safe. These are large companies that operate DNS services for millions of users. The only risk is if you type the address wrong or use an unknown DNS server — in that case, websites straightforward will not load, and you can revert the change.
Do I need to change DNS on every device?
No. You can change it on individual devices, or change it once at the router and all devices will use the new server. Changing it at the router is simpler if you have many devices, but changing individual devices lets you test different servers.
What if I want to go back to my ISP's DNS?
Go back to the same settings where you changed DNS and select "Automatic" or "DHCP" instead of entering a manual address. Your device will use your ISP's DNS again when ready.
Can I use multiple DNS servers?
Yes. Most devices let you set a primary and secondary DNS server. If the primary server does not respond, your device automatically tries the secondary. This is useful for reliability but not necessary for most home users.