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
!!
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
--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
Command+Shift+F
for Mac or Ctrl+Shift+F
for others (if not occupied)