This is a Chrome extenstion which helps you flashing DNS cache by one click.
Ref: https://github.com/swaydeng/DNS-Flusher (can't work)
Launch google-chrome with --enable-net-benchmarking
!!
- Ubuntu 16.04
Modify /usr/share/applications/google-chrome.desktop
, and add --enable-net-benchmarking
after Exec=/usr/bin/google-chrome-stable
Sample script:
sudo sed -i -- 's/\/usr\/bin\/google-chrome-stable/\/usr\/bin\/google-chrome-stable --enable-net-benchmarking/g' /usr/share/applications/google-chrome.desktop
-
Windows
- Right click on your "Chrome" icon
- Choose properties
- At the end of your target line add
--enable-net-benchmarking
-
macOS
cd "/Applications/Google Chrome.app/Contents/MacOS/" && mv "Google Chrome" Google.real && printf '#!/bin/bash\ncd "/Applications/Google Chrome.app/Contents/MacOS"\n"/Applications/Google Chrome.app/Contents/MacOS/Google.real" --enable-net-benchmarking "$@"\n' > Google\ Chrome && chmod u+x "Google Chrome"
Exit and reopen Chrome after adding --enable-net-benchmarking
- Click icon in toolbar
- Open right menu, and click the icon
- Use shortcut:
Command+Shift+F
for Mac orCtrl+Shift+F
for others (if not occupied)