ifconfig flush dns code example Example 1: flush dns cache linux sudo systemd-resolve --flush-caches Example 2: dns flush windows ipconfig /flushdns