Why is there no such command in elementary to clear the DNS cache?

sudo /etc/init.d/dns-clean start command not found

1 Answer 1


Since elementaryOS 5 and newer, systemd-resolve handles flushing the DNS cache. This was an upstream change made in Ubuntu 17.04 according to this AskUbuntu answer. Use the following command to flush your DNS cache.

sudo systemd-resolve --flush-caches

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.