After updating a zone file on your internal DNS server, workstations that use systemd-resolved are still returning the old addresses. You want the local resolver on a Fedora 40 workstation to discard every cached resource record immediately so that the next lookup goes to the upstream server. With root privileges, which resolvectl sub-command should you run?
The sub-command flush-caches tells systemd-resolved to empty all DNS record caches it keeps locally. Once the cache is cleared, subsequent queries are forwarded to the configured DNS servers and pick up the new zone data.
flush-caches - purges every cached RR set maintained by systemd-resolved.
reset-statistics only zeroes the resolver's counters; it does not touch cached records.
reset-server-features forgets capability probing results for each upstream server but leaves the name cache intact.
show-cache merely displays the current cache content.
Therefore, running sudo resolvectl flush-caches is the correct way to clear stale entries.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What does the 'flush-caches' sub-command do in resolvectl?
Open an interactive chat with Bash
How does 'reset-statistics' differ from 'flush-caches' in resolvectl?
Open an interactive chat with Bash
What happens if you use 'reset-server-features' in resolvectl instead of 'flush-caches'?
Open an interactive chat with Bash
CompTIA Linux+ XK0-006 (V8)
Services and User Management
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
IT & Cybersecurity Package Join Premium for Full Access