Clearing Stale DNS Entries from resolvectl - Linux Security In 2025, many distributions shipped a systemd-resolved version that added a --flush-caches flag to resolvectl That flag was later deprecated in favor of the flush-caches subcommand, which is still available in 2026 releases
resolvectl (1) - Linux manual page - man7. org resolvectl may be used to resolve domain names, IPv4 and IPv6 addresses, DNS resource records and services with the systemd-resolved service (8) resolver service By default, the specified list of parameters will be resolved as hostnames, retrieving their IPv4 and IPv6 addresses
How to Flush the DNS Cache in Linux? - GeeksforGeeks In this guide, we're going to discuss how to flush the DNS cache in Linux, using different methods so whether you're using Ubuntu, CentOS, or any other Linux distribution, this guide will help you clear DNS entries and resolve common DNS errors seamlessly
How to Flush Your systemd-resolved Cache - Bash Prompt When your local resolver, in this case, systemd-resolved, looks up a domain’s (or hostname’s) IP address it retains or caches, that IP address on your machine so that it doesn’t need to query the nameservers again This is faster for you and reduces the load on the nameservers