WindowsでDNSキャッシュの内容を表示およびクリアする方法

この記事では、 Windows DNS キャッシュ 。 We are going to explain what it is, how we can easily see the content stored on our computer and how we can delete it.それが何であるか、コンピュータに保存されているコンテンツを簡単に確認する方法、および削除する方法について説明します。 A review of this term related to networks and linked to privacy, a very important factor for users today.ネットワークに関連し、プライバシーに関連するこの用語のレビューは、今日のユーザーにとって非常に重要な要素です。

WindowsDNSキャッシュとは

私たちが話すとき DNSキャッシュ そのコンピュータのオペレーティングシステムまたはブラウザでのDNS検索に関連して一時的に保存される情報を参照します。

WindowsでDNSキャッシュの内容を表示およびクリアする

Basically we can say that it is a record of the websites that we have visited.基本的には、私たちが訪れたWebサイトの記録であると言えます。 When we enter a website for the first time, our system uses the domain name resolution service.初めてウェブサイトにアクセスするとき、システムはドメイン名解決サービスを使用します。 However, when entering a second time, that information is already stored.ただし、XNUMX回目に入力すると、その情報はすでに保存されています。

If we use this article as an example and enter the address in the browser, the first thing it does is check the DNS cache to see if we have already visited it before.この記事を例として使用し、ブラウザにアドレスを入力すると、最初にDNSキャッシュをチェックして、以前にアクセスしたことがあるかどうかを確認します。 If we have not entered before, it will use the以前に入力したことがない場合は、 DNSサーバ of our provider or the one we have configured.私たちのプロバイダーまたは私たちが構成したものの。 Keep in mind that this cache can be stored both in the operating system and in the browser.このキャッシュは、オペレーティングシステムとブラウザの両方に保存できることに注意してください。

DNSキャッシュの内容を表示する方法

Windows 10のDNSキャッシュは簡単に確認できます。これは、世界中のユーザーの間で今日最も広く使用されているデスクトップオペレーティングシステムであることはすでにわかっています。

Windowsはこのキャッシュを使用して、Webベースのアプリケーションのパフォーマンスを向上させます。

Startと入力し、CDMを記述して、管理者権限で実行します。 Once we are there we have to execute the commandそこに着いたら、コマンドを実行する必要があります ipconfig/displaydns 。 The results will appear there.結果はそこに表示されます。

結果の中には、レコードの名前(DNSを照会する名前とその名前に属するレコード)、レコードのタイプ(番号または名前として表示される)、存続期間(秒単位の時間)が表示されます。その後、キャッシュエントリを期限切れにする必要があります)、データ長(バイト単位の長さ、たとえばIPv4アドレスは4バイト、IPv6は16バイト)、セクション(クエリへの実際の応答)、およびホスト。

We see all this information on the screen.このすべての情報が画面に表示されます。 However we can also easily export it to a TXT file.ただし、TXTファイルに簡単にエクスポートすることもできます。 To do this we execute the commandこれを行うには、コマンドを実行します dnscachecontents.txt 、前のものが続き、テキストファイルで開きます。

VerlacachéenWindows

Additionally, we can also see the DNS cache stored in Windows through PowerShell.さらに、PowerShellを介してWindowsに保存されているDNSキャッシュを確認することもできます。 We have to execute実行する必要があります Get-DnsClientCache リスト全体が表示されます。

WindowsでDNSキャッシュをクリアする方法

DNSキャッシュとは何か、その目的、およびWindows 10でDNSキャッシュを表示する方法について説明しましたが、簡単な方法でDNSキャッシュをクリアするオプションもあります。 This is very useful at times when problems arise.これは、問題が発生したときに非常に役立ちます。 A way to solve those errors that make us unable to connect to the Internet correctly.インターネットに正しく接続できなくなるエラーを解決する方法。

このために、もう一度コマンドプロンプトに移動し、今度はコマンドを実行する必要があります ipconfig/flushdns 。 In this way everything stored will be erased and it will start saving again.このようにして、保存されているすべてのものが消去され、保存が再開されます。

私たちが自由に使えるオプションのXNUMXつは、 DNSストレージを無効にする 。 We have to go to Start, we write Services and we execute it.スタートに移動し、サービスを作成して実行する必要があります。 Now we search for DNS Client (DNS Client Service) and stop it.ここで、DNSクライアント(DNSクライアントサービス)を検索して停止します。 From that moment on, it will no longer store this data.その瞬間から、このデータは保存されなくなります。

クライアントDNS

In short, following these steps that we have mentioned, we can see the content of the DNS cache in Windows 10. It is a simple process and for which we only have to execute some of the options that we have mentioned.要するに、私たちが言及したこれらのステップに従うと、Windows XNUMXのDNSキャッシュの内容を見ることができます。これは単純なプロセスであり、私たちが言及したオプションのいくつかを実行するだけで済みます。 We can also erase everything that is saved.保存されているものをすべて消去することもできます。