iOS · Cannot Find Host

iOS Error Code -1006

The DNS lookup for the host failed.

warningLast verified 2026-11-10Apple Developer: NSURLErrorDomain
Quick answer

The DNS lookup for the host failed.

Code-1006
ProductiOS
Company / originApple · United States
CategoryMobile Platforms
Platform / versionsiOS 15 and later · NSURLErrorDomain
Severitywarning
Official sourceApple Developer: NSURLErrorDomain ↗
Last verified2026-11-10

What does iOS error -1006 mean?

NSURLErrorCannotFindHost (-1006) means iOS could not resolve the host name. Unlike -1009, the device may be online; the failure is specifically at DNS resolution.

Common causes

  • The host name is misspelled, or the domain has expired.
  • The current Wi-Fi, cellular, or VPN network cannot resolve the name.
  • A private DNS or content-filtering profile is redirecting DNS queries.

How to fix it

  1. Step 1

    Check the host name and test it on another network.

  2. Step 2

    Try Wi-Fi and cellular separately, and disconnect any VPN.

  3. Step 3

    Review DNS and content-filtering profiles if the behavior is device-specific.

When to escalate

Before you escalate: If an iOS URL error persists on Wi-Fi and cellular, after restarting the app and the device, capture the code, the URL, the time, and the Console log for the app, then contact the app developer or Apple Support.

Related codes

CodeNameWhat it means
-1003Cannot Find HostThe hostname could not be resolved.
-1001The Request Timed OutThe request did not complete before the timeout.
-1004Cannot Connect to HostThe host was found, but the connection could not be established.
-1005The Network Connection Was LostThe connection was established but then dropped.
-1009The Internet Connection Appears to Be OfflineThe device is not connected to the internet.

Source & verification

This page was checked against Apple Developer: NSURLErrorDomain on 2026-11-10. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.

Open Error Codes is independent and not affiliated with Apple. Always confirm destructive or security-sensitive steps with the official documentation.