By default your computer will often be configured to ask your ISP (Internet Service Provider), how to translate a domain name to an IP address. This can sometimes be problematic as many ISPs do not offer all the features which are now standard. This can break Minecraft Java addresses and even cause SSL errors. If you’re getting strange errors on the internet, it might be a good idea to try updating your DNS server.
Open the windows start menu and search for Control Panel
Open Network and Internet from the Control Panel
Next, open Network and Sharing Center
On the left, in the side panel click Change adapter settings
Find the network adapter that you are currently using. There might be multiple adapters enabled. If this is the case, you may need to repeat the following instructions for each network adapter. Right click, and open proprieties
In the list, find and select Internet Protocol Version 4 (TCP/IPv4)
On the bottom of the newly opened window select Use the following DNS server addresses and set Preferred DNS server to 8.8.8.8 and Alternative DNS server to 8.8.4.4
Once done, press OK to save your DNS for IPv4
In the list, find and select Internet Protocol Version 4 (TCP/IPv4)
On the bottom of the newly opened window select Use the following DNS server addresses and set Preferred DNS server to 2001:4860:4860::8888 and Alternative DNS server to 2001:4860:4860::8844
Once done, press OK to save your DNS for IPv6.
Just to make sure everything is set properly we can do a little test. This will let us know what our computer is actually using as the DNS server.
Search for the Command Prompt program. You can also enter cmd into the run program
What to run in the command prompt:
ipconfig /all | findstr "DNS\ Servers"
The output will look like: DNS Servers ...........: <DNS SERVER>
If the <DNS SERVER> doesn’t match what you entered earlier, something went wrong. Give this guide another try from the top. There can be multiple lines showing the multiple DNS servers you have set
DNS records are often saved on your computer. Sometimes upto 24 hours. Clear these records by running ipconfig /flushdns in the command line
To update the DNS server on MacOS you’ll first need to open System Preferences, this can be found by pressing the apple icon on the top left of the desktop.
Next you’ll want to find the button for editing Network Pereferences. You can search network to find this.
Select the network you’re using and press Advanced.
Navigate to the DNS tab and press the + button to the left of IPv4 or IPv6 addresses. Then enter 8.8.8.8 and 8.8.4.4. From here press OK and you should be all set.
On the top right of your desktop, open the drop down and select either Wired Settings or WiFi Settings.
Next press the gear icon next to the connection.
A window should pop up, nagivate to the IPv4 tab, disable Automatic in the DNS row and put 8.8.8.8,8.8.4.4 in the text field.
Linux uses the file /etc/resolv.conf to define the DNS servers it uses. However, this file is often managed by another program on the computer.
View the contents of /etc/resolv.conf by running cat /etc/resolv.conf. If you see a warning similar to this do not edit the file. Instead follow method 2.
If you do not see this warning, change the file contents to:
nameserver 8.8.8.8
nameserver 8.8.4.4
Systemd is a program on many linux distributions that help manage the operating system. To update the DNS we’ll edit /etc/systemd/resolved.conf.
Find A part in the file that looks like
[Resolve]
DNS=192.168.1.1
FallbackDNS=8.8.8.8
or
[Resolve]
#DNS=
#FallbackDNS=
Change lines DNS=... and FallbackDNS=... to be
[Resolve]
DNS=8.8.8.8
FallbackDNS=8.8.4.4
Save the file and run service systemd-resolved restart.