Home  >  Article  >  Operation and Maintenance  >  How to clear DNS cache

How to clear DNS cache

藏色散人
藏色散人Original
2018-12-22 10:41:298336browse


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
Previous article:What does HTTP/2 mean?Next article:What does HTTP/2 mean?