flush dns terminal code example
Example 1: how to flush dns on mac
dscacheutil -flushcache; sudo killall -HUP mDNSResponder
Example 2: windows flush dns
ipconfig /flushdns
Example 3: macos clear dns cache
macbook$ sudo killall -HUP mDNSResponder;sudo killall mDNSResponderHelper;sudo dscacheutil -flushcache
Example 4: flush dns linux
sudo systemd-resolve --flush-caches
sudo systemd-resolve --statistics
sudo /etc/init.d/dns-clean start