resolvectl
Resolve domain names, IPv4 and IPv6 addresses, DNS resource records, and services. tldr-pages
On Linux
Linux
Resolve domain names, IPv4 and IPv6 addresses, DNS resource records, and services. Note: systemd-resolved.service must be running.
Show DNS settings
resolvectlIdentifyResolve the IPv4 and IPv6 addresses for one or more domains
resolvectl query domain1 domain2 ...IdentifyRetrieve the domain of a specified IP address
resolvectl query ip_addressIdentifyFlush all local DNS caches
resolvectl flush-cachesIdentifyDisplay DNS statistics (transactions, cache, and DNSSEC verdicts)
resolvectl statisticsIdentifyRetrieve an MX record of a domain
resolvectl --legend no --type MX query domainIdentifyResolve an SRV record, for example _xmpp-server._tcp gmail.com
resolvectl service _service._protocol nameIdentifyRetrieve a TLS key
resolvectl tlsa tcp domain:443Identify