Your internet provider assigns you a DNS server by default, and it's often slower than the free public options from Cloudflare and Google. Switching takes a few minutes on any device, and it can shave real time off page loads and matchmaking on consoles. Here's how to change it everywhere, plus which servers are worth switching to.
The DNS servers worth using
| Provider | Primary | Secondary | Known for |
|---|---|---|---|
| Cloudflare | 1.1.1.1 | 1.0.0.1 | Fastest average response time, strong privacy policy |
| 8.8.8.8 | 8.8.4.4 | Very reliable, widely compatible | |
| Quad9 | 9.9.9.9 | 149.112.112.112 | Blocks known malicious domains |
| OpenDNS | 208.67.222.222 | 208.67.220.220 | Optional content filtering |
1.1.1.1 vs 8.8.8.8
Both are free, both are run by major companies, and both are reliable enough for everyday use and gaming. The differences that actually matter:
- Speed. Cloudflare's 1.1.1.1 tests as the faster resolver in most independent speed tests, though the gap is usually a few milliseconds and depends on your location.
- Privacy. Cloudflare has committed to never selling browsing data and has it audited yearly. Google's privacy policy also states it doesn't sell DNS query data, but it's tied into Google's broader account and ad ecosystem.
- Compatibility. Both support DNS over HTTPS and DNS over TLS. Google DNS has been around longer and is the safer default if a specific device or router has compatibility issues with newer resolvers.
For most people, either works fine. If your priority is raw speed, try 1.1.1.1 first. If you want the option with the longest track record, use 8.8.8.8. You can test both against your current DNS with a DNS lookup to compare response times from your own connection.
How to change DNS on Windows 10 and 11
- Open Settings and go to Network & Internet.
- Click your active connection (Wi-Fi or Ethernet), then Edit next to DNS server assignment.
- Switch from Automatic (DHCP) to Manual.
- Turn on IPv4, and enter your preferred DNS (for example, 1.1.1.1) and alternate DNS (1.0.0.1).
- Click Save.
To confirm it took effect, open Command Prompt and run ipconfig /all, then check the DNS Servers line.
How to change DNS on Mac
- Open System Settings (or System Preferences on older macOS), then Network.
- Select your active connection and click Details (or Advanced on older versions).
- Go to the DNS tab.
- Click the + button and add your preferred DNS addresses.
- Click OK, then Apply.
iPhone DNS settings
- Open Settings > Wi-Fi.
- Tap the (i) icon next to your connected network.
- Scroll to Configure DNS and tap it.
- Switch to Manual.
- Remove the existing server and add your preferred one, then tap Save.
This only applies to that specific Wi-Fi network. If you switch networks, you'll need to repeat it, or set DNS at the router instead.
Changing DNS at the router (covers every device at once)
Setting DNS on your router applies it to every device on your network without configuring each one individually.
- Find your router's IP, usually
192.168.1.1or192.168.0.1. Check the label on the router if you're not sure. - Log in with the router's admin credentials.
- Look for DNS Settings, usually under WAN, Internet, or DHCP settings.
- Replace the ISP-assigned DNS with your preferred servers.
- Save and reboot the router.
Comcast (Xfinity) routers, along with most ISP-provided routers, ship with the ISP's own DNS set by default. Changing it here overrides that for every device that connects, including consoles.
Best DNS for gaming and PS5
DNS doesn't reduce your ping to game servers directly, ping depends on your route to the specific server. What a faster DNS does is speed up the initial connection: matchmaking, loading friend lists, and store pages, since those all involve DNS lookups before the actual game traffic starts.
On PS5:
- Go to Settings > Network > Settings.
- Select Set Up Internet Connection.
- Choose your network, then select Advanced Settings.
- Under DNS Settings, switch from Automatic to Manual.
- Enter your primary DNS (1.1.1.1 or 8.8.8.8) and secondary DNS (1.0.0.1 or 8.8.4.4).
- Confirm and test the connection from the same menu.
For gaming specifically, Cloudflare's 1.1.1.1 is a common recommendation because of its low average latency, but the real bottleneck for most gaming issues is your route to the game server or your local network congestion, not DNS. If matchmaking or store loading feels slow, changing DNS is worth trying first since it takes two minutes. If your actual in-game ping is high, DNS won't fix that.
If a DNS server stops responding
If you set a manual DNS and then see "DNS server does not respond" errors, the server may be temporarily unreachable, or a firewall or VPN is blocking the port. Switch back to automatic to confirm your internet still works, then try a different provider's DNS (for example, switch from 1.1.1.1 to 8.8.8.8) before troubleshooting further. You can check whether a specific DNS server or domain is resolving correctly at all with a DNS lookup.