Bobcares

Cloudflare DNS Flush: Explained

by | Sep 15, 2022

Let us take a closer look at the Cloudflare DNS flush and configurations required to set up with the support of our Server management support services at Bobcares.

An Introduction to DNS Caching

cloudflare dns flush

In order to understand why we may need to flush the DNS cache, there are several components we need to break down. To begin, the Domain Name System (DNS) is an index of all websites and their IP addresses on the internet. Consider it a directory or phone book for websites.

Caching is the process of saving a snapshot of something (such as a web page) so that it can be reloaded more quickly in the future. As a result, DNS caching entails the Operating System (OS) or browser capturing recently-visited IP addresses and storing them in a database. This allows the browser to reload previously visited sites faster than if it had to repeatedly refer to the DNS.

Unfortunately, the DNS cache can become corrupt, allowing the usage of phishing schemes. It may also become obsolete or cause internet connectivity issues. Clearing the DNS cache can often help to resolve the problem and get back online in any of these situations.

Cloudflare DNS flush

Caching DNS allows for faster access to any domain while also reducing the load on the DNS-server by reducing the number of calls to it.

However, caching has drawbacks, one of which is the inability to open a site when the IP address to which the domain refers changes.

DNS cache clearing may be required to update information from the system DNS… Information can be cached both locally and on commonly used DNS servers (such as Cloudflare/Google).

  • removing the local cache
  • Deleting public DNS cache

Clearing local cache

A local cache is one that is kept on the device under usage. Follow the steps given below to clear the cache on various platforms.

Windows

  • Launch the command prompt.
  • Enter the following command: ipconfig /flushdns.
  • Wait for the command to finish before pressing Enter:

If the message “The desired operation needs to be promoted” appears, we must run the command line as an administrator.

If the notice “Can’t clear resolver cache DNS: Function execution error” appears, we have disabled the DNS-customer service. It is not necessary to Clear the cache DNS in this scenario because it does not work.

Linux

If we do not use a local DNS server, Linux does not cache DNS requests. If this is the case, we must establish which DNS-Server is currently running on the computer and restart it.

This is usually BIND or nscd. Depending on the DNS server chosen, we must execute one of the following commands in the terminal:

/etc/init.d/named restart for BIND

Regarding nscd:

/etc/init.d/nscd restart

macOS

  1. Launch the terminal.
  2. Run the command that corresponds to the operating system version:
  • macOS 10.12 Sierra and later:sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache
  • OS X 10.11 El Capitan:

    sudo killall -HUP mDNSResponder

  • OS X 10.10 Yosemite; versions 10.10.4 and higher:

    sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder

  • Versions 10.10.1-10.10.3:

    sudo discoveryutil udnsflushcaches

  • OS X 10.9 Mavericks:

    dscacheutil -flushcache; sudo killall -HUP mDNSResponder

  • Mac OS X 10.7 Lion and 10.8 Mountain Lion:

    sudo killall -HUP mDNSResponder

  • Mac OS X 10.5 Leopard and 10.6 Snow Leopard:

    dscacheutil -flushcache

  • Mac OS X 10.4 Tiger:

    lookupd -flushcache

Flush the Public Cloudflare DNS Cache

The public cache DNS cache is stored on used DNS-servers. Clearing the public DNS cache affects only those who utilize them.

If the device uses non-public DNS, such as the provider’s DNS-server, deleting the cache of public DNS will have no effect on the information provided by your provider’s DNS-servers.

We can set up public DNS to correct the situation and rapidly update the domain data.

Cloudflare

First, we have to open up the hosting support page. Fill in the fields and press the “Purge Cache” button:

  • “Domain Name” – Enter the domain name for which we wish to clear the cache.
  • “Record Type” — Choose the entry for which we wish to erase data from the cache.

Repeat the procedure for each record whose information needs to be updated.

Google

First, go to the Hosting page. Type in the configurations on the blanks, check the box next to “I am not a robot,” and hit the “Flush cache” button:

  • “Domain name” – Enter the Domain name
  • “RR type” — Choose the entry for which we want to delete data from the cache.

Repeat the procedure for each record whose information needs to be updated.

[Need assistance with similar queries? We are here to help]

Conclusion

To conclude we have learned more about the configurations for performing the Cloudflare DNS flush across various platforms with the support of Sever management support services.

PREVENT YOUR SERVER FROM CRASHING!

Never again lose customers to poor server speed! Let us help you.

Our server experts will monitor & maintain your server 24/7 so that it remains lightning fast and secure.

GET STARTED

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *

Never again lose customers to poor
server speed! Let us help you.