What DNS settings do and why you might change them
DNS (Domain Name System) is what translates web addresses like google.com into the IP addresses your device actually needs to connect to. When you type a web address into your browser, your device asks a DNS server "what number does this name point to?" and the server answers back. By default, your device uses DNS servers provided by your internet service provider, but you can point it toward different ones instead.
You might change your DNS settings to use a faster service, to block certain websites, to improve privacy, or to troubleshoot connection problems. Common alternatives include Cloudflare's 1.1.1.1, Google's 8.8.8.8, or Quad9's 9.9.9.9. Each one works the same way but may have different speeds, privacy policies, or filtering features depending on which you choose.
Key Takeaways
- DNS settings can be changed at the device level (affecting only that computer or phone) or at the router level (affecting every device on your network).
- On Windows, you change DNS through Settings > Network > Ethernet or WiFi > DNS server settings, then enter the new addresses manually.
- On Mac, go to System Settings > Network > WiFi or Ethernet > Details > DNS, then add or replace the server addresses.
- On iPhone and Android, DNS changes are made in WiFi settings for that specific network, not globally for the device.
- Changing DNS at your router affects all devices connected to it at once, which is faster than changing each device individually.
Changing DNS on Windows
On Windows 10 or 11, open Settings and go to Network & Internet. Click on Ethernet if you use a wired connection, or WiFi if you use wireless. Scroll down and click "Advanced network options," then find "DNS server assignment" and click "Edit."
A window will open showing your current DNS servers. Click the toggle to turn on "Automatic (DHCP)" if it is currently on, which will reveal a manual entry option. Select "Manual" and toggle on IPv4. You will see two blank fields: one for the primary DNS server and one for the secondary. Enter the first address (for example, 1.1.1.1 for Cloudflare) in the first field and a second address (such as 1.0.0.1) in the second field. Click Save.
Windows will test the connection immediately. If the test fails, double-check that you typed the addresses correctly. If it succeeds, your device will now use the new DNS servers for all web traffic.
Changing DNS on Mac
On macOS, open System Settings and click Network in the sidebar. Select your active connection (WiFi or Ethernet) and click Details. Go to the DNS tab at the top of the window.
You will see a list of current DNS servers with a plus button below it. Click the plus button to add a new server, then type the address you want to use. To remove the old servers provided by your ISP, select each one and click the minus button. If you want to keep a backup server, add two addresses — the system will use the first one and fall back to the second if the first is unavailable. Click OK when you are done.
Changing DNS on iPhone and Android
On iPhone, open Settings and go to WiFi. Tap the network you are connected to, then scroll down and tap "Configure DNS." Select "Manual" and tap "Add Server." Type the DNS address and tap Save. This change only affects that specific WiFi network — you will need to repeat the process for other networks you use regularly.
On Android, the process varies by manufacturer, but the general path is Settings > Network & Internet > WiFi > Advanced > DNS. Tap "DNS 1" and enter your preferred server address. Some Android phones require you to forget the network and reconnect to it for the change to take effect. Like iPhone, this change applies only to the current network.
Changing DNS at your router
If you want all devices on your home network to use the same DNS servers without changing each one individually, you can set it at the router level. Open a web browser and type your router's IP address into the address bar — this is usually 192.168.1.1 or 192.168.0.1, but check your router's manual or the sticker on the back if neither works.
Log in with your router's username and password (also on the sticker if you have not changed it). Look for a section called DNS, DNS Settings, or DHCP Settings. You will see fields for primary and secondary DNS servers. Enter the addresses you want to use, save the settings, and restart the router. Every device that connects to this router will now use those DNS servers by default.
Changing DNS at the router is more efficient than changing it on every device, but it means you cannot use different DNS servers on different devices without changing the router settings again.
Testing whether your DNS change worked
After you change your DNS settings, you can verify that the change took effect. On Windows or Mac, open a terminal or command prompt. On Windows, type nslookup google.com and press Enter. On Mac, type dig google.com and press Enter. Look at the "Server" line in the output — it should show the IP address of the DNS server you just set.
On iPhone or Android, you can use a free DNS checker app from the App Store or Google Play to see which DNS server your device is currently using. If the test shows your old DNS server instead of the new one, the change did not take effect — try restarting your device or checking your settings again to make sure you entered the address correctly.
Reverting to your ISP's DNS servers
If you want to go back to your internet service provider's DNS servers, the process is the reverse of changing them. On Windows, go back to Settings > Network > DNS server settings and select "Automatic (DHCP)." On Mac, go to System Settings > Network > DNS and delete the manual entries you added. On iPhone or Android, go back to the WiFi settings for that network and select "Automatic" for DNS.
At your router, return to the DNS settings and either delete the manual entries or select an option like "Automatic" or "Use ISP DNS." Restart the router and your devices will revert to using your ISP's servers.
Frequently Asked Questions
Will changing DNS make my internet faster?
It may, depending on which DNS server you choose and your location. Some public DNS services like Cloudflare or Quad9 are optimized for speed and may respond faster than your ISP's servers. The only way to know is to test it — use a DNS speed test tool before and after the change to compare response times.
Is it safe to use a public DNS server instead of my ISP's?
Yes. Public DNS servers like Cloudflare, Google, and Quad9 are operated by established companies and are used by millions of people. They are no less secure than your ISP's servers. The main difference is privacy — some public services log less data about your browsing than others, so check their privacy policy if that matters to you.
What happens if I enter a DNS address incorrectly?
Your device will not be able to reach that DNS server and will either fail to load websites or fall back to the secondary DNS server you entered. If both are wrong, you will lose internet access until you fix the addresses or revert to automatic DNS. This is why it is helpful to have a secondary server configured as a backup.
Can I use different DNS servers on different devices at the same time?
Yes, if you change DNS on each device individually. If you change it at the router, all devices will use the same servers. You can also mix both approaches — set a default at the router and then override it on specific devices that need something different.
Do I need to restart my device after changing DNS?
On Windows and Mac, the change usually takes effect immediately. On iPhone and Android, restarting the device or reconnecting to the WiFi network ensures the change is applied. If websites still will not load after changing DNS, restart your device before troubleshooting further.