Skip to content
MtrXTools

No such host is known

Windows couldn't resolve the hostname

Seen in .NET (SocketException 11001, HttpRequestException), PowerShell, Windows apps

DNS lookup failed on Windows (WSAHOST_NOT_FOUND, 11001), so no connection was attempted.

Common causes

  • A typo in the hostname or a URL passed where a host was expected.
  • The record does not exist, or only resolves on a VPN or internal network.
  • Windows has no working DNS server, or a stale entry in the hosts file.

How to fix it

  1. Check the host in the message and resolve it: Resolve-DnsName example.com.
  2. Check the DNS servers on the adapter and VPN, and C:\Windows\System32\drivers\etc\hosts.
  3. Clear the DNS cache with ipconfig /flushdns after fixing records.
Look up the name

Got a different message? Paste it into the error explainer.

Related errors

All 32 Languages & runtimes errors