flush dns cache ubuntu 16 code example Example: flush dns ubuntu 18.04 sudo systemd-resolve --flush-caches