1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-04-23 16:02:08 +02:00
tldr/pages/linux/resolvectl.md
Matthieu LAURENT f2128bfbb8
resolvectl: add cache flushing and statistics, remove openpgp (#10735)
* resolvectl: add flush-caches and statistics

* resolvectl: remove openpgp

* resolvectl: add precision about DNSSEC verdicts

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>

---------

Co-authored-by: Lena <126529524+acuteenvy@users.noreply.github.com>
2023-09-20 13:26:05 +05:30

37 lines
908 B
Markdown

# resolvectl
> 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>.
- Show DNS settings:
`resolvectl status`
- Resolve the IPv4 and IPv6 addresses for one or more domains:
`resolvectl query {{domain1 domain2 ...}}`
- Retrieve the domain of a specified IP address:
`resolvectl query {{ip_address}}`
- Flush all local DNS caches:
`resolvectl flush-caches`
- Display DNS statistics (transactions, cache, and DNSSEC verdicts):
`resolvectl statistics`
- Retrieve an MX record of a domain:
`resolvectl --legend={{no}} --type={{MX}} query {{domain}}`
- Resolve an SRV record, for example _xmpp-server._tcp gmail.com:
`resolvectl service _{{service}}._{{protocol}} {{name}}`
- Retrieve a TLS key:
`resolvectl tlsa tcp {{domain}}:443`