Skip to content

resolvectl: Command to list domains resolved has handled #23923

Closed

Description

@Winterhuman

Component

nss-resolve, resolvectl, systemd-resolved

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

251

Activity

  1. added
    RFE 🎁
    on Jul 6, 2022
  2. Winterhuman commented on Jun 12, 2023

    @Winterhuman
    ContributorAuthor

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    RFE 🎁resolve

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions