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>.
Install
- All systems
-
curl cmd.cat/resolvectl.sh
- Debian
-
apt-get install systemd
- Ubuntu
-
apt-get install systemd
- Arch Linux
-
pacman -S systemd
- Kali Linux
-
apt-get install systemd
- CentOS
-
yum install systemd
- Fedora
-
dnf install systemd
- Windows (WSL2)
-
sudo apt-get update
sudo apt-get install systemd
- Raspbian
-
apt-get install systemd
- Dockerfile
- dockerfile.run/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
© tl;dr; authors and contributors