How-To

How to Change DNS on iPhone (iOS): Step-by-Step Guide

Change your DNS server on iPhone to improve speed, privacy, and security. Step-by-step iOS guide with recommended servers — Cloudflare, Google, and Quad9 — for UAE users.

6 min read

Why Change DNS on Your iPhone?

By default, your iPhone uses the DNS servers assigned by your Wi-Fi router — which are typically your ISP's servers (e& or Du in the UAE). Switching to a faster, more private DNS server can provide several benefits:

  • Speed — Faster DNS lookups mean quicker page loads, especially on first visits to new websites
  • Privacy — Third-party DNS providers like Cloudflare log less data than ISP resolvers, and support encrypted DNS (DoH/DoT)
  • Security — Providers like Quad9 and Cloudflare's 1.1.1.2 block known malware and phishing domains before your device connects
  • Reliability — Major public DNS services maintain extremely high uptime with global redundancy

To understand why DNS matters at all, read our guide: What Is DNS?

Recommended DNS Servers

ProviderPrimary DNSSecondary DNSBest For
Cloudflare1.1.1.11.0.0.1Speed + privacy
Google Public DNS8.8.8.88.8.4.4Reliability + compatibility
Quad99.9.9.9149.112.112.112Malware blocking + privacy
Cloudflare (malware block)1.1.1.21.0.0.2Security filtering
NextDNSCustom per accountCustom per accountFull customisation + logging

For a detailed comparison of these options, see our best DNS servers guide.

How to Change DNS on iPhone (Step by Step)

This method changes DNS for a specific Wi-Fi network. It works on iOS 14 through iOS 18.

  • Step 1 — Open the Settings app on your iPhone.
  • Step 2 — Tap Wi-Fi.
  • Step 3 — Tap the (i) icon next to the Wi-Fi network you are currently connected to.
  • Step 4 — Scroll down and tap Configure DNS.
  • Step 5 — Tap Manual (switching from Automatic).
  • Step 6 — Tap the red minus (−) button to remove any existing DNS server entries.
  • Step 7 — Tap Add Server and enter your primary DNS (e.g., 1.1.1.1 for Cloudflare).
  • Step 8 — Tap Add Server again and enter the secondary DNS (e.g., 1.0.0.1).
  • Step 9 — Tap Save in the top-right corner.

Your iPhone will immediately start using the new DNS servers for all traffic on that Wi-Fi network. No restart is required.

Important Limitation: Per-Network, Not System-Wide

The method above only applies to the specific Wi-Fi network you configured. If you join a different network (e.g., at work or a café), that network's DNS will be used instead. You would need to repeat these steps for each network.

Your mobile data connection (4G/5G through e& or Du) is unaffected by Wi-Fi DNS settings and continues to use your carrier's DNS. To cover mobile data, the easiest option is to install the 1.1.1.1 app by Cloudflare, which uses a local VPN profile to route DNS queries through Cloudflare system-wide.

How to Verify Your DNS Change Worked

After changing DNS, confirm it is working correctly:

  • Visit 1.1.1.1 — Cloudflare's website confirms if you're connected through their resolver.
  • Visit dnsleaktest.com — Shows which DNS servers are handling your queries and whether there are any leaks.
  • iOS Shortcuts — Search for "DNS Lookup" shortcut in the Shortcuts Gallery. Run it and check the resolver listed in the response.

How to Revert to Automatic DNS

If you want to return to your ISP's default DNS:

  • Go to Settings → Wi-Fi, tap (i) next to your network
  • Tap Configure DNS
  • Tap Automatic
  • Tap Save

Your iPhone will immediately revert to the DNS servers provided by your router via DHCP.

iOS 18 Notes

iOS 18 retains the same Wi-Fi DNS configuration path as iOS 16 and 17. Apple has not introduced a system-wide custom DNS setting in iOS — the per-network Wi-Fi approach remains the only built-in method. For system-wide coverage, the Cloudflare 1.1.1.1 app or a VPN with custom DNS settings remain the recommended approaches.

For other platforms, see our guides for Android, Windows 11, and macOS. For privacy context, read what a VPN is and how it differs from DNS changes alone.

Ready to test your speed?

Use our free tool to measure your connection in seconds.