How to Change DNS Server on Any Device
How to change DNS server: change the resolver setting on the device or router that should use it, enter the provider’s published addresses, save, reconnect, and verify. Use Settings > Network & internet on Windows 11, System Settings > Network > Details > DNS on macOS, Private DNS on Android, Configure DNS on each iPhone Wi-Fi network, NetworkManager on Linux, or the WAN/LAN DNS page on a router.
What changing DNS actually changes
Your device asks a recursive DNS resolver to turn a hostname such as example.com into an address. Changing that resolver can help when the current one is unavailable, filtered, or slow to answer. It does not move your connection, change your ISP, or change a domain’s DNS records; edit those at the registrar or DNS host. If you are checking the address your ISP sees, read about public versus private IP addresses.
There are three layers: device, router, and resolver provider. A device setting normally wins; DHCP supplies a router setting to clients; a VPN, browser, or managed profile can override both. DoH and DoT encrypt only the client-to-resolver connection.
How to change DNS server at the right scope
Use the smallest scope that solves the problem. A laptop that moves between networks usually needs a device setting; a household with a TV, console, and smart devices usually benefits from a router setting.
| Goal | Best place to change it | What to remember |
|---|---|---|
| One Windows, Mac, or Linux device | That device’s active network service | It follows the device and overrides the router for that connection. |
| Every device at home | Router LAN/DHCP DNS | Clients may need a lease renewal; a manually configured device can still override it. |
| Android across Wi-Fi and mobile data | Private DNS provider hostname | Use a hostname, not a numeric IP address; a VPN may take precedence. |
| One iPhone Wi-Fi network | That network’s Configure DNS page | The built-in setting is per Wi-Fi network, not a universal cellular setting. |
| Work, school, hotel, or office network | Leave Automatic unless instructed | Internal domains and sign-in portals may depend on the local resolver. |
Compare provider policy, filtering, DNSSEC support, and reachability, then test. Examples, not endorsements:
| Provider and purpose | IPv4 addresses | Android hostname |
|---|---|---|
| Google Public DNS, general resolving | 8.8.8.8 and 8.8.4.4 | dns.google |
| Cloudflare 1.1.1.1, unfiltered resolver | 1.1.1.1 and 1.0.0.1 | one.one.one.one |
| Quad9 Secure, threat blocking | 9.9.9.9 and 149.112.112.112 | dns.quad9.net |
Use two different addresses from the same provider when it publishes a pair. Do not paste an IPv4 address into an IPv6 field, and do not mix providers casually: different filtering or DNSSEC behavior can make failures hard to diagnose.
Change DNS on Windows 11
- Open Settings > Network & internet, choose Wi-Fi or Ethernet, and select the active connection. Some builds place the control under Hardware properties.
- Find DNS server assignment and select Edit. If your build shows it under IP assignment, choose Manual, turn on IPv4, and enter the preferred and alternate DNS addresses.
- Leave IP address assignment on Automatic (DHCP) unless you are intentionally changing the address, gateway, and prefix too. In Windows 11, you can choose an automatic or manual DNS-over-HTTPS template; turning fallback off prevents a plaintext fallback but can reduce compatibility.
- Select Save, close and reopen a browser, and test. The current Microsoft path and the IPv4/IPv6 DNS-over-HTTPS choices are documented in Microsoft’s network settings guide.
Change DNS on macOS and Linux
macOS
Open Apple menu > System Settings > Network, select Wi-Fi or Ethernet, choose Details > DNS, and use the add button under DNS Servers. Add the provider’s addresses, remove an old manual entry only if you intend to replace it, then select OK and Apply. Repeat for another network service if needed. Apple’s Mac instructions also distinguish DNS servers from search domains.
Linux with NetworkManager
On an Ubuntu-style desktop, open Settings > Network, select the connection gear, open IPv4 (and IPv6 if changing both), choose automatic addresses only, enter DNS servers, and save. For the command line, run nmcli connection show, then sudo nmcli connection modify "connection-name" ipv4.ignore-auto-dns yes ipv4.dns "1.1.1.1 1.0.0.1" and sudo nmcli connection up "connection-name". NetworkManager says ignore-auto-dns suppresses DHCP servers. Do not permanently edit /etc/resolv.conf on a managed system.
Change DNS on Android and iPhone
Android
Open Settings > Network & internet > Private DNS; if missing, search Settings. Samsung and other manufacturers may use Connections > More connection settings. Choose Private DNS provider hostname, enter dns.google, one.one.one.one, or dns.quad9.net, and tap Save. It protects DNS questions and answers only, and a VPN or DNS app can override it. See Android Help.
iPhone and iPad
Go to Settings > Wi-Fi, tap the information button beside the network, scroll to Configure DNS, choose Manual, tap Add Server, enter the address, and tap Save. It applies to that Wi-Fi network only, not cellular data. Repeat for other networks. See Apple’s Wi-Fi settings guide.
Change DNS on a home router
- Open the router’s app or admin page; use the router login guide if needed.
- Back up the current values. Look under Internet or WAN for the resolver the router itself uses, and under LAN, DHCP Server, or DNS for the addresses handed to clients. Some routers have both areas.
- Disable automatic ISP DNS only where required, enter the provider’s IPv4 pair, and add its published IPv6 pair if you are changing IPv6 too. Save, then renew a client’s lease or reconnect it.
Labels vary by firmware. An ISP gateway may lock custom DNS or force its own relay; use a device setting or supported second router if so. Manual client settings, VPNs, browser Secure DNS, and managed profiles can bypass the router.
Verify the result and undo it cleanly
Test name resolution separately from connectivity. On Windows run nslookup example.com; on macOS or Linux run dig example.com; on NetworkManager systems, resolvectl status shows active links. A router address in the output may be a relay, so compare it with upstream status.
- Open Loqmi’s public IP tool before and after. Your public IP, ISP, and approximate location should normally stay the same; DNS is not an IP-changing tool.
- Open a new browser window and load several ordinary domains; use the provider’s diagnostic or the router’s WAN/DHCP status for upstream confirmation.
- Use Loqmi’s speed test only to compare overall throughput before and after. DNS can affect lookup time, not the capacity measured by a sustained download.
- If an old answer is cached, use Loqmi’s DNS cache guide. To undo the change, select Automatic or DHCP-provided DNS, remove manual entries, save, and reconnect.
Troubleshoot a DNS change that fails
Use the first symptom that matches instead of changing several network settings at once.
| Symptom | Likely cause | Next fix |
|---|---|---|
| Every site fails | Typo, unreachable resolver, or wrong IP-family field | Restore Automatic, then retry with the published pair. |
| Some sites or apps fail | Filtering, DNSSEC, cache, or app/browser Secure DNS | Check app, browser, VPN, and IPv6 settings; compare with Automatic. |
| Printer, NAS, or intranet name fails | Public resolvers do not know local names or search domains | Use the router or organization resolver, or restore Automatic. |
| Hotel or café sign-in page fails | Private DNS, DoH, or VPN blocks portal interception | Use Automatic temporarily, sign in, then re-enable the documented setting. |
| Router change does nothing | ISP lock, manual client DNS, or router relay | Check WAN and DHCP separately, renew the client, and inspect overrides. |
Key takeaways
- Choose the scope first: device for one machine, router for the household, Android Private DNS for a phone-wide setting, or iPhone Configure DNS for one Wi-Fi network.
- Use published pairs or hostnames; do not invent IPv6 values or mix providers casually.
- Leave IP assignment on DHCP, preserve the old values, and verify both ordinary domains and local names.
- Changing DNS does not change your public IP or hide all traffic; encrypted DNS protects only the DNS channel to the resolver.
Frequently asked questions
Does changing DNS make my internet connection faster?
It can make the first lookup for a domain feel quicker when your old resolver is slow or unreliable, but it cannot increase your connection's download capacity. DNS is only one early step before a site loads. Compare several sites at different times, and use a speed test for throughput rather than treating page-start time as proof of a faster line.
Can I use a public DNS server on work or school Wi-Fi?
Ask the network administrator first. Work, school, hotel, and campus networks may depend on internal names, filtering, captive-portal interception, or security monitoring. A public resolver can make printers, intranet sites, or the sign-in page fail. Keep the network on Automatic until you know the local policy, or use the organization’s documented resolver.
Why does my device still show the router as its DNS server?
Many routers advertise their own LAN address as a DNS relay. Your device can therefore query the router while the router forwards requests to the upstream resolver you selected. Check the router’s WAN or DHCP status, or use the resolver provider’s diagnostic, instead of assuming the change failed from the local address alone.
Does changing DNS stop websites from tracking me?
No. A resolver change can alter who receives your DNS queries, and encrypted DNS can protect those queries in transit, but it does not hide your public IP, browser fingerprint, cookies, account activity, or the traffic sent to the websites themselves. Read the provider’s retention policy and use a separate privacy tool only when you understand its trade-offs.
Sources
- Microsoft Support: Essential Network Settings and Tasks in Windows
- Apple Support: Change DNS settings on Mac
- Apple Support: Manage Wi-Fi settings on iPhone
- Android Help: Manage advanced network settings on your Android phone
- Google Public DNS: Get started
- NetworkManager: nm-settings-nmcli reference
- Cloudflare 1.1.1.1: Network operator endpoints
- Quad9: Service addresses and features