How to Change DNS on Windows, iPhone, Android, Mac and Your Router
Quick answer: To change DNS, replace the default DNS resolver assigned by your internet provider with a trusted provider in your device or router settings. On Windows 11, open Settings → Network & internet → Wi-Fi or Ethernet → DNS server assignment → Edit, switch from automatic to manual, and enter a valid resolver such as Cloudflare’s 1.1.1.1 and 1.0.0.1. On iPhone, open your connected Wi-Fi network’s information screen and select Configure DNS → Manual. The sections below show the differences on each platform and how to undo them.
Changing DNS can help with unreliable name resolution, offer different privacy or filtering policies, or improve lookup latency in some situations. It does not automatically make your broadband faster, bypass every regional block, or hide your public IP address. Keep a note of your old settings before editing them.
What Does Changing DNS Actually Do?
When you enter a domain such as example.com, your computer needs an address for the destination server. The Domain Name System (DNS) supplies the lookup. By default, most home networks obtain a DNS resolver automatically from the router or internet service provider. Changing the resolver tells the device or router which service to ask for those name-to-address responses.
You can change DNS at the device level for one laptop or phone, or at the router level so that connected devices which use automatic settings receive the router’s chosen resolver. Individual device settings, certain apps, VPNs, browser Secure DNS settings and enterprise policies may override the router.
Public DNS Addresses You Can Copy
| Provider | Primary IPv4 DNS | Secondary IPv4 DNS | Notes |
|---|---|---|---|
| Cloudflare 1.1.1.1 | 1.1.1.1 | 1.0.0.1 | General-purpose public DNS |
| Google Public DNS | 8.8.8.8 | 8.8.4.4 | General-purpose public DNS |
| Cloudflare Families — malware filtering | 1.1.1.2 | 1.0.0.2 | Different filtering policy; not identical to default Cloudflare |
Use a matching primary and secondary pair from the same provider when practical, especially if its filtering policy matters to you. Simply specifying an IP address for traditional DNS does not necessarily enable encryption. DNS over HTTPS (DoH) or DNS over TLS (DoT) must be enabled separately where available and supported.
How to Change DNS on Windows 11
- Right-click the Start button or open Start and choose Settings.
- Select Network & internet.
- Choose the connection you actively use: Wi-Fi or Ethernet. Open the connection’s properties if required.
- Find DNS server assignment and click Edit.
- Change Automatic (DHCP) to Manual. Turn on IPv4.
- Enter
1.1.1.1under Preferred DNS and1.0.0.1under Alternate DNS. - If Windows offers a DNS over HTTPS encryption option, choose a supported configuration for the selected resolver. Do not claim your queries are encrypted unless the setting is active and working.
- Save, wait for the network to reconnect if needed and test a normal website.
Undo: Return to the same panel and choose Automatic (DHCP) to restore the resolver supplied by your network. If an organization manages the computer, do not override its DNS policies without authorization.
How to Change DNS on Windows 10
On Windows 10, you can use the adapter-properties approach. Go to Control Panel → Network and Sharing Center → Change adapter settings. Right-click the active Ethernet or Wi-Fi adapter and choose Properties. Double-click Internet Protocol Version 4 (TCP/IPv4), select Use the following DNS server addresses and type your preferred and alternate DNS IPs. Click OK, then close the dialogs.
Do not accidentally change Obtain an IP address automatically unless you specifically need a static network address. The IP address your PC receives and the DNS resolver it uses are related network settings but are not the same field.
How to Change DNS on an iPhone or iPad
- Connect the phone to the Wi-Fi network you wish to configure.
- Open Settings → Wi-Fi and tap the information ⓘ icon next to the active network.
- Scroll to Configure DNS and change Automatic to Manual.
- Remove an unwanted existing resolver from the manual list if appropriate; select Add Server and enter
1.1.1.1. Add1.0.0.1as the second server. - Tap Save. Test normal browsing on that same Wi-Fi connection.
Important: iPhone’s manual Configure DNS setting applies to that particular Wi-Fi network. It does not change every Wi-Fi network and does not, by itself, apply to cellular data. A separate reputable DNS profile or app may support broader coverage and encrypted DNS, but read its privacy and VPN-profile permissions carefully.
How to Change DNS on Android
Android menus differ by phone maker. On many modern Android devices, navigate to Settings → Network & internet → Private DNS. Choose Private DNS provider hostname and enter a supported hostname, such as one.one.one.one for Cloudflare or dns.google for Google. Save the change and test connectivity.
Do not type 1.1.1.1 into the Private DNS hostname field. That particular setting generally expects a provider hostname for DNS over TLS, not a raw IPv4 address. If you instead edit a particular Wi-Fi connection’s advanced IP settings, it may offer DNS IP fields, but some devices require static addressing in that menu; that can be more error-prone.
If you lose access to websites, switch Private DNS back to Automatic. School, hotel and captive-portal networks may not work with a manually required secure DNS provider until you complete the network’s sign-in process.
How to Change DNS on macOS
- Open System Settings → Network.
- Select the active Wi-Fi or Ethernet service and open its Details panel if shown.
- Choose DNS.
- Add your resolver addresses with the plus button, using
1.1.1.1and1.0.0.1as an example. - Review the list, apply the change and reconnect or test if necessary.
For older macOS releases, the same feature may be under System Preferences → Network → Advanced → DNS. To return to your previous configuration, remove manually specified DNS servers so the device can use the network-provided defaults again.
How to Change DNS on a Home Router
Router configuration can affect every device that relies on the router’s DNS settings, but exact screens vary by brand and firmware. The featured photograph shows physical router hardware, not a particular router’s administration page. Always use the instructions for your specific model.
- While connected to your home network, find the router’s management address from its instructions or current network gateway information.
- Sign in using the administration credentials you legitimately control. Do not confuse the router admin password with your Wi-Fi password.
- Look for Internet / WAN, DNS, or DHCP / LAN DNS. Some routers offer a separate DNS setting for the router’s upstream resolver and for the addresses handed to clients.
- Write down the existing settings, then enter your chosen provider’s primary and secondary addresses.
- Save or apply changes. Allow the router to reconnect if prompted; reconnect client devices or renew their leases if they continue using old addresses.
Note: Certain ISP-supplied routers lock DNS settings, and some networks automatically intercept DNS. In those situations, configure an individual permitted device or contact the network administrator; do not attempt to bypass organizational security controls.
How to Check Whether the New DNS Is Working
A successful save is useful but does not prove every app is using the selected resolver. Try this short verification sequence:
- Load two or three trusted websites you have not just opened.
- Use a provider’s DNS diagnostic page when available, such as Cloudflare’s 1.1.1.1 help tool, to inspect whether your lookup is reaching that service. A diagnostic may be influenced by browser settings or VPNs.
- On Windows, open Command Prompt and run
ipconfig /flushdnsto clear the local DNS resolver cache if a stale answer seems likely. This is optional; do not use it reflexively for every website issue. - If one browser behaves differently, check its Secure DNS or DNS-over-HTTPS setting. A browser can use a different resolver from your operating system.
A lookup returning the expected IP address is not enough by itself to prove which resolver answered it. If you troubleshoot a complex network, tools such as nslookup or dig can help identify the configured resolver, but remember that encrypted DNS, VPNs and application-level DNS make the full picture less simple.
DNS Settings That Commonly Go Wrong
| Problem | Likely explanation | What to do |
|---|---|---|
| No websites load after editing | Address mistyped or chosen server unreachable | Restore automatic DNS, then re-enter a validated address |
| Android Private DNS will not connect | IP entered where a hostname is required, or network blocks DoT | Use provider hostname or return to Automatic |
| One app works, another fails | App, VPN or browser uses different DNS settings | Check app and encrypted DNS configuration |
| Changes work on Wi-Fi but not cellular | Manual phone setting applies to Wi-Fi only | Use an approved system-wide solution if needed |
| Router setting seems ignored | Client has manual DNS, VPN override or cached lease | Check client-level DNS and reconnect device |
| Website still unavailable | Server outage, routing or account problem rather than DNS | Test another website and consult the official status page |
If a game reports a connection error, a DNS change is one possible test—not an automatic fix. See our Roblox Error 279 troubleshooting guide for a broader sequence. If a chat service is unreachable, check its status first, using our Discord outage-checking guide, before changing network settings.
Is a Different DNS Provider Faster or More Private?
“Fastest DNS” depends on your geographic location, ISP routing, resolver cache, device and time of day. A provider with a low lookup delay may improve the first step of opening a site, but file-download bandwidth and game latency depend on many other network paths. Privacy policies differ: choose a trusted resolver after reviewing its logging and data-retention practices.
Encryption matters separately: Traditional DNS over port 53 is not encrypted by default. A modern operating system, app or browser may use DNS over HTTPS or DNS over TLS. Those technologies protect DNS queries in transit to the resolver but do not make all browsing anonymous or protect traffic at every layer. A VPN is another distinct technology with its own trust and security trade-offs.
Frequently Asked Questions
Is changing DNS safe?
Changing to a reputable public resolver is a common and reversible setting on a home device. Save your original configuration first and follow organization or school network policies where applicable.
What are the best DNS addresses for gaming?
Cloudflare and Google are widely used public options, but neither guarantees lower in-game ping. DNS is typically involved when looking up the service’s address, while latency during gameplay depends much more on routing and server location.
Does changing DNS change my IP address?
No. Changing which DNS server answers name lookups ordinarily does not replace your public IP address or alter your internet subscription.
Can I change DNS only for one device?
Yes. Set it on that device instead of the router. Remember that app-level DNS or a VPN can supersede it.
How do I reset DNS to normal?
Choose Automatic DNS or DHCP for the network adapter, device or router you edited. On iPhone choose Configure DNS → Automatic; on Android set Private DNS → Automatic.
Official Sources and Photo Credit
Steps and provider values checked against Cloudflare’s Windows setup documentation, Android DNS instructions, iOS-specific limitations, and Apple’s Wi-Fi settings guide.
Featured photograph: Raysonho / Wikimedia Commons, CC0 public-domain dedication. It shows a real home router and attached cables, not a DNS administration screen.
