How to Fix Minecraft Unknown Host Error

Learn how to fix the Minecraft Unknown Host error by checking server addresses, flushing DNS cache, and adjusting your network settings.

BothEasy5 minutes
How to Fix Minecraft Unknown Host Error

The Unknown Host error in Minecraft occurs when your game client cannot resolve a server's domain name or IP address into a valid network destination. Whether you play on Java Edition or Bedrock Edition, this error usually stems from typos in the address bar, stale local DNS cache, or restrictive network firewalls. Follow these straightforward troubleshooting steps to resolve the issue and rejoin your multiplayer server.

If the server administrator provides a raw numerical IP address (such as 192.0.2.1:25565), try entering that directly into the Direct Connection box to bypass domain lookup errors completely.

If only one server gives you this error while all other public servers work fine, the server's domain registration or DNS hosting records might be down on the host's end.

Check the Server Address and Port for Typos

The most common trigger for an Unknown Host error is a simple typing mistake. In your multiplayer list, select the affected server and click Edit. Check carefully for misplaced periods, swapped letters, or accidental spaces before or after the domain address.

In Java Edition, if the server requires a non-default port, ensure it follows a colon with no spaces (for example, mc.example.com:25565). In Bedrock Edition, enter the domain into the Server Address field and place the numeric port into the dedicated Port box instead of attaching it to the URL.

Restart Your Router and Network Hardware

Temporary routing errors between your local router and your internet service provider can prevent your system from completing domain lookups. Completely shut down Minecraft, then unplug the power cable from your internet modem and router for 30 seconds.

Plug your equipment back in and wait until all status lights return to normal. Relaunch Minecraft and check your server list to see if the server status pings successfully.

Flush Your Local DNS Cache

Your operating system stores DNS records locally to speed up connections, but outdated or corrupted cache entries can cause address lookup failures. On Windows, search for Command Prompt in the Start menu, right-click it, and select Run as administrator. In the prompt window, type ipconfig /flushdns and press Enter.

If you play Java Edition on macOS, open Terminal and run sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder, entering your system password when prompted to reset your resolver cache.

Switch to a Public DNS Resolver

Standard internet service provider DNS servers sometimes fail to resolve custom Minecraft server addresses and SRV records. Switching your device or router to a reliable public DNS service often fixes the error immediately.

In your system network adapter settings, switch your DNS configuration from automatic to manual and enter either Cloudflare DNS (Primary: 1.1.1.1, Secondary: 1.0.0.1) or Google DNS (Primary: 8.8.8.8, Secondary: 8.8.4.4). Save the changes and test your connection.

Disable Active VPNs and Check Your Firewall

Virtual Private Networks (VPNs) and third-party security suites often reroute or inspect outgoing UDP and TCP packets, interfering with Minecraft's server queries. Temporarily disable any active VPN application or proxy service to test your direct connection.

Additionally, check your system firewall to verify that outgoing connections for Java (javaw.exe) on Java Edition or Minecraft on Bedrock Edition are allowed through both private and public networks. If your connection still drops or fails after resolving the host, check our guide on How to Fix Connection Timed Out for further network troubleshooting.

Frequently Asked Questions

Why does Minecraft say Unknown Host on only one specific server?

If your other multiplayer servers load normally, the problem is usually on the server host's side. The domain name may have expired, their DNS host might have misconfigured SRV records, or the hosting company may be migrating servers.

Will reinstalling Minecraft fix the Unknown Host error?

Reinstalling rarely helps because Unknown Host is a network resolution failure, not an issue with corrupted game files. Verifying the address spelling and flushing your DNS cache are much more effective solutions.

You May Also Like