How to change your DNS settings
Exact steps for Windows, macOS, iOS, Android, a router and a games console - Plus how to check afterwards that it actually took effect, which most guides leave out.
Exact steps for Windows, macOS, iOS, Android, a router and a games console - Plus how to check afterwards that it actually took effect, which most guides leave out.
Your device asks a DNS resolver to turn every domain name into an address, and by default that resolver is your internet provider's. Changing it is one of the few network adjustments that is genuinely worth doing: It is usually faster, it sidesteps the most common cause of "the internet is down", and it takes about two minutes.
This page is the mechanics. Which resolver to choose is a separate question with a separate answer.
The addresses, for reference. Enter the primary and the secondary - Both, not just the first.
Cloudflare 1.1.1.1 and 1.0.0.1
Google 8.8.8.8 and 8.8.4.4
Quad9 9.9.9.9 and 149.112.112.112
The right place to do it if you want every device covered, including the ones with no settings screen of their own: Televisions, consoles, smart speakers, printers.
192.168.1.1 or 192.168.0.1 in a browser. If neither responds, the address is printed on a label on the router.Two things to know. Some ISP-supplied routers deliberately lock the DNS fields - If the setting is greyed out, you cannot change it there and will have to set each device individually, or put your own router behind theirs. And a handful of providers intercept port 53 and answer DNS queries themselves regardless of what you configured, which is worth checking with the verification step below.
The modern route, which also enables encrypted DNS:
1.1.1.1, Alternate DNS 1.0.0.1.The classic Control Panel route still works and is sometimes quicker: ncpa.cpl in the Run box, right-click the adapter, Properties, select Internet Protocol Version 4, Properties, "Use the following DNS server addresses".
Then flush the cache from an Administrator command prompt:
ipconfig /flushdns
1.1.1.1, then + again for 1.0.0.1.Then flush:
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Note that macOS settings are per-network-service. Setting it on Wi-Fi does not affect Ethernet, and a new Wi-Fi network you join later will use the defaults again.
1.1.1.1, then again for 1.0.0.1.This is per Wi-Fi network and does not apply to mobile data at all - IOS gives no way to change the resolver on cellular without a configuration profile. Both Cloudflare and Quad9 publish free profiles that set an encrypted resolver system-wide, including on mobile data, which is the only practical route if that is what you want.
Android has two mechanisms and the good one is easy to miss.
Private DNS (Android 9 and later) - Recommended. This works on Wi-Fi and mobile data, and it is encrypted.
one.one.one.one for Cloudflare, dns.google for Google, or dns.quad9.net for Quad9.Per-network static IP is the older method: Long-press the Wi-Fi network, Modify, Advanced, IP settings → Static, then fill in DNS 1 and DNS 2. It requires you to enter a static IP address for the device too, which is fiddly and breaks if you take the device to another network. Use Private DNS instead wherever the option exists.
PlayStation 5: Settings → Network → Settings → Set Up Internet Connection → your network → Advanced Settings → DNS Settings → Manual.
Xbox Series X|S: Settings → General → Network settings → Advanced settings → DNS settings → Manual.
Nintendo Switch: System Settings → Internet → your network → Change Settings → DNS Settings → Manual.
Worth saying plainly, because it is a persistent myth: Changing DNS does not reduce ping or lag in games. Name resolution happens once, when you connect. Everything after that goes straight to the game server by IP address and never touches DNS again. It can make store pages and downloads start faster; it cannot affect in-game latency.
This is the step almost every guide omits, and it matters because several things silently override what you just set.
The easy check: Open 1.1.1.1/help. It reports whether you are reaching Cloudflare's resolver and whether the connection is encrypted.
The precise check. On Windows:
nslookup example.com
The "Server:" line at the top is the resolver actually answering you. On macOS or Linux:
dig example.com | grep SERVER
If it still shows your ISP's resolver after a restart, one of these is the reason:
Two things stop working for predictable reasons, and both are fixable.
Internal or work addresses stop resolving. Company and home-lab hostnames only exist on the local resolver, and a public one has never heard of them. On a work machine, leave DNS on automatic; on a home network, keep the router's own address as the third entry so local names still resolve.
Router-level ad blocking stops working. A Pi-hole or similar works by intercepting DNS queries. If a device now sends its queries encrypted to Cloudflare, the Pi-hole never sees them. Point devices at the Pi-hole and let the Pi-hole use the upstream resolver of your choice.
To undo any of this, set the value back to Automatic or DHCP and flush the cache. Nothing here is permanent and nothing can break the connection in a way a reset does not fix.
Yes. You are only changing which service translates names into addresses; nothing about your connection, your traffic or your security settings changes. Setting it back to Automatic reverses it completely, and no change here can break your connection in a way a reset will not fix.
It can make pages start loading slightly sooner, because the lookup that happens before every new connection completes faster. It does not increase your bandwidth and it does not reduce gaming latency - After the initial lookup, traffic goes straight to the server by IP address and never touches DNS again.
The router if you want every device covered, including televisions, consoles and smart speakers that have no settings of their own. A single device if you are testing, or if other people on the network should not be affected by your change.
Usually a VPN, which pushes its own resolver and overrides the system setting, or a browser using DNS over HTTPS, which resolves names itself and bypasses the operating system entirely. Flushing the DNS cache and checking 1.1.1.1/help will tell you which.
An honest comparison of Cloudflare 1.1.1.1, Google 8.8.8.8, Quad9 and the alternatives - Speed, privacy, filtering and reliability.
How DNS resolution fails, how to confirm it is the cause, and how to fix it - Including which resolver to switch to and why.
Exact commands for flushing the DNS cache on every major platform, plus the browser and router caches people forget about.
A layered diagnostic for working out whether the fault is your device, your network, your ISP, DNS, or the website itself.