mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-07-24 15:15:29 +02:00
resolvectl: add page (#7484)
This commit is contained in:
parent
1ff6ff6637
commit
6ced4b1e73
1 changed files with 33 additions and 0 deletions
33
pages/linux/resolvectl.md
Normal file
33
pages/linux/resolvectl.md
Normal file
|
@ -0,0 +1,33 @@
|
|||
# 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:
|
||||
|
||||
`resolvectl query {{ip_address}}`
|
||||
|
||||
- Retrieve an MX record of 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 the public key from an email address from an OPENPGPKEY DNS record:
|
||||
|
||||
`resolvectl opengpg {{email}}`
|
||||
|
||||
- Retreive a TLS key:
|
||||
|
||||
`resolvectl tlsa tcp {{domain}}:443`
|
Loading…
Add table
Reference in a new issue