macOS Error Code -1006
The DNS lookup for the host failed.
The DNS lookup for the host failed.
| Code | -1006 |
| Product | macOS |
| Company / origin | Apple · United States |
| Category | Operating Systems |
| Platform / versions | macOS 12 and later · NSURLErrorDomain |
| Severity | warning |
| Official source | Apple Developer: NSURLErrorDomain ↗ |
| Last verified | 2026-11-10 |
What does macOS error -1006 mean?
NSURLErrorCannotFindHost (-1006) means the URL loading system could not resolve the host name. The device may have a working internet connection but a broken DNS path, a VPN split-DNS problem, or a misspelled host.
Common causes
- The host name is misspelled or the domain has expired.
- DNS resolution is failing because of a resolver, VPN, or network outage.
- A split-DNS or hosts-file entry sends the name to the wrong resolver.
How to fix it
- Step 1
Check the host name and resolve it with dig or nslookup.
- Step 2
Try another DNS resolver or disconnect the VPN to isolate split-DNS issues.
- Step 3
Confirm that the host is registered and that the DNS server is reachable.
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 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-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.