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