What DNS does and why you might change it
DNS is the system that translates web addresses like google.com into the numerical addresses your computer actually uses to reach websites. When you type a web address, your computer asks a DNS server "where is this website?" and gets back the answer. By default, Windows 10 uses the DNS server provided by your internet service provider, but you can change it to use a different one.
You might change your DNS for a few reasons: some DNS providers are faster, some block malicious websites automatically, and some let you control what content appears on your network. The change is straightforward and takes about five minutes. Your internet connection will keep working the same way — you are just telling Windows to ask a different service for directions to websites.
Key Takeaways
- You can change DNS through Settings by going to Network & Internet, then Advanced Network Options, then DNS Server Settings.
- Write down your current DNS addresses before you change them, in case you need to switch back.
- Popular alternative DNS providers include Cloudflare (1.1.1.1), Google (8.8.8.8), and Quad9 (9.9.9.9), each with different features.
- After you change DNS, restart your browser or wait a few minutes for the change to take effect on websites you have already visited.
How to change DNS through Windows Settings
Open the Settings app by pressing the Windows key and typing "Settings," then press Enter. Click on Network & Internet in the left sidebar. From the main menu, scroll down and click Advanced Network Options.
In the Advanced Network Options window, scroll down to the DNS section and click DNS Server Settings. You will see a toggle that says "Automatic (DHCP)." Click that toggle to turn it off. Once you turn it off, two text boxes will appear where you can enter DNS addresses.
In the first box, type the primary DNS address you want to use. In the second box, type the secondary DNS address (this is a backup in case the first one is unavailable). Click Save at the bottom. Windows will apply the change immediately, though some websites may take a minute or two to load while your computer catches up.
Common DNS addresses and what they do
Cloudflare's DNS (1.1.1.1 and 1.0.0.1) is designed for speed and privacy. It does not log which websites you visit, and it is one of the fastest DNS services available. Google's DNS (8.8.8.8 and 8.8.4.4) is reliable and widely used, though Google does keep some records of DNS queries. Quad9 (9.9.9.9 and 149.112.112.112) blocks known malicious websites automatically, which adds a layer of protection but may occasionally block legitimate sites.
OpenDNS (208.67.222.222 and 208.67.220.220) offers parental controls and can block adult content if you configure it. Each service works the same way technically — the difference is in speed, logging practices, and extra features. If you are unsure which to use, Cloudflare is a solid choice for most people because it is fast and does not track your activity.
Changing DNS on a specific network connection
If you want to change DNS for only one network (for example, your home WiFi but not a work network), you can do that through the same Settings menu. Go to Network & Internet, then click WiFi in the left sidebar. Click the network name you want to change, then click Manage.
Scroll down to DNS Server Assignment and click Edit. Turn off the "Automatic" toggle and enter your DNS addresses the same way you would in the main Settings. This change applies only to that specific network, so your other connections will keep using their original DNS settings.
How to switch back to your original DNS
If you want to return to your internet service provider's DNS, go back to Settings > Network & Internet > Advanced Network Options > DNS Server Settings. Click the toggle next to "Automatic (DHCP)" to turn it back on. Windows will immediately return to using your ISP's DNS servers.
If you wrote down your original DNS addresses before changing them, you can also type those addresses back in manually instead of switching to automatic. Either method works — automatic is simpler if you do not remember the exact addresses.
Troubleshooting DNS changes that do not seem to work
If you change your DNS but websites still load slowly or do not appear, restart your browser first. Your browser caches DNS information, so closing and reopening it often fixes the problem. If that does not work, restart your computer — this clears the system-wide DNS cache and forces Windows to use the new settings.
If a website still will not load after restarting, the DNS server you chose might be having problems, or it might be blocking that particular site. Try switching to a different DNS provider temporarily to see if the site loads. If it does, the first DNS service was the issue. If the site still will not load, the problem is not DNS — it is likely a problem with your internet connection or the website itself.
Using the Command Prompt to check your DNS settings
If you want to verify that your DNS change actually took effect, you can check through the Command Prompt. Press the Windows key, type "cmd," and press Enter to open Command Prompt. Type ipconfig /all and press Enter. Look for the line that says "DNS Servers" — it should show the addresses you just entered.
You can also type nslookup google.com and press Enter to test whether your DNS is working. If it returns an IP address, your DNS is functioning correctly. If it returns an error, try restarting your computer or switching back to automatic DNS to troubleshoot.
Frequently Asked Questions
Will changing DNS affect my internet speed?
It might improve it slightly, depending on which DNS provider you choose. Some DNS services are faster than others. If you notice your internet feels slower after changing DNS, switch back to automatic or try a different provider. The difference is usually small — a few milliseconds at most.
Is it safe to change DNS?
Yes, changing DNS is safe. You are simply telling your computer to ask a different service for directions to websites. The major DNS providers (Cloudflare, Google, Quad9) are reputable companies. The worst that can happen is a website loads slowly or does not load at all, which you can fix by switching back.
Do I need to change DNS on every device?
No. Each device has its own DNS settings. If you change DNS on your Windows 10 computer, it only affects that computer. Your phone, tablet, and other devices will keep using their original DNS unless you change them separately. If you want to change DNS for your entire home network, you can do that through your router settings instead.
What happens if the DNS server I choose goes down?
That is why you enter a secondary DNS address — it acts as a backup. If the primary server is unavailable, Windows automatically uses the secondary one. If both are down, websites will not load until one of them comes back online. This is rare with major providers like Cloudflare or Google.
Can I use different DNS servers for different websites?
No, not through Windows settings. Your computer uses the same DNS servers for all websites. Some advanced router settings allow per-website DNS routing, but that requires configuring your router, not Windows. For most people, one DNS provider for all websites is the standard approach.