search
How to clear DNS cacheDec 22, 2018 am 10:41 AM


This tutorial will explain how to clear DNS cache, including those on Windows, Mac, and Linux computers.

How to clear DNS cache

# 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

How to clear DNS cache

Open Windows Command Prompt to flush DNS cache

This will open the Command Prompt window .

How to clear DNS cache

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.

How to clear DNS cache

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服务网络管理器重启

How to clear DNS cache

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 cache

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

How to clear DNS cache

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

How to clear DNS cache

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

How to clear DNS cache

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

How to clear DNS cache

Use Terminal on Mac Refresh DNS on OS X Mountain Lion

Mac OS

##Use Terminal to Flush DNS on Mac OS X Lion

Mac OS X Snow LeopardHow to clear DNS cache

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 belowHow to clear DNS cache

您可以通过转到应用程序 > 实用程序  >  终端并输入以下命令清除此操作系统上的DNS解析程序缓存  : 

sudo lookupd -flushcache

How to clear DNS cache

使用终端在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!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
What are the operation and maintenance tools under windowWhat are the operation and maintenance tools under windowMar 05, 2025 am 11:17 AM

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

How to solve the problem that Tencent Cloud has downloaded?How to solve the problem that Tencent Cloud has downloaded?Mar 05, 2025 am 11:18 AM

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

How to use Tencent Cloud Lightweight Application Server Tutorial for Using Tencent Cloud Lightweight Application ServerHow to use Tencent Cloud Lightweight Application Server Tutorial for Using Tencent Cloud Lightweight Application ServerMar 05, 2025 am 11:16 AM

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

Tutorial on the mobile version of Tencent Cloud to cancel the account without real nameTutorial on the mobile version of Tencent Cloud to cancel the account without real nameMar 05, 2025 am 11:20 AM

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

What to do if the windows installation error is not started?What to do if the windows installation error is not started?Mar 05, 2025 am 11:19 AM

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

Recommended Windows Operation and Maintenance Tools What are the Windows Operation and Maintenance Software?Recommended Windows Operation and Maintenance Tools What are the Windows Operation and Maintenance Software?Mar 05, 2025 am 11:15 AM

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

What are the main tasks of Windows Operation and Maintenance EngineersWhat are the main tasks of Windows Operation and Maintenance EngineersMar 05, 2025 am 11:14 AM

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

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
1 months agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

Notepad++7.3.1

Notepad++7.3.1

Easy-to-use and free code editor

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft