iPhone DNS Error: What It Means and How to Fix It
In this article
An iPhone DNS error means Safari or an app cannot translate a website address into the server it needs, so pages fail to load even though Wi-Fi or cellular shows as connected. Most cases clear up by forgetting and rejoining the network or switching to a public DNS service in your Wi-Fi settings.
Time 10 min · Steps 6 · Level Easy
The fastest way to tell which kind of DNS problem you have: open Safari and try two different sites. If both fail but apps like Messages still send over the same connection, the DNS lookup itself is broken. If only one site fails, that site is the problem, not your iPhone. And if nothing loads at all, including iMessage, you likely have no working internet connection rather than a DNS fault.
Six Steps That Clear Most iPhone DNS Errors
- Toggle Airplane Mode. Swipe down from the top-right corner (or up from the bottom on phones with a Home button), tap the airplane icon, wait about 10 seconds, then tap it again. This forces the iPhone to re-request network settings, including DNS, from the router.
- Forget and rejoin the Wi-Fi network. Go to Settings > Wi-Fi, tap the information (i) button next to your network, then tap Forget This Network and confirm. Rejoin by selecting the network and entering the password. This clears any stale DNS assignment the phone was holding.
- Restart the router. Unplug the router's power, wait 30 seconds, plug it back in, and give it 1-2 minutes to fully restart. Routers sometimes hand out bad DNS details to every device on the network; if other devices in the house also fail to load pages, this is almost certainly the cause.
- Set a public DNS server. In Settings > Wi-Fi, tap the (i) button next to your connected network, tap Configure DNS, choose Manual, and replace the existing entries with 1.1.1.1 and 8.8.8.8 (Cloudflare and Google's public resolvers). Tap Save. This bypasses whatever DNS your router was supplying.
- Restart the iPhone. Hold the side button with either volume button until the power-off slider appears, slide it off, wait 30 seconds, then hold the side button until the Apple logo shows. A restart clears the phone's local DNS cache, which can hold a bad result for a while.
- Reset network settings if it persists. Go to Settings > General > Transfer or Reset iPhone > Reset > Reset Network Settings. This erases saved Wi-Fi passwords and VPN configurations, so you will need to re-enter them, but it returns every network setting including DNS to factory defaults.
Confirming Which Cause You Actually Have
Each cause has a quick test before you spend time fixing it. Menu names can differ slightly by iOS version, so match the wording loosely.
Bad DNS from the router
Confirm it: check another device on the same Wi-Fi. If it also fails to load pages, the router or your internet provider's DNS is at fault. Fix it by restarting the router (step 3) or setting manual DNS on the iPhone (step 4) so the phone stops relying on the router's DNS entirely.
Stuck DNS entry on the phone only
Confirm it: other devices on the same network load pages fine, but your iPhone does not. That points at the phone's own cache or settings. Fix it with the forget-and-rejoin step, then a restart, then Reset Network Settings as the last resort, in that order.
A captive portal blocking lookups
Confirm it: you are on hotel, café, airport or school Wi-Fi and Safari shows a login page, or the (i) screen shows a warning about the network. Public networks often block DNS until you sign in. Fix it by opening Safari and trying any plain http site (not https) to force the sign-in page to appear, completing it, then reloading.
VPN or content filter interfering
Confirm it: the error started after installing or enabling a VPN app or a profile from an app you installed. Fix it by going to Settings > VPN and toggling it off, then testing. If the error clears, the VPN's DNS handling is the culprit; reinstall or reconfigure it, or leave it off.
A problem with the one site
Confirm it: only one website fails and everything else loads. Fix it by waiting, since the site's own DNS may be down, or by trying the address again after a few minutes. There is nothing to change on your iPhone in this case.
Quick Checks Before You Change Anything
Run through these in order; they take under a minute and rule out the simple stuff.
- Check the Wi-Fi or cellular bars in the top-right corner. No signal means no DNS either.
- Try loading a site in Safari over cellular with Wi-Fi off. If it works, the problem is the Wi-Fi network, not the phone.
- Check the date and time in Settings > General > Date & Time. A badly wrong clock can break secure connections in ways that look like DNS failures.
- Ask whether anything changed recently: a new router, a new VPN app, or a network settings change someone else made.
Keeping DNS Errors From Coming Back
If your router keeps handing out bad DNS, set the public resolvers (1.1.1.1 and 8.8.8.8) permanently in the iPhone's Wi-Fi DNS settings rather than leaving them on Automatic. On a network you control, you can also enter those same addresses in the router's own DNS settings, which fixes every device in the house at once. Keep the router's firmware updated through its own admin page, and restart it every few weeks if it is prone to slowdowns. Avoid leaving a VPN enabled all the time if you have seen DNS errors appear only while it is on, and note the network name of any public Wi-Fi that repeatedly causes captive-portal problems so you can recognise it next time.
One caution on Reset Network Settings: it removes every saved Wi-Fi password and VPN setup on the phone, so have those passwords written down before you use it. It does not touch photos, messages or apps, only network configuration.
Official source: Apple Support