iOS Error Code -1003
The hostname could not be resolved.
The hostname could not be resolved.
| Code | -1003 |
| Product | iOS |
| Company / origin | Apple · United States |
| Category | Mobile Platforms |
| Platform / versions | iOS 15 and later · NSURLErrorDomain |
| Severity | error |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-11-08 |
What does iOS error -1003 mean?
NSURLErrorCannotFindHost (-1003) means DNS resolution failed on the device. The domain may be wrong, DNS may be blocked, or the device may be using a private DNS resolver that cannot see the host.
Common causes
- The URL hostname is misspelled.
- DNS is blocked by the network or a content filter.
- A private DNS or VPN is overriding the resolver.
How to fix it
- Step 1
Check the URL and resolve the hostname from another device.
- Step 2
Disable VPN or private DNS temporarily and retry.
- Step 3
If the host is internal, confirm the VPN and DNS search domains.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
-1006 | Cannot Find Host | The DNS lookup for the host failed. |
-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-08. 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.