Using a third-party DNS server on your iPhone can boost privacy by preventing your internet service provider (ISP) from logging the websites you visit and blocking trackers at the network level. This guide walks you through configuring a custom DNS server—like Cloudflare, Google, or a privacy-focused provider—directly in iOS settings, no extra apps required.
What You’ll Need
- An iPhone running iOS 14 or later (the DNS settings are under Wi-Fi and mobile data).
- The DNS server addresses you want to use. For example, 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.
- Optional: A DNS-over-HTTPS or DNS-over-TLS profile if you want encrypted DNS (explained below).
Step-by-Step
- Open the Settings app on your iPhone. Tap the Wi-Fi icon—it’s the first section.
- Find your current network in the list. Tap the blue “i” (info) button next to it. This shows the network details.
- Scroll down to the “DNS” section. Tap “Configure DNS” (it will say “Automatic” by default).
- Switch from Automatic to Manual. Tap “Manual” at the top of the screen.
- Delete the existing DNS servers by tapping the red minus icon next to each one. You’ll see a list of servers that your router automatically assigned.
- Add your new DNS servers by tapping “Add Server”. Type the first address (e.g., 1.1.1.1). Repeat to add a second address (e.g., 1.0.0.1). You can add up to three, but two is usually enough.
- Tap “Save” in the top-right corner. Your iPhone will reconnect to the Wi-Fi network using the new DNS.
- Verify the change by visiting a site like dnsleaktest.com on your iPhone’s browser. It should show the new DNS provider’s location, not your ISP’s.
- For mobile data (cellular), the above steps only affect Wi-Fi. To change DNS on cellular, you need a VPN or a DNS-over-HTTPS profile. The simplest method is to install a configuration profile from a trusted provider (like NextDNS or Cloudflare’s 1.1.1.1 app) that forces DNS over HTTPS for both Wi-Fi and cellular.
- Optional: Enable “Limit IP Address Tracking” in Settings > Wi-Fi > your network’s info. This hides your IP from known trackers on that network.
Common Mistakes
- Forgetting to switch from Automatic to Manual—if you just type in the field without toggling, iOS might ignore it.
- Using only one DNS server—always add a secondary for redundancy. If the first fails, your iPhone will use the second.
- Typing the address wrong—a misplaced dot or number will break DNS resolution. Double-check each octet.
- Expecting cellular to change—iOS does not allow manual DNS on cellular without a VPN or profile. Many users are surprised by this.
- Not testing after setup—if you don’t verify, you might think it worked when it didn’t.
Tips
- Choose a privacy-focused DNS—providers like Cloudflare (1.1.1.1) and Quad9 (9.9.9.9) have strict no-logging policies. Google (8.8.8.8) is fast but does log some data.
- Use DNS-over-HTTPS (DoH) for encryption. Without it, your DNS queries are sent in plain text, so your ISP can still see them (though they won’t be able to log them if you’re using a third-party server, they can see the request itself). DoH encrypts the query so even your ISP can’t see which domains you’re asking for. To enable DoH, install a profile from your DNS provider—many offer one on their website.
- If you use a VPN, its DNS settings will override your manual Wi-Fi DNS. That’s fine—the VPN is already encrypting your traffic.
- Write down your original DNS servers before changing them. If you need to revert, you can quickly switch back to Automatic.
- Test with a clean browser cache—sometimes old DNS results are cached, so clear your browser history or wait a few minutes before testing.
Troubleshooting
- Websites won’t load after changing DNS—First, check that you typed the addresses correctly. Then try turning Wi-Fi off and on. If that fails, switch back to Automatic to see if the problem is with the new DNS. If it works with Automatic, your chosen DNS provider might be down—try a different one.
- The DNS settings revert to Automatic—This can happen if your router forces its own DNS via DHCP. iOS should respect your manual settings, but some routers override them. Try using a DNS-over-HTTPS profile, which is more robust.
- My iPhone shows “No Internet” after saving—This usually means the DNS server is unreachable. Double-check the IP address and try a different one. Also, ensure you’re connected to the correct Wi-Fi network.
- DNS leak test shows my ISP’s DNS—This means your manual settings didn’t apply. Go back to Wi-Fi settings and confirm the DNS section shows “Manual” and your servers. If it does, but the test still shows your ISP, your router might be using DNS proxy—try a DoH profile instead.
- Changes only work on Wi-Fi, not cellular—As mentioned, iOS doesn’t allow manual DNS on cellular. You need a VPN or a DoH profile. Many free DNS apps (like 1.1.1.1) create a VPN that also encrypts DNS, but note that this routes all your traffic through their servers.
Frequently Asked Questions
Will changing DNS slow down my internet?
Usually not. In fact, a fast DNS provider like Cloudflare can speed up browsing because they have servers worldwide. The difference is often imperceptible.
Does a third-party DNS hide my browsing history from my ISP?
It hides the DNS queries, meaning your ISP won’t see which domain names you request. However, they can still see your IP address and the amount of data you send, and they can see the IP addresses of the sites you visit (since your device connects to those IPs directly). For full privacy, use a VPN.
Can I use a custom DNS on cellular data without a VPN?
Not directly. iOS only allows manual DNS for Wi-Fi. For cellular, you need to install a DNS-over-HTTPS profile or use a VPN app that configures DNS.
What’s the difference between DNS and DNS-over-HTTPS?
Regular DNS sends your queries in plain text, which can be intercepted. DNS-over-HTTPS encrypts the query, so it’s hidden from anyone snooping on the network, including your ISP. It’s a more private option.
Will my iPhone still work if the DNS server goes down?
Yes, if you have a secondary DNS server configured. If both go down, you’ll lose internet access until you switch back to Automatic or fix the settings.
Do I need to change DNS on every Wi-Fi network?
Yes, manual DNS settings apply per network. If you connect to a new Wi-Fi network, you’ll need to configure it again. Using a DoH profile or a VPN app applies DNS globally.
Related
General steps for current mainstream versions; menus can differ by device and version. See the disclaimer or report an error.
More in this bed
- Mac Restart Problem? Fix the Error
- MacBook Sleep Mode: How to Turn It Off
- Oculus Air Link Not Working on Windows? Fixes
- Windows 10 Can’t Detect Hard Drive? Fixes That Work
- How to Archive Emails in Outlook Automatically or Manually
- Restore iPhone from Backup: iCloud & iTunes Steps