macOS · Cannot Find Host

macOS 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
ProductmacOS
Company / originApple · United States
CategoryOperating Systems
Platform / versionsmacOS 12 and later · NSURLErrorDomain
Severitywarning
Official sourceApple Developer: NSURLErrorDomain ↗
Last verified2026-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

  1. Step 1

    Check the host name and resolve it with dig or nslookup.

  2. Step 2

    Try another DNS resolver or disconnect the VPN to isolate split-DNS issues.

  3. Step 3

    Confirm that the host is registered and that the DNS server is reachable.

When to escalate

Before you escalate: If a macOS URL error persists across networks and after restarting the app, capture the code, the URL, the time, and the Console log entries for the app, then contact the app developer or Apple Support with the details.

Related codes

CodeNameWhat it means
-1003Cannot Find HostThe hostname could not be resolved.
-1001The Request Timed OutThe request did not complete within the allowed time.
-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.