resolvectl Command Examples

Resolve domain names, IPv4 and IPv6 addresses, DNS resource records, and services. Introspect and reconfigure the DNS resolver. More information: https://www.freedesktop.org/software/systemd/man/resolvectl.html.

resolvectl status

resolvectl query {{domain1 domain2 ...}}

resolvectl query {{ip_address}}

resolvectl flush-caches

resolvectl statistics

resolvectl --legend={{no}} --type={{MX}} query {{domain}}

resolvectl service _{{service}}._{{protocol}} {{name}}

resolvectl tlsa tcp {{domain}}:443