You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
resolvectl: Command to list domains resolved has handled #23923
Is your feature request related to a problem? Please describe
Being able to see what domains systemd-resolved has encountered could be useful for diagnosing network problems as well as constructing blocklists. Users could inspect a list to see if domains are being resolved to the correct ip-addresses, and to see if any unexpected domains are being resolved.
Describe the solution you'd like
A resolvectl statistics dns command to list all domains could look like this:
$ resolvectl statistics dns
TIMESTAMP DOMAIN IP FROM
Jul 06 15:04:46 google.com 1.2.3.4 network
Jul 06 15:02:30 hostname.local 192.168.0.2 synthetic
...
Subcommands for filtering (--filter-{ip,domain,from}) could also be introduced, but given the output of resolvectl statistics dns could be fed through grep to do the filtering it may not be useful.
Describe alternatives you've considered
A logfile for systemd-resolved without any commands would still be useful in and of itself, though commands would be preferred.
The systemd version you checked that didn't have the feature you are asking for
Never realised #14796 is actually for regular DNS caches too, not just local discovery as the first sentence implies, so this is technically a duplicate. Closing as duplicate.
Activity
Winterhuman commentedon Jun 12, 2023
Never realised #14796 is actually for regular DNS caches too, not just local discovery as the first sentence implies, so this is technically a duplicate. Closing as duplicate.