How to clear local DNS cache
- Category : Tips and Tricks
- Posted on : Jun 01, 2021
- Views : 1,214
- By : HostSEO
This guide describes how to clear local DNS cache on different operating systems:
Mac OS
Windows
Linux
Mac OS
1. Open the Terminal.app, either by starting typing Terminal on the Spotlight or by going into Applications.
2. Go to Utilities and click Terminal:
- MacOS Monterey and Big Sur
sudo dscacheutil -flushcache; sudo killall -HUP mDNSResponder
- MacOS Catalina
sudo killall -HUP mDNSResponder
- MacOS Mojave
sudo killall -HUP mDNSResponder;say DNS cache has been flushed
sudo killall -HUP mDNSResponder, sleep 2, echo macOS DNS Cache Reset | say
- MacOS Sierra and High Sierra
sudo killall -HUP mDNSResponder;say DNS cache has been flushed
- OS X El Capitan:
sudo dscacheutil -flushcache;sudo killall -HUP mDNSResponder;echo flushed
- OS X Yosemite:
sudo killall -HUP mDNSResponder
- OS X Mavericks, Mountain Lion, and Lion:
sudo killall -HUP mDNSResponder
Windows OS
Below you can find instructions on how to clear local DNS cache on different versions of Windows OS.
1. Click on the Start button .
2. Choose All Programs and click Accessories. Then click on Command Prompt:
3. In the Command Prompt window type in ipconfig /flushdns and press Enter:
4. You will see the following confirmation message: Successfully flushed the DNS Resolver Cache.
1. Click on the Start button .
2. Click All Programs > Accessories > right-click on Command Prompt and choose Run as Administrator:
3. In the Command Prompt window type in ipconfig /flushdns and press Enter:
4. Once done, you will see the following message: Successfully flushed the DNS Resolver Cache.
The Flush DNS command on Windows 8/10 is the same as on Windows 7 and Vista, the difference is only in how to open the command prompt.
1. Press the Start button > Applications > type Command prompt in the search bar:
2. In the Command Prompt window type in ipconfig /flushdns and press Enter:
3. After the cache is cleared, you will get the following message: Successfully flushed the DNS Resolver Cache.
Linux OS
One of the most commonly used DNS-caching Linux applications is NSCD (Name Service Cachine Daemon). If you have NSCD installed, you can clear the local DNS cache by running one of the following commands in your favorite terminal/shell application:
sudo /etc/init.d/dns-clean start
sudo /etc/init.d/nscd restart
$ sudo systemd-resolve --flush-caches
$ sudo systemd-resolve --statistics
That's it!
             Â
                     Need any help? Contact our HelpDesk
Categories
- cPanel Question 47
- cPanel Software Management 29
- cPanel Tutorials 13
- Development 29
- Domain 13
- General 19
- Linux Helpline (Easy Guide) 156
- Marketing 47
- MySQL Question 13
- News 2
- PHP Configuration 14
- SEO 4
- SEO 42
- Server Administration 84
- SSL Installation 54
- Tips and Tricks 24
- VPS 3
- Web Hosting 44
- Website Security 22
- WHM questions 13
- WordPress 148
Subscribe Now
10,000 successful online businessmen like to have our content directly delivered to their inbox. Subscribe to our newsletter!Archive Calendar
Sat | Sun | Mon | Tue | Wed | Thu | Fri |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 |
Recent Articles
-
Posted on : Sep 17
-
Posted on : Sep 10
-
Posted on : Aug 04
-
Posted on : Apr 01
Tags
- ts
- myisam
- vpn
- sql
- process
- kill
- tweak
- server load
- attack
- ddos mitigation
- Knowledge
- layer 7
- ddos
- webmail
- DMARC
- Development
- nginx
- seo vpn
- Hosting Security
- wireguard
- innodb
- exim
- smtp relay
- smtp
- VPS Hosting
- cpulimit
- Plesk
- Comparison
- cpu
- encryption
- WHM
- xampp
- sysstat
- optimize
- cheap vpn
- php-fpm
- mariadb
- apache
- Small Business
- Error
- Networking
- VPS
- SSD Hosting
- Link Building
- centos
- DNS
- optimization
- ubuntu