Update cheatsheets

This commit is contained in:
ivuorinen
2024-02-21 11:19:49 +00:00
parent 4e88a1b42f
commit 3d653cc7e6
4803 changed files with 127002 additions and 0 deletions

42
linux/resolvectl Normal file
View File

@@ -0,0 +1,42 @@
---
syntax: markdown
tags: [tldr, linux]
source: https://github.com/tldr-pages/tldr.git
---
# 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`