Changing DNS
You or one of your players might be getting Unknown host when trying to connect to your server. This error happens because the computer asks your ISP (Internet Service Provider) what the IP is, and your ISP replies that it is unknown.
See also: Fixing “Unknown host”
What is DNS?
Section titled “What is DNS?”DNS (Domain Name System) is the phonebook of the internet. Every time you visit a website or connect to a server, DNS translates the hostname into a numeric IP address. If your DNS is outdated or misconfigured, your computer may fail to resolve server addresses.
Try this first
Section titled “Try this first”- Close your Minecraft client.
- Completely shut down your computer (do not use restart or sleep).
- Wait at least 15 seconds.
- Unplug your router from the power outlet.
- Wait 30 seconds.
- Plug your router back in and wait for all lights to be normal.
- Turn on your computer, open Minecraft, and try connecting again.
If the issue persists, change your DNS server as described below.
Change your DNS (Windows)
Section titled “Change your DNS (Windows)”- Open Settings and go to Network & Internet.
- Click Wi-Fi or Ethernet.
- Open the adapter options and open your adapter’s Properties.
- Select Internet Protocol Version 4 and click Properties.
- Choose Use the following DNS server addresses and enter:
- Preferred:
1.1.1.1(Cloudflare) or8.8.8.8(Google) - Alternate:
1.0.0.1or8.8.4.4
- Preferred:
- Click OK, then Close.
Flush your DNS cache
Section titled “Flush your DNS cache”After changing your DNS, flush your system’s DNS cache:
- Open Command Prompt as administrator.
- Run the following command:
ipconfig /flushdnsChange your DNS (macOS)
Section titled “Change your DNS (macOS)”- Open System Preferences and click Network.
- Select your connection and click Advanced.
- Go to the DNS tab.
- Click the + button and add new DNS servers (for example,
1.1.1.1and1.0.0.1). - Click OK and then Apply.
See Fixing “Unknown host” for more troubleshooting steps.