If you’re here, chances are you’re looking for a way to get rid of the “DNS server unavailable” issue currently plaguing your system.
You’ve come to the right spot. I will explain a little bit about DNS, some background info. Then I will dive into some quick fixes that should solve your problem.
I will also be explaining other tips that are a bit longer and complicated. But don’t worry, I’ll explain them in easy to follow steps.
What Exactly Is A DNS Server?
Let’s start with the meaning of the DNS – Domain Name System. I’m sure this still doesn’t mean anything to you unless you have prior knowledge of DNS.
To explain in simpler terms, DNS is basically an interpreter to your system.
Computers use the language of numbers and when we input sites to access in our browser, DNS is what translates that site into IP addresses for your system to be able to understand.
Now let’s add Server.
DNS Servers are storage spaces where all of the IP addresses of the sites we’ve visited are stored so that when we revisit, the loading time should be lower.
Now that we know how important DNS servers are to the browsing experience, let’s move on to the quick fixes that could help us fix the “DNS server unavailable” problem.
The fixes below are not totally dependable but they are worth a shot because they don’t take that much time and process.
Some of the fixes don’t even invoice changing anything in Settings or other menus, so that’s why you have to go through these ones first before moving to ensure you don’t waste time fixing something that’s really easy to fix.
You will see understand what I’m saying when you compare the quick fixes to the more in-depth fixes below.
1. Change Your Browser
Pretty easy, right? But in the right situations, you can easily solve your DNS issue by just using another browser.
This could be because it is that current browser that has issues internally with its system process. You can solve that one by reinstalling the faulty browser or clearing its data history and cache.
Change browsers and check if the “DNS servers unavailable” problem is still disturbing your system.
2. Rule Out Your Network By Using The Same Network Connection On A Mobile Phone And Checking To See If Works
The heading explains a lot. These quick fixes really help rule out a lot of issues and it also narrows down what the causes of the issue may be.
To rule out your network connection, connect your mobile device with that same connection, and visit the site you were trying to access using your system.
If the mobile device works just fine and connects with the internet, then the chances of the network connection being at fault are slim to none.
This helps you now focus on what the problem could be (maybe issues with that particular system).
The quick fixes are more like you ruling out easy causes before going into the more sophisticated fixes below.
More Solid Fixes For Fixing The “DNS Server Unavailable Issue”
The fixes below involve making a little bit more of an effort than the quick fixes above.
You will have to follow some step by step processes pretty closely to avoid any mistakes.
I will start with what I consider to be the most reliable option for fixing the “DNS server unavailable” issue then move on to other options that are quite dependable too.
3. Flushing DNS
Flushing DNS is really effective, it is a bit similar to the option of clearing cache in browsers.
Some sort of clearing out, this could help get rid of any issues disrupting the DNS server process.
I will explain flushing DNS in two different OS.
Flushing DNS In MacOS
Follow the steps below to ensure this fix works out well for you. Don’t miss out or skip any steps.
Different versions of Mac have slightly different system controls but I have tried to fashion out a method that with a little bit of adaptation, works well with all versions.
How To Flush DNS
You will need to use a Finder window to get to the Applications menu. When the Applications menu opens up, find and select the Utilities option.
In the Utilities menu, open the Terminal window.
The next part is really important so check which syntax you have to run based on the version of macOS you’re running.
- macOS Mojave – sudo killall – HUP mDNSResponder;sleep 2;
- macOS Sierra – sudo killall – HUP mDNSResponder;say DNS cache has been flushed
- macOS High Sierra – sudo killall – HUP mDNSResponder;sleep 2; echo macOS DNS Cache Reset | say
- macOS X El Capitan/Yosemite – sudo dscacheutil – flushcache;sudo killall -HUP mDNSResponder;say cache flushed
Remember that you will only use one syntax from this list based on the macOS you’re running.
Press the Return key when you’re done inputting the text above and then you will be prompted to enter your password. Do that and press the Return key again.
When you’re done, you will get an audio alert. This tells you that your DNS flushing was successful. Don’t close the Terminal just yet, there’s still a bit left to do.
Important Additional Flushing
While only the main flushing can be done above, I personally recommend that the additional flushing be performed too.
This ensures that nothing hindering your DNS server will be left behind. There are two additional caches to flush.
- UDNS Cache
- MDNS Cache
To flush this cache, use the syntax below on usually all versions.
sudo discoveryutil udnsflushcaches
To flush this cache, use the syntax below. Usually works for all versions.
sudo discoveryutil mdnsflushcache
When you’re done with the additional flushing, you can now close your Terminal window, restart your system and then check if your “DNS server unavailable” problem has been solved.
Flushing DNS In Windows
Flushing DNS in Windows is a tad easier than in MacOS. The steps are a lot shorter, that’s for sure.
You will need to enter three commands one after the other but after that, it’s pretty much goodbye to your problem.
How To Flush DNS
You definitely need the Command Prompt to run commands. Here’s what you need to do.
Use the following shortcut keys (Windows + R) to access the Run window.
When the Run window opens up, type in this text – cmd.
This should give you the Command Prompt, open the command prompt window, and enter the following commands.
Note: After each command, please press the Enter key to run that command. This is very important, so take note.
When you’re done with the exact steps above, exit the Command Prompt window and then reboot your system.
When your system comes back on, you should definitely be free from the “DNS server unavailable” problem.
4. Switching Up Your DNS Servers
This is another fix that usually works well. Especially if the DNS server is the main cause that’s making you experience the “DNS server not working” problem.
This fix can also be used by just about anybody, even people who aren’t experiencing any issues can use this fix to change their DNS servers.
Service Providers usually give users a private DNS to use and research has shown that some other public free DNS servers are actually faster than the private DNS servers.
So, this fix is now based on the premise that your current DNS server is wonky and you can kill two birds with a switch.
You can get a fully functioning DNS server as opposed to the current one, it will also be a faster public DNS server when compared with the former private one you were using.
How To Switch DNS Servers
To do this, I will be explaining two processes.
- Switching Through Your Windows OS
- Switching Through Your Router
Switching DNS Servers Through Windows
The aim here is to change to a public DNS server (I’m going to be using Google, you can also use other servers like Cloudflare)
The first step is to navigate to your Network Connection Properties.
To do that, use the shortcut keys (Windows + R) and then in the Run window, type ncpa.cpl, and press OK.
Choose the network adapter you’re using. The options are two. LAN if you’re using Ethernet, WLAN if you’re using a WiFi connection.
Right-click the option in use and a drop-down menu will appear. Go down to the last option on the menu and click on Properties.
In the Properties menu, click on the Networking tab. In the tab, select the IP version you’re using.
When you select or highlight the IP version, go slightly down to your right and select the Properties option.
When the Properties option menu opens, select the General tab (usually what it opens to).
In the General tab, skip the first option that talks about obtaining IP addresses and move to the one that has DNS settings.
Select the option that reads “Use The Following DNS Server Addresses”. You will now be allowed to make changes to your DNS server settings.
Preferred DNS Server – 8. 8. 8. 8
Alternate DNS Server – 8. 8. 4. 4
Follow the exact instructions above and input the numbers as seen in the space provided.
If you’re fearful of using this fix, know that you can always use the exact methods to obtain the previous private DNS server you were using before.
Just select the “Obtain DNS Server Automatically” option on top of the option you used above to change the DNS.
You can always change to other public DNS servers if the one you’re using isn’t as fast as you want.
Switching DNS Servers Through Your Router
This method is probably faster than the fix I explained above. You have to do something first to be able to switch DNS servers.
Accessing Your Router
You have to first find your Default Gateway address before you can be able to access your router.
To find your Default Gateway address, you’ll use a familiar process.
Finding Default Gateway
Open a command prompt. Use the following shortcut keys (Windows + R) to access the Run window.
When the Run window opens up, type in this text – cmd.
This should give you the Command Prompt, open the command prompt window and enter the following command –
When you’ve entered the command, you will see a list of options with numbers to the right.
Go through the options until you locate the Default Gateway option and copy the numbers by the right.
Then enter that exact number into a URL bar in your browser and press Enter. This will take you to your router interface.
You will be asked to log in with your details, do that, and then navigate to the Internet Account Information menu. Just look around, you’ll find it.
Switching Router DNS Server
When you open the menu above, go to the section where it says DNS Servers and choose the IP version you’re using (basically between IPv4 or IPv6).
When that’s done, then enter the public DNS server address (in this case, Google) you’re trying to use.
Preferred DNS Server – 8. 8. 8. 8
Alternate DNS Server – 8. 8. 4. 4
Input these exact numbers written above and make sure it is in the same order as above. Any slight mistake could mean your switch won’t work.
There’s a different set of numbers for IPv6, the reason it wasn’t spelled out is that IPv4 is common and most likely the version you’re using.
Preferred DNS Server – 2001:4860:4860::8888
Alternate DNS Server – 2001:4860:4860::8844
When you’re done, exit from the menu. Trying out the new DNS server is an important part of this process, so the next step is where I’ll explain the process of trying it out.
Trying Out The New DNS Server You Switched To
It is vital you try it out using the tips above so that you will be able to rule out some causes, I will explain more and you will understand as you read on.
To try out the new DNS server, there are two things involved.
The first step is to open your browser and try accessing normal and common sites like Google search.
If the site opens, then yay the DNS switch worked.
If the site does not open, don’t worry yet. Type in this IP address – 184.108.40.206 into the URL bar of your browser and hit Enter.
This usually works but if it doesn’t work still, then your browser or DNS server isn’t the issue, it probably is your internet connection.
You might need to contact the help desk of your Service Provider to ask for more information on your problem.
5. Removing Antivirus Programs
This is the less likeliest tip to work but in the mazy world of tech, you never know.
I have seen users who combine many antivirus programs to ensure maximum protection but this overload of antivirus programs has caused quite a few “DNS Server unavailable” problems to some users.
This is why it is worth a mention on this list of fixes. This is quite straightforward. If you know you’ve combined a lot of antivirus programs, disable all of them except the strongest one.
Also, be sure to check if the one you’re not going to disable is really compatible with your system processes and app.
All you have to now do is restart your system after disabling the excess programs. If the overload was the cause, your system should be free of the “DNS server unavailable” problem.
Note: Using a combination of antivirus programs does not necessarily lead to better protection. You will be more efficient in looking for the best and most compatible program among them.
Why DNS Servers Improve Browsing Speeds
Whenever you visit sites you have already visited before, a fast DNS server immediately recognizes the site address and then returns the IP address faster.
This can cut loading times by quite a bit of time when using really good public DNS servers. This is why it is important to use a solid DNS server.
Changing your DNS server is not something you should only do when the private DNS server provided by your service provider messes up.
It is something you should look into normally because gamers and other users have seen really big improvements after they switched to some public DNS servers.
Google search to get a list of good public DNS servers to use. I really hope the fixes helped you solve the “DNS server unavailable” problem on your system.
I have tried to explain the fixes in detail and in an order of efficacy. This is to ensure that usually users can just use the first fix and it should work.
Sometimes though, there are other issues that might be affecting your system that the first fix won’t solve. This is why the additional fixes are important too.
Please use the comments section below to tell us what fix worked for you and your experience while using it. I would really love to hear from you.
Thanks for reading and I hope you were able to get rid of your “DNS server unavailable” problem.