macOS Error Code -1003
The hostname could not be resolved.
The hostname could not be resolved.
| Code | -1003 |
| Product | macOS |
| Company / origin | Apple · United States |
| Category | Operating Systems |
| Platform / versions | macOS 12 and later · NSURLErrorDomain |
| Severity | error |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-11-08 |
What does macOS error -1003 mean?
NSURLErrorCannotFindHost (-1003) means DNS resolution failed for the requested host. The domain may be misspelled, the DNS server may be unreachable, or the host may not exist.
Common causes
- The hostname is misspelled or the domain has expired.
- DNS is blocked or the resolver is unreachable.
- The app is using a hostname that only exists on a different network.
How to fix it
- Step 1
Check the URL and resolve the hostname with dig or nslookup.
- Step 2
Test with a different DNS resolver or network.
- Step 3
If the host is internal, confirm VPN or DNS search domains are configured.
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 within the allowed time. |
-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.