cron to clear dns cache linux ubuntu code example Example: ubuntu clear dns cache sudo systemd-resolve --flush-caches