how to flush dns caches in linux code example Example: flush dns cache linux sudo systemd-resolve --flush-caches