flush dns cashe in ubuntu code example Example: ubuntu clear dns cache sudo systemd-resolve --flush-caches