Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

resolvectl: add page #7484

Merged
merged 9 commits into from
Dec 5, 2021
Merged
Changes from 8 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 33 additions & 0 deletions pages/linux/resolvectl.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# resolvectl

> Resolve domain names, IPV4 and IPv6 addresses, DNS resource records, and services.
> Introspect and reconfigure the DNS resolver.
CleanMachine1 marked this conversation as resolved.
Show resolved Hide resolved
> 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 -t MX query {{domain}}`
Copy link
Collaborator

@navarroaxel navarroaxel Dec 1, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We prefer long arguments, and there are extra spaces.

Suggested change
`resolvectl --legend=no -t MX query {{domain}}`
`resolvectl --legend={{no}} --type={{MX}} query {{domain}}`

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I selected commit suggestion, yet it still says 1 change requested. Is there anything else that needs to be changed?


- 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`