chrome dns缓存_如何在Windows上清除Google Chrome DNS缓存

本文介绍了如何通过Google Chrome浏览器和Windows 7/8系统来刷新和清除DNS缓存,以解决可能遇到的主机连接错误。通过Chrome的`chrome://net-internals/#dns`地址可以清除主机缓存,而在Windows中,可以通过`ipconfig /flushdns`命令来刷新DNS。
摘要由CSDN通过智能技术生成
chrome dns缓存

chrome dns缓存

Flushing your DNS cache can be a useful tool to resolve any host connection errors that you may experience with Google Chrome or other browsers. It is very simple to do and can be done directly in Chrome or from an Elevated Command Prompt window in Windows 7 or 8.

刷新DNS缓存是解决您可能在使用Google Chrome或其他浏览器时遇到的任何主机连接错误的有用工具。 这非常简单,可以直接在Chrome中执行,也可以从Windows 7或8中的“升高的命令提示符”窗口中完成。

什么是DNS缓存? (What is the DNS Cache?)

Your browser’s DNS Cache (Domain Name System) is essentially a small databank that stores all the IP (Internet Protocol) addresses for websites you access. The main purpose of this database is to make it easier for your computer to reach and access the IP addresses of websites when their servers change or if they create new servers.

浏览器的DNS缓存(域名系统)本质上是一个小型数据库,用于存储您访问的网站的所有IP(互联网协议)地址。 该数据库的主要目的是使服务器更改或创建新服务器时,计算机可以更轻松地访问和访问网站的IP地址。

When IP addresses become outdated or if a website switches to a new server, you may encounter DNS errors when you try to access them. Sometimes, due to continued use and accessing sites with a less than perfect web safety rating, your DNS cache may also become corrupted. This is where a DNS cache flush comes in handy.

当IP地址过期或网站切换到新服务器时,尝试访问它们时可能会遇到DNS错误。 有时,由于持续使用和访问网站的网络安全评级不尽人意,您的DNS缓存也可能会损坏。 这是DNS缓存刷新很方便的地方。

什么是冲洗? (What is Flushing?)

Just like flushing a toilet and getting rid of any old water that is stored in the tank, a DNS flush will make your computer erase any existing information regarding DNS names and IP addresses that is has stored. After you perform a flush, the next time you try to access a website, your computer will ask for all the new IP and DNS information related to that site resulting in an error free browsing experience.

就像冲洗厕所并清除水箱中存储的所有旧水一样,DNS冲洗将使您的计算机清除已存储的有关DNS名称和IP地址的任何现有信息。 执行刷新后,下次尝试访问网站时,计算机将询问与该网站相关的所有新IP和DNS信息,从而提供无错误的浏览体验。

通过Google Chrome刷新缓存 (Flushing your Cache through Google Chrome)

If you experience any DNS or host error related browsing issues, it can sometimes help to perform a DNS and Socket flush using your Google Chrome browser. In order to fix these problems, follow these simple steps.

如果您遇到任何与DNS或主机错误相关的浏览问题,有时可以帮助您使用Google Chrome浏览器执行DNS和套接字刷新。 为了解决这些问题,请按照以下简单步骤操作。

Begin by opening Google Chrome and type in this address: chrome://net-internals/#dns and press “Enter.”

首先打开Goog​​le Chrome浏览器,然后输入以下地址: chrome:// net-internals /#dns ,然后按“ Enter”。

If you look at our screenshot, you will notice that there are 24 active entries and a list with details of all the IP addresses that the DNS cache has picked up and stored.

如果查看我们的屏幕截图,您会注意到有24个活动条目和一个列表,其中列出了DNS缓存已提取并存储的所有IP地址的详细信息。

Flush DNS 2

In order to flush your Google Chrome browser’s DNS cache, simply find the button that says “Clear Host Cache” and click it. You can click it more than once if you want to make sure it did what it was supposed to, but a single click is usually enough. You will notice that the number of active entries has gone down to 0 and the list of websites accessed has been cleared.

为了刷新您的Google Chrome浏览器的DNS缓存,只需找到显示“清除主机缓存”的按钮,然后单击它即可。 如果您想确保它能够达到预期的效果,则可以多次单击它,但是单击一次通常就足够了。 您会注意到,活动条目数已降至0,并且已访问的网站列表已清除。

Flush DNS 3

The next step will be to flush all the Sockets by navigating to chrome://net-internals/#sockets or by clicking on the drop-down menu on the top left of the screen and selecting “Sockets.”

下一步将通过导航至chrome:// net-internals /#sockets或单击屏幕左上方的下拉菜单并选择“套接字”来刷新所有套接字。

Flush DNS 4

Once you have arrived at the sockets page, you will need to click on both options available to you to flush them all. First, click on “Close Idle Sockets” then on “Flush Socket Pools.”

到达套接字页面后,您将需要单击两个可用选项以将其全部刷新。 首先,单击“关闭空闲套接字”,然后单击“刷新套接字池”。

Flush DNS 5

Alternatively, you could use the drop-down menu located on the top right hand side of the screen to perform both actions after navigating to “Chrome://net-internals/”

另外,您也可以使用屏幕右上方的下拉菜单,在导航到“ Chrome:// net-internals /”后执行两项操作

Flush DNS 6

使用Windows 7和8刷新DNS(Flush DNS with Windows 7 and 8)

You will need to begin by starting an Elevated Command Prompt Window. The Elevated Command Prompt window is distinguished from a regular command prompt window because the name on the top left of the window will read “Administrator: Command Prompt.” Using this method, you will be able to manipulate your computer with unrestricted access.

您需要先启动“高架命令提示符”窗口。 高架命令提示符窗口与常规命令提示符窗口有所不同,因为该窗口左上方的名称将显示为“管理员:命令提示符”。 使用此方法,您将可以不受限制地访问计算机。

If you are using Windows 7, press “Start” then type “cmd” into the search bar. Simply right click on the “Command Prompt” icon followed by a click on the “Run as administrator” option.

如果您使用的是Windows 7,请按“开始”,然后在搜索栏中键入“ cmd”。 只需右键单击“命令提示符”图标,然后单击“以管理员身份运行”选项。

If you are using Windows 8, you’ll need to use the Start Screen search and then right-click to open as Administrator.

如果您使用的是Windows 8,则需要使用“开始屏幕”搜索,然后右键单击以“管理员”身份打开。

Now that you have an Elevated Command Prompt window open on your windows 7 or 8 PC, it is time to begin the DNS flush. It is as simple as typing “ipconfig /flushdns” into CMD and pressing “Enter.” If you were successful, you will see the message shown in the following image.

现在,您已经在Windows 7或8 PC上打开了“提升命令提示符”窗口,是时候开始DNS刷新了。 就像在CMD中键入“ ipconfig / flushdns”并按“ Enter”一样简单。 如果成功,您将看到下图所示的消息。

Flush DNS 9

If you want to manually verify that your computer’s DNS cache was flushed, type in this command: “ipconfig/displaydns” and press “Enter.”

如果要手动验证是否刷新了计算机的DNS缓存,请键入以下命令:“ ipconfig / displaydns”,然后按“ Enter”。

Flush DNS 10

You will notice that the message displayed is “Could not display the DNS Resolver Cache.” This means that there is nothing to see in the cache and the flush was successful. If you want to see something show up, simply open up Google Chrome. Once Google Chrome is open, switch back to your Command Prompt window and type in the “ipconfig/displaydns” command again.

您将注意到显示的消息是“无法显示DNS解析器缓存”。 这意味着在缓存中看不到任何内容,并且刷新成功。 如果您想看到某些内容,只需打开Goog​​le Chrome。 打开Goog​​le Chrome浏览器后,切换回命令提示符窗口,然后再次键入“ ipconfig / displaydns”命令。

The image above shows a list of all the items and IP addresses saved in your new DNS cache.  Now you can exit your command prompt window and resume browsing the Internet without the risk of a DNS error, since every site you access will show up as a new entry in your Cache.

上图显示了新DNS缓存中保存的所有项目和IP地址的列表。 现在,您可以退出命令提示符窗口并继续浏览Internet,而不会出现DNS错误,因为您访问的每个站点都会在缓存中显示为新条目。

翻译自: https://www.howtogeek.com/197804/how-to-clear-the-google-chrome-dns-cache-on-windows/

chrome dns缓存

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值