Skip to main content
warningConnection ErrorsAffects: All versions

How to Fix Unable to Resolve Hostname

Fix Unable to Resolve Hostname by using the IP address directly and flushing DNS cache.

Quick Fix

Try connecting with the server's IP address instead of hostname. Flush your DNS cache.

Error Message

Can't resolve hostname / Unknown host

How to Fix

1

Try using the direct IP address instead of hostname

2

Flush DNS cache: ipconfig /flushdns (Windows), sudo dscacheutil -flushcache (Mac)

3

Change DNS to 8.8.8.8 or 1.1.1.1

4

Contact server admin about DNS configuration

Common Causes

  • DNS cannot resolve the server domain name
  • Server domain expired or misconfigured
  • Local DNS cache stale

Diagnostic Steps

  1. Try the IP address directly
  2. Flush DNS cache
  3. Change DNS servers
  4. Contact admin if hostname is broken

FAQ

How do I find a server's IP from its hostname?

Use nslookup <hostname> in a terminal. It will show the IP address. You can also use an SRV record lookup tool.

Related Errors

Need More Help?