How to Clear DNS Cache on iOS: Step-by-Step Guide
In this article
On iPhone and iPad, there is no user-facing button that clears the DNS cache, and Apple does not provide a dedicated setting for it. The practical way to force iOS to drop cached DNS records and look up fresh ones is to toggle Airplane Mode on and off, or to restart the device; both cause the networking stack to reset its resolver state. If you need a guaranteed flush, the only reliable method is to connect the device to a computer and reset the network configuration through a full network settings reset, which also erases saved Wi-Fi passwords. This guide explains what each method actually does, when it is worth doing, and what to do when DNS problems persist anyway.
DNS (Domain Name System) is the lookup service that turns a hostname like example.com into an IP address. iOS caches those answers for a period so pages load faster and repeat lookups do not hit the network. When a site moves to a new server, a domain's records change, or a router hands out a bad DNS server, the stale cached answer can keep sending you to the wrong place. Clearing the cache is a common fix for that class of problem. It is worth saying clearly: this is a diagnostic step, not routine maintenance, and it will not fix a broken connection, a captive portal, or an app-specific bug.
What You'll Need
- Your iPhone or iPad, charged enough to restart without shutting down mid-boot.
- Your Wi-Fi network name and password, if you plan to reset network settings, because saved networks and passwords are removed.
- A computer with Finder (macOS Catalina or later) or iTunes (Windows and older macOS) only if you intend to use the more thorough network reset route.
- The exact address of the site or service that is misbehaving, so you can test before and after.
Step-by-Step
Start with the lightest method and only move down the list if the problem continues. Menu labels can differ slightly between iOS versions and between iPhone and iPad, but the paths below are the standard ones.
- Confirm the problem is DNS-related. Open Safari and load a site you have not visited recently. If it loads but the problem site does not, or the problem site loads over cellular data but not Wi-Fi, a stale or bad DNS answer is a plausible cause. If nothing loads at all, skip ahead to Troubleshooting.
- Toggle Airplane Mode. Open Control Center (swipe down from the top-right corner on Face ID devices, or swipe up from the bottom on Home button devices) and tap the airplane icon. Wait about 15 to 30 seconds with the icon orange, then tap it again to turn radios back on. This drops and re-establishes the network interfaces, which in practice makes iOS re-resolve hostnames.
- Test the same site again. If it now loads correctly, you are done. If it still fails, continue.
- Restart the device. Press and hold the side button plus either volume button until the power slider appears, drag it, wait for the screen to go dark, then hold the side button until the Apple logo appears. A restart clears more resolver state than Airplane Mode alone.
- Forget and rejoin the Wi-Fi network. Open Settings > Wi-Fi, tap the info button (the i in a circle) next to your network, and choose Forget This Network. Then tap the network name and enter the password again. This forces a fresh DHCP lease and a fresh DNS server assignment from the router.
- Change the DNS servers on the device. In Settings > Wi-Fi, tap the info button next to your network, scroll to Configure DNS, switch from Automatic to Manual, and add a public resolver such as 1.1.1.1 or 8.8.8.8 alongside the existing entry. Remove the old servers if you want the device to use only the new ones. This does not clear the cache directly, but it changes which server answers future queries, which resolves many stale-record situations.
- Reset network settings as the thorough option. Open Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings. Confirm with your passcode. The device restarts and all saved Wi-Fi networks and passwords, cellular settings, VPN configurations and Bluetooth pairings are erased. Nothing in your photos, apps, messages or accounts is deleted, but you will need to rejoin Wi-Fi and re-pair Bluetooth accessories. Do this only when the earlier steps have failed.
- Test and record the result. Rejoin Wi-Fi, open the problem site, and note whether it now resolves. If it does, the cause was a stale or misconfigured DNS entry on the device side.
Common Mistakes
- Looking for a DNS cache button in Settings. There is not one. Guides that describe a toggle under Settings > Safari or Settings > General are describing something else, usually clearing website data or history, which does not touch the DNS resolver.
- Clearing Safari history and data and expecting DNS to reset. That removes cookies, cache and browsing history for the browser, not the system's name-resolution cache.
- Resetting network settings first. It works, but it costs you every saved Wi-Fi password and Bluetooth pairing. Try Airplane Mode and a restart first.
- Assuming the device is at fault. If every device on the same Wi-Fi has the same problem, the router or the upstream DNS server is the cause, and resetting the phone will not help.
- Forgetting VPN and DNS profiles. A VPN app or a configuration profile can override DNS. If one is installed, disconnect it and retest before resetting anything.
Tips
- Change one thing at a time and retest, so you know which step actually fixed it.
- If you use a custom DNS server, note the addresses before resetting network settings so you can re-enter them.
- Restarting the router is often faster than resetting the phone when the problem affects the whole household. Unplug it for 30 seconds, plug it back in, and wait for the lights to settle.
- Private Relay, if enabled in your iCloud settings, routes DNS through Apple's infrastructure and can change how lookups behave. Turn it off temporarily when diagnosing.
- Keep iOS updated. Resolver behaviour is part of the operating system, and updates occasionally change how caching is handled.
Troubleshooting
If the site still fails after a restart and a Wi-Fi rejoin, work through these checks in order.
- Test on cellular data. Turn Wi-Fi off and load the site. If it works on cellular but not Wi-Fi, the router or its DNS settings are the problem, not the phone.
- Test another device on the same network. The same failure on a laptop points to the network. A working laptop points back to the phone.
- Check for a VPN or proxy. Open Settings and look for VPN near the top of the list. Disconnect any active VPN and retest.
- Try a different DNS server. Set 1.1.1.1 manually as described above and retest. If that fixes it, your previous DNS server was returning bad answers.
- Check whether the site itself is down. Load an unrelated site. If only one domain fails everywhere, the problem is on that domain's side.
- Update iOS. Open Settings > General > Software Update and install any available update, then retest.
- Contact your carrier or ISP if cellular data also fails for the same domain, since the resolver in use may be theirs.
Frequently Asked Questions
Is there a built-in DNS cache clear button on iPhone?
No. Apple does not expose a DNS cache flush in Settings. Toggling Airplane Mode, restarting, or resetting network settings are the available user-level methods.
Does clearing Safari history clear the DNS cache?
No. Clearing history and website data removes browser storage, not the system resolver's cached records.
Will resetting network settings delete my photos or apps?
No. It removes saved Wi-Fi networks and passwords, cellular settings, VPN configurations and Bluetooth pairings. Your data, apps and accounts stay intact.
How often should I clear the DNS cache?
Only when you have a reason, such as a site that moved servers or a domain that resolves incorrectly. It is not routine maintenance.
Why does the problem come back after a restart?
Because the underlying cause was not the cache. A router handing out a bad DNS server, a VPN, or a domain with incorrect records will reproduce the same result after any flush.
Can I flush DNS without a computer?
Yes. Airplane Mode, a restart and a Wi-Fi rejoin are all done on the device itself. No computer is required for any of the steps above.