This tutorial will explain how to clear DNS cache, including those on Windows, Mac, and Linux computers.
# A faulty or outdated DNS resolver cache will display incorrect information or errors when you visit a website. Due to recent DNS changes, the following scenarios may occur. Therefore, it is important to know how to flush the DNS cache and resolve this issue easily.
How to Clear DNS on Windows
Step 1 - Launch Windows Command Prompt Console
Press Windows R combination key to open the Run dialog box. Type the following command and click the OK button:
CMD
Open Windows Command Prompt to flush DNS cache
This will open the Command Prompt window .
Prepare to refresh DNS using Windows
Step 2 - Clear DNS
Use this command to clear your computer DNS resolver cache:
ipconfig / flushdns
Wait a moment and you will see confirmation that the DNS resolver cache has been flushed.
Successfully Flush DNS on Windows
How to Flush DNS on Linux
Clear DNS Cache or Linux It's a very simple process. The syntax for flushing DNS may vary depending on the operating system you are running.
Ubuntu Linux
Open a terminal and execute the following command:
sudo服务网络管理器重启
Refresh DNS on Ubuntu Linux via Terminal
Other Linux distributions
If you are any other Linux distribution, this command will do the following:
sudo /etc/init.d/nscd restart
Flush DNS on any Linux operating system via Terminal
How to clear DNS on Mac
Clear DNS Cached commands will vary depending on your operating system version.
Mac OS Sierra
To refresh DNS on this version of Apple OS, navigate to Applications > Utilities > Terminal and enter the following command:
sudo killall -HUP mDNSResponder
Refresh DNS on Mac OS x Sierra using Terminal
Mac OS X El Capitan
If The same process will work if you are a user of this operating system. Open Applications > Utilities > Terminal and enter:
sudo killall -HUP mDNSResponder
Use Terminal to Refresh DNS on Mac OS X El Capitan
Mac OS ##Refresh DNS on Mac OS X Yosemite using Terminal
Mac OS Programs > Terminal and execute:
sudo discoveryutil udnsflushcaches
Using Terminal to Refresh DNS on Mac OS X Mavericks
Mac OS X Mountain Lion
Users of this Mac OS version can use this command to go into Applications > Utilities > Terminal and refresh DNS:
sudo killall -HUP mDNSResponder
Use Terminal on Mac Refresh DNS on OS X Mountain Lion
Mac OS
##Use Terminal to Flush DNS on Mac OS X LionMac OS X Snow Leopard
If you are running this version, please Jump to Applications > Utilities > Terminal and enter:
sudo killall -HUP mDNSResponder
Use Terminal to Refresh DNS on Mac OS X Snow Leopard
Mac OS X Leopard and below
您可以通过转到应用程序 > 实用程序 > 终端并输入以下命令清除此操作系统上的DNS解析程序缓存 :
sudo lookupd -flushcache
使用终端在Mac OS X Leopard或更低级别上刷新DNS
注:浏览器缓存也可能是错误显示网页的原因。
The above is the detailed content of How to clear DNS cache. For more information, please follow other related articles on the PHP Chinese website!

This article reviews Windows-based server management tools. It compares free (PowerShell, Windows Admin Center) and commercial options (SCCM, Azure Arc), highlighting their functionality, cost, and complexity. The choice depends on needs, budget, a

This article guides users on opening files downloaded from Tencent Cloud. It addresses common issues like corrupted downloads, incompatible file formats, and software conflicts, offering troubleshooting steps and suggesting contacting Tencent Cloud

This guide details using Tencent Cloud Lightweight Application Servers (LAS). It covers account setup, instance creation (specifying region, configuration, image, security, and storage), and application deployment. Key features include cost-effecti

Deleting unregistered Tencent Cloud mobile accounts is impossible without verification. The article explains why account deletion requires verification and details how uninstalling the associated app is the most effective workaround to sever the app

This article addresses common Windows installation and boot errors. It details troubleshooting steps for issues like corrupted media, hardware problems, driver conflicts, partitioning errors, BIOS settings, and software conflicts. Solutions include

This article reviews free and paid Windows server administration tools. It compares built-in options like Server Manager & PowerShell with commercial solutions such as SolarWinds and Microsoft System Center, emphasizing the trade-offs between co

This article details the key responsibilities and essential skills of a Windows systems administrator. It covers system installation/configuration, monitoring/troubleshooting, security management, backup/recovery, patch management, automation, and u


Hot AI Tools

Undresser.AI Undress
AI-powered app for creating realistic nude photos

AI Clothes Remover
Online AI tool for removing clothes from photos.

Undress AI Tool
Undress images for free

Clothoff.io
AI clothes remover

AI Hentai Generator
Generate AI Hentai for free.

Hot Article

Hot Tools

SAP NetWeaver Server Adapter for Eclipse
Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version
Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version
Visual web development tools

Notepad++7.3.1
Easy-to-use and free code editor

VSCode Windows 64-bit Download
A free and powerful IDE editor launched by Microsoft
