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 *

Speed issues driving customers away?
We’ve got your back!

Privacy Preference Center

Necessary

Necessary cookies help make a website usable by enabling basic functions like page navigation and access to secure areas of the website. The website cannot function properly without these cookies.

PHPSESSID - Preserves user session state across page requests.

gdpr[consent_types] - Used to store user consents.

gdpr[allowed_cookies] - Used to store user allowed cookies.

PHPSESSID, gdpr[consent_types], gdpr[allowed_cookies]
PHPSESSID
WHMCSpKDlPzh2chML

Statistics

Statistic cookies help website owners to understand how visitors interact with websites by collecting and reporting information anonymously.

_ga - Preserves user session state across page requests.

_gat - Used by Google Analytics to throttle request rate

_gid - Registers a unique ID that is used to generate statistical data on how you use the website.

smartlookCookie - Used to collect user device and location information of the site visitors to improve the websites User Experience.

_ga, _gat, _gid
_ga, _gat, _gid
smartlookCookie
_clck, _clsk, CLID, ANONCHK, MR, MUID, SM

Marketing

Marketing cookies are used to track visitors across websites. The intention is to display ads that are relevant and engaging for the individual user and thereby more valuable for publishers and third party advertisers.

IDE - Used by Google DoubleClick to register and report the website user's actions after viewing or clicking one of the advertiser's ads with the purpose of measuring the efficacy of an ad and to present targeted ads to the user.

test_cookie - Used to check if the user's browser supports cookies.

1P_JAR - Google cookie. These cookies are used to collect website statistics and track conversion rates.

NID - Registers a unique ID that identifies a returning user's device. The ID is used for serving ads that are most relevant to the user.

DV - Google ad personalisation

_reb2bgeo - The visitor's geographical location

_reb2bloaded - Whether or not the script loaded for the visitor

_reb2bref - The referring URL for the visit

_reb2bsessionID - The visitor's RB2B session ID

_reb2buid - The visitor's RB2B user ID

IDE, test_cookie, 1P_JAR, NID, DV, NID
IDE, test_cookie
1P_JAR, NID, DV
NID
hblid
_reb2bgeo, _reb2bloaded, _reb2bref, _reb2bsessionID, _reb2buid

Security

These are essential site cookies, used by the google reCAPTCHA. These cookies use an unique identifier to verify if a visitor is human or a bot.

SID, APISID, HSID, NID, PREF
SID, APISID, HSID, NID, PREF