How do I change the DNS server on each of my devices?
You can change your DNS server directly in Windows 11's network adapter settings, macOS network settings, an iPhone's Wi-Fi DNS configuration, or Android's Private DNS menu, and setting it once on your router applies it to every device connected to it.
Last updated
Changing DNS on Windows 11
Go to Settings > Network & internet, click your active Wi-Fi or Ethernet connection, and open Hardware properties. Next to "DNS server assignment," click Edit, switch from Automatic to Manual, turn on IPv4, and enter a preferred and alternate DNS.
For Cloudflare DNS, enter 1.1.1.1 as preferred and 1.0.0.1 as alternate. For Google DNS, use 8.8.8.8 and 8.8.4.4.
Changing DNS on macOS
Open System Settings > Network, select your active connection, open Details, and go to the DNS tab. Click the + button at the bottom left to add the DNS server IP you want.
If you add more than one, they are used in the order listed, so put your preferred DNS server at the top of the list.
Changing DNS on iPhone
Go to Settings > Wi-Fi, tap the (i) icon next to your connected network, and under Configure DNS switch from Automatic to Manual. Tap Add Server and enter the DNS IP you want to use.
This setting only applies to that specific Wi-Fi network — you would need to set it separately for other Wi-Fi networks or for cellular data.
Setting up Private DNS on Android
Go to Settings > Network & internet (or Connections) > Private DNS, and choose "Private DNS provider hostname." Instead of an IP address, enter a hostname such as dns.google or one.one.one.one.
Private DNS applies to both Wi-Fi and mobile data, and uses the hostname to resolve DNS over an encrypted connection — a different approach from entering an IP address directly, as on Windows, Mac, and iPhone.
Changing DNS for every device at once, on the router
Log in to your router's admin page, find the internet (WAN) or DNS settings menu, enter the DNS server IP you want, and save. Every device connected to that router then uses the same DNS automatically, with no per-device setup. If you do not know the router's IP, see find your router IP.
How do I change the DNS server on each of my devices?: step by step
- Change it on Windows 11Go to Settings > Network & internet > Hardware properties > Edit DNS server assignment, switch to Manual, and enter the DNS IP.
- Change it on macOSGo to System Settings > Network > Details > DNS tab and add the DNS server IP with the + button.
- Change it on iPhoneGo to Settings > Wi-Fi > (i) > Configure DNS, switch to Manual, and enter the server IP.
- Set Private DNS on AndroidGo to Settings > Network & internet > Private DNS and enter a hostname such as
dns.google. - Apply it once on the routerEnter the DNS server IP in your router's admin page DNS settings and save.
Frequently asked questions
Does changing DNS block ads?
A DNS service with ad-blocking features can reduce some ads, but it will not remove all of them, and blocking coverage varies by service.
How is Android Private DNS different from the Windows/Mac approach?
Windows, Mac and iPhone all use a DNS server's IP address entered directly, while Android's Private DNS uses a hostname such as dns.google to connect over an encrypted method (DNS-over-TLS).
Does iPhone have a Private DNS menu like Android?
Not by default — there is no hostname-based Private DNS menu like Android's. Instead, iPhone lets you enter a DNS server IP manually for each Wi-Fi network.
How do I revert my DNS settings?
Switch any manually configured DNS setting back to Automatic (DHCP) on each screen, and the device will use the DNS server your ISP provides by default again.