What is DNS cache?

The DNS is the world’s address book that makes possible the current Internet. It is a well-recognized name system that connects domain names and IP addresses. The system is decentralized thanks to the DNS delegation, and it is separated into various DNS zones, but it is still very busy. To lower the traffic, we use a method of saving temporary DNS records called DNS cache.

​DNS cache explained.

The DNS cache is a type of cache memory (temporary) that devices and DNS resolvers have that contains all previously used DNS records of the queried domain names. Those records have the IP addresses of the domain names and their subdomains, data for their services, information about their email server, verification and authentication information, etc. The data will be saved inside this DNS cache, based on the TTL (Time to Live) value that each DNS record has.

​How can DNS cache save time and Internet bandwidth?

Let’s follow one DNS query and see how the DNS cache can save time.

Each time a client visits a domain name, it needs to get the A or AAAA records for it.

  1. First, it will check its own DNS cache. There is a file on each computer that saves previously visited domain names for the time TTL defines. If it is there, the site will be visited without any DNS query to a DNS resolver.
  2. If it is not inside the computer’s DNS cache, a query will be made to a DNS resolver (like the one in your Internet service provider ISP). If it has it inside, it will return the answer, and the client can visit the site without any more waiting. If no, it will start a long searching for the answer starting from the Root, then the TLD servers, and finally the domain name’s authoritative server.
  3. The good thing is that again, after the right DNS records are found, they will stay inside the DNS cache of the DNS resolver and the DNS cache of the client’s computer too.

The DNS resolver of an ISP will save DNS records of all visited domain names, of all clients that asked it for an answer. That way, there is a better chance to have it inside the cache memory the next time a client asks for a domain name.

​Can you delete the DNS cache?

Yes, you can delete it. However, there is a different process depending on your OS and your browser that could have another separate DNS cache. Let’s see how to do it.


  1. Open the Command Prompt or Windows PowerShell and write this command – ipconfig /flushdns.
  2. You will see a confirmation message that the DNS was flushed successfully.


  1. Open the Terminal and write this command – sudo killall -HUP mDNSResponder. Then put in your password and press the Enter.
  2. Done.

​Linux (Ubuntu 20.04 LTS)

  1. Open the Terminal and write this command – sudo systemd-resolve –flush-caches. Then put in your sudo password and press the Enter.
  2. Done.

​Google Chrome (on Edge or Opera works similarly)

  1. Copy this text chrome://net-internals/#dns. Paste it into your address bar and press Enter.
  2. On the page that it loads find Host resolver cache and click on Clear host cache.
  3. Done.


  1. Go to Preferences and then Advanced. There find Show develop menu in menu bar. 
  2. There, find Develop and then Empty Caches.
  3. Restart your browser, and you are done. 

What is DNS and how does it work?

The DNS is the reason why the Internet is even possible. It is the backbone. It is the one that facilitates the connection between hostnames, services, servers, IP addresses, and more. The DNS is a complicated, a bit old system that we use hundreds or even thousands of times a day.  

What is DNS?

DNS means domain name system. It is a hierarchy directory, where hostnames (domains) match IP addresses (numbers). It is the so much needed translator between us, the humans and the machines – servers.  We use easy to remember names that finish with TLDs (top-level domains like .com). Computers, on the other hand, work with IP addresses (like 

DNS elements

  • DNS record. The DNS records are small text files that serve a specific purpose. The A record, for example, connects domain names and IP addresses. There are plenty of DNS types.
  • DNS query. Each query searches for a DNS record. The query starts from a device and hops from a DNS server to another until one can resolve it. 
  • DNS authoritative server. This is the primary server that has the zone file. It could be further away from the users, but it will have the most up to date data. 
  • DNS recursive server. This one is kind of a middle man. It has a cache memory where it can save DNS records. The recursive server will save the information from the moment a DNS query gets successfully answered and passes through it until the moment the DNS record gets too old (depends on the TTL value). Such a server searches for the DNS records if it does not have it.  

Continue reading What is DNS and how does it work?

VPS hosting vs Dedicated hosting

Are you looking for a hosting service? Since you are not checking shared hosting, the most simple option, I assume your business has grown. Congrats! 

There are different types of hosting and lots of providers. I will explain the advantages and disadvantages of two popular choices to pick the most suitable for your business: VPS hosting and Dedicated hosting.

How does VPS hosting work?

Continue reading VPS hosting vs Dedicated hosting

Top 10 most expensive domain names

You can’t even imagine how expensive can some domain name be! No, not thousands of dollars. We are talking millions! Domain flipping, the practice of selling domain names, has been getting extremely popular and amazingly profitable. Especially for some. 

Here are the top 10 most expensive domain names of all time. They are ordered by the absolute value of the deal, but I calculated the impact of inflation, so you can see the real price in today’s money. 

Continue reading Top 10 most expensive domain names

The 4 most famous DDoS attacks in the history

Cybercrime costs billions of loss every year. Unfortunately, Distributed Denial of Service (DDoS) attacks are a plague that targets all kinds of victims: profit and non-profit organizations, international ventures, new entrepreneurships, and more. Your business can be the target. One day, you just experience traffic loads with weird behavior. All your online services (website, email, etc.) work so slow or get totally stopped and inaccessible. The nightmare of a DDoS attack gets real. Criminals are taking your business down.

Continue reading The 4 most famous DDoS attacks in the history

How to protect my website from hackers? (6 Tips)

News of big venture websites hacked are getting common. But unfortunately, hackers are really a threat to every website. It doesn’t matter the size of your business.

It’s a fact they can cause big damage to your reputation and income if they manage to steal your users’ data, inject malware on your site or distribute it among your clients. Imagine the loss in terms of time, work, and money if they hijack your site.

Continue reading How to protect my website from hackers? (6 Tips)

How to choose the best domain name for your new website? (5 Tips) 

Choosing a domain name is critical. It will be the representation of your business on the Internet, and it’s a key for clients to find you or not, increase or decrease the chances of success on the search engines.

Here you have 5 useful tips to get the best domain name for your website!

Pick a short and clear domain name. 

Short-clear names are easier to remember, pronounce, spell, and type by users. When you can’t remember a name properly, you can finish on a very different website while trying. Orthography mistakes are another possibility. The limit to build a domain name is 63 characters. Don’t go further than 15 characters!

Continue reading How to choose the best domain name for your new website? (5 Tips) 

DNSSEC – Why use it?

Do you already know what DNS is? Recently I talked about it, so now we will explore one of its problems, security. The DNS was created almost 50 years ago when the internet was young and small. Now we need to patch it, and here it comes, DNSSEC. DNSSEC is the fix that could sustain the security of all the information going around. 

Continue reading DNSSEC – Why use it?

SSL certificate – the first step towards encryption

We are buying and selling items online as never before. Our names, addresses, bank data, and far more delicate information is going around the Internet with every transaction. This data could have been extremely easy to steal if there was no way to protect it. Here comes the SSL certificate, the one that almost every e-commerce site uses to encrypt your data and protect it. 

What is a SSL certificate?

Continue reading SSL certificate – the first step towards encryption