Mac、Windows、Linux、およびChromeでDNSキャッシュをクリーンアップする方法

- macOS
- Windows 
- Linux
- Google Chrome

macOS

To clear the DNS cache on a Mac, you’ll need to open the native command-line interface known as Terminal and run the appropriate command. This process varies based on which version of macOS you’re running.

If you’re not sure what version you’re working with, click on the ‘apple’ icon in the top-left corner of your desktop, and select About This Mac:

Screen_Shot_2022-03-01_at_14.02.05.png

現在のバージョンは、最初に表示される情報です。

Screen_Shot_2022-03-01_at_14.03.39.png

これらの情報が分かれば、以下の関連するステップを踏むことができます。

- macOS El Capitan(10.11)、Sierra(10.12)、High Sierra(10.13)、Mojave(10.14)、Catalina(10.15)。

If you’re working on macOS version 10.11 or above, open the command line interface by clicking on Go > Utilities: 

Screen_Shot_2022-03-01_at_14.06.47.png

Then, select Terminal. Once it opens, run the following command:

sudo killall -HUP mDNSResponder

パソコンのパスワードを入力する画面が表示されます。

Screen_Shot_2022-03-01_at_14.12.24.png

そうすると、DNSキャッシュがクリアされるはずです。

- macOS Yosemite (10.10)

You can access Terminal by the same method described above for any macOS version. In Yosemite (10.10), once the window opens you’ll need to run the following command:

sudo discoveryutil udnsflushcaches

コンピュータのパスワードを入力すると、DNSキャッシュが正常にフラッシュされるはずです。

- macOS Lion(10.7)、Mountain Lion(10.8)、Mavericks(10.9)。

macOSバージョン10.7〜10.9の場合、ターミナルを開いて以下のコマンドを実行し、DNSキャッシュをクリアしてください。

sudo killall -HUP mDNSResponder

You may notice that this is the same command used by versions 10.11 and above. Enter your password to execute it.

- macOS Snow Leopard (10.6)

macOS Snow Leopard(10.6)をお使いの場合、Terminalを開いて次のコマンドを入力してください。

sudo dscacheutil -flushcache

その後、パスワードを入力すると、DNSキャッシュのクリアが完了します。

- macOS Leopard (10.5)

最後に、macOS Leopard(10.5)をお使いの方は、Terminalで以下のコマンドを実行してください。

sudo lookupd -flushcache

パスワードを入力すると、DNSキャッシュがフラッシュされるはずです。

Clearing your DNS cache is also the solution for fixing the ERR_SPDY_PROTOCOL_ERROR.

 

WINDOWS

Flushing your DNS cache on a Windows computer is fairly simple. Here’s how to accomplish this task on Windows 10, 8, 7, and XP.

- Windows 10

To clear your DNS cache on a Windows OS, you’ll need to open Command Prompt, the system’s command line interface. You can access this program in Windows 10 by clicking on the Start button. Then navigate to Windows Systems > Command Prompt:

 

コマンドプロンプト-1.png

コマンドラインインターフェイスが開いたら、次の行を入力します。

ipconfig /flushdns

このコマンドは、DNSキャッシュが正常にフラッシュされたことを確認するために返されるはずです。

success-message.png

その後、コマンドプロンプトのウィンドウを閉じてください。

- ウィンドウズ8

Clearing your DNS cache in older versions of Windows requires the same command ipconfig /flushdns. However, the steps for accessing Command Prompt are slightly different between versions.

In Windows 8, open the Apps screen. On the far right side, find Windows Systems and select Command Prompt.

Once the program opens, run ipconfig /flushdns. You should receive a confirmation once the DNS cache has been cleared successfully.

- Windows 7とWindows XP

In Windows 7 or Windows XP, click on the Start button. Navigate to All Programs > Accessories and select Command Prompt.

In the command line interface, run ipconfig /flushdns. You should receive a confirmation message once the DNS cache is flushed.

 

LINUX

Flushing your DNS cache on Linux machines is fairly similar to the process of doing so on a Mac or Windows computer. Here’s how.

- ウブントゥ

Linux uses Terminal as its command line interface, just like macOS. To open it, click on Activities in the top-left corner of your desktop This will provide you with a search bar, where you can enter “terminal” to find and launch the program.

コマンドラインインターフェイスが開いたら、次のコマンドを実行します。

sudo systemd-resolve --flush-caches

Terminal will then prompt you for your password. Enter it to finish executing the command and flushing your DNS cache.

- その他の分配金

Ubuntu以外のLinuxディストリビューションをお使いの場合は、コマンドラインインターフェイスを開き、次のコマンドを実行することで、DNSキャッシュをフラッシュすることができます。

sudo /etc/init.d/dns-clean start

コマンドを実行すると、キャッシュがクリアされるはずです。

 

GOOGLE CHROME 

Finally, as we mentioned at the beginning of this post, you may have cause to clear your browser’s DNS cache rather than your OS’s. In Google Chrome, you can do so by entering the following into the address bar:

chrome://net-internals/#dns

Then click on the Clear host cache button:

Screen_Shot_2022-03-01_at_14.59.54.png

これで、ChromeのDNSキャッシュがフラッシュされるはずです。

この記事は役に立ちましたか?
3人中3人がこの記事が役に立ったと言っています

コメント

0件のコメント

サインインしてコメントを残してください。