1
0
Fork 0
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:
258204 2021-12-05 13:30:39 -07:00 committed by GitHub
parent 1ff6ff6637
commit 6ced4b1e73
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

33
pages/linux/resolvectl.md Normal file
View 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`