sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder # 10.10+ 另需重啟 mDNSResponder
# systemd 系統
sudo systemctl restart systemd-resolved
# 或傳統 nscd
sudo /etc/init.d/nscd restart
# 或清除特定網域
sudo systemd-resolve --flush-caches
ipconfig /flushdns
# Linux/macOS
dig example.com
# Windows
nslookup example.com
