Skip to content
MtrXTools

getaddrinfo ENOTFOUND

The hostname doesn't exist in DNS

Seen in Node.js, npm, Linux and macOS resolvers

The resolver returned no address for the name.

Common causes

  • A typo or a record that was deleted.
  • An internal name used outside the network that defines it.
  • The domain's registration expired or its nameservers are broken.

How to fix it

  1. Check the spelling and that the record exists publicly.
  2. Use the correct internal DNS (VPN) for private names.
  3. Check the domain's registration and nameservers.
Look up the name

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

Related errors

All 19 Network errors