smartsub.co

Learn everything about the Tech World!

Tag Archive : Windows

How to clear the DNS cache?

Cleaning the DNS cache will remove all the DNS records that were stored inside your computer. After that, there won’t be any A or AAAA records showing which websites you have visited before. Here you can learn to flush the DNS cache!

​Clean the DNS cache on Windows (Windows 11, Windows 10, and more)

  1. Open the Command Prompt. Press “Windows Key + R”, then write “cmd” and open it.
  2. Inside the command-line interface, write “ipconfig /flushdns”, and press the Enter button on your keyboard.
  3. The result will be ready in a few seconds. You will get a configuration message “Successfully flushed the DNS Resolver Cache.

​Clean the DNS cache on macOS (Mojave 10.14, and newer)

  1. Open the Terminal application. To open it, go to Applications and then open Utilities. There you will find the Terminal application.
  2. Type “sudo kullall -HUP mDNSResponder”, and press the Return button on your keyboard.
  3. Insert your password as an administrator of the computer, and press the Return button again.

​Clean the DNS cache on Linux with Name Service Caching Daemon (NCSD)

  1. Start the Terminal application by pressing Ctrl + Alt + T buttons at the same time.
  2. Write down the following command: “sudo /etc/init.d/nscd restart”. Press the Enter button.
  3. Insert your password as an administrator of the computer, and press the Enter button again.

​Clean the DNS cache on Linux with dnsmasq

  1. Start the Terminal application by pressing Ctrl + Alt + T buttons at the same time.
  2. Write down the following command: “sudo /etc/init.d/dnsmasq restart”. Press the Enter button.
  3. Insert your password as an administrator of the computer, and press the Enter button again.

​Clean the DNS cache on Linux with Berkely Internet Name Domain (BIND)

  1. Start the Terminal application by pressing Ctrl + Alt + T buttons at the same time.
  2. Write down the following command: “sudo /etc/init.d/named restart”. Press the Enter button.
  3. Insert your password as an administrator of the computer, and press the Enter button again.
  4. Another command is needed: “sudo rndc restart”. Rndc is the name server control utility.
  5. And now use this final command: “sudo rndc exec

​Clean the DNS cache on ChromeOS

  1. First, open the Chrome browser.
  2. Then open a new tab and write the following: “chrome://net-internals/#dns”. Press the Enter button to confirm.
  3. By doing so, you will be right inside the DNS cache tab. There you will see “Host resolver cache”, and you should click on “Clear host cache”.

Clearing the DNS cache is a simple process, no matter which OS you are using. Just don’t forget to clear it of the browser too. It could have an independent DNS cache that also needs to be flushed.

​Ping command basics for testing your network

The ping command might seams too basic for many people, but it is still around, and there is a reason for that. It is one of the fastest and easiest ways to find out if a particular device is connected. Just ping it, and in a matter of moments, you will see a clear answer. 

​What is the Ping command? 

The Ping command is a command that you can find on various Oses, including Windows, Linux, macOS, FreeBSD, and more. It serves to check if there is a direct connection between your device (the origin of the command) and the target (the IP address or domain name of the one you want to check). It uses Internet Control Message Protocol (ICMP) packets that it sends to the target. The target should receive them and answer back with echo messages. The echo message travels back to the origin and shows a statistic that includes the time it took to reach the target and if there were any lost packets. 

​How to use it? 

On Windows devices, there are two ways to use the Ping command – through the Command Prompt or through the Windows PowerShell. 

On macOS and Linux, you can use it through the Terminal application. 

​What can you test with the Ping command? 

  • See if a particular device like your server is connected at the moment. If it is reachable, that means there is a connection between you and the target.
  • See if the target responds fast enough. You can check the target on a regular basis and write it down. If the target responds slower than usual, there might be a problem that you can further explore. 
  • You can check different parts of the network and see if there is a bottleneck. 
  • Keep the Ping command constantly on so you can monitor the target constantly. This can be used with your server so you can be sure it is working normally. 

​Examples of the Ping command

No matter the OS and the Software you are using (Command Prompt, Terminal, etc.), you can ping a target using their domain name or their IP address. 

ping www.google.com

ping 172.217.169.142

​How to get additional options for the Ping command? 

There are many more options that you can use with this command. You can adjust the number of the pings sent, set an interval between them, extend or shorten the TTL, and more. 

On Windows, you can write the following in the Command Prompt and see all the options: 

ping -?

On macOS, you can write the following in the Terminal and see all the options: 

ping -h

On Linux, you can write the following in the Terminal and see all the options: 

ping -h

​Conclusion. 

So, the Ping command is a basic tool for testing devices on your network. It can be found on almost any OS and works almost the same on them. Send ICMP messages and see how long it takes them to return the echo. Simple and perfect.