iOS Error Code -1006
The DNS lookup for the host failed.
The DNS lookup for the host failed.
| Code | -1006 |
| Product | iOS |
| Company / origin | Apple · United States |
| Category | Mobile Platforms |
| Platform / versions | iOS 15 and later · NSURLErrorDomain |
| Severity | warning |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-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
- Step 1
Check the host name and test it on another network.
- Step 2
Try Wi-Fi and cellular separately, and disconnect any VPN.
- Step 3
Review DNS and content-filtering profiles if the behavior is device-specific.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
-1003 | Cannot Find Host | The hostname could not be resolved. |
-1001 | The Request Timed Out | The request did not complete before the timeout. |
-1004 | Cannot Connect to Host | The host was found, but the connection could not be established. |
-1005 | The Network Connection Was Lost | The connection was established but then dropped. |
-1009 | The Internet Connection Appears to Be Offline | The 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.