RESOLVECTL(1) resolvectl RESOLVECTL(1) (NAME) resolvectl - IPv4 IPv6 DNS (SYNOPSIS) resolvectl [OPTIONS...] {COMMAND} [NAME...] (DESCRIPTION) resolvectl IPv4 IPv6 DNS systemd- resolved.service(8) . IPv4 IPv6 . IPv4 IPv6 . . . DNSSEC (authenticated) . "localhost" /etc/hosts. (COMMANDS) query HOSTNAME|ADDRESS... IPv4 IPv6. --type= --class= ( ) DNS . -- --search=no --type=/--class= . DNS IDNA -- MulticastDNS LLMNR. --type=/--class= IDNA . --json= ( --type= ) JSON . 239. service [[NAME] TYPE] DOMAIN RFC 6763 DNS-SD[1] RFC 2782 SRV[2] . DNS-SD SRV . DNS-SD SRV TXT . SRV . TXT . SRV SRV ( TXT). 239. openpgp EMAIL@DOMAIN... PGP OPENPGPKEY RFC 7929[3] . DNS OPENPGPKEY . 239. tlsa [FAMILY] DOMAIN[:PORT]... TLS TLSA RFC 6698[4] . ("_port._family.domain") . (":") 443 . tcp . 239. status [LINK...] DNS . . 239. statistics DNSSEC . 239. reset-statistics statistics . (root) . 239. flush-caches DNS . SIGUSR2 systemd-resolved . 239. reset-server-features . SIGRTMIN+1 systemd-resolved . 239. dns [LINK [SERVER...]], domain [LINK [DOMAIN...]], default-route [LINK [BOOL...]], llmnr [LINK [MODE]], mdns [LINK [MODE]], dnssec [LINK [MODE]], dnsovertls [LINK [MODE]], nta [LINK [DOMAIN...]] / DNS . DNS . systemd-resolved systemd-networkd DNS . dns IPv4 IPv6 DNS . ":" "%" SNI ( ) "#" . IPv6 . "111.222.333.444:9953%ifname#example.com" IPv4 "[1111:2222::3333]:9953%ifname#example.com" IPv6. domain DNS "~" - . default-route DNS . llmnr mdns dnssec dnsovertls LLMNR MulticastDNS DNSSEC DNSOverTLS . nta NTA DNSSEC . dns domain nta . systemd.network(5) . 239. revert LINK DNS . DNS DNS dns domain default-route llmnr mdns dnssec dnsovertls nta . . 239. monitor . DNS . DNS DNS LLMNR MulticastDNS DNS ( DNSSEC). CNAME/CNAME . --json= JSON . 252. show-cache (scope). --json= JSON . 254. show-server-state DNS. --json= JSON . 255. log-level [LEVEL] . LEVEL LEVEL ( --log-level= systemd(1) ). 244. (OPTIONS) -4, -6 IPv4 IPv6 . -4 IPv4 -6 IPv6 . 239. -i INTERFACE, --interface=INTERFACE . ( "en0") . DNS ( /etc/resolv.conf /etc/systemd/resolved.conf ) . 239. -p PROTOCOL, --protocol=PROTOCOL . : "dns" ( DNS ) "llmnr" (Link-Local Multicast Name Resolution[5]) "llmnr-ipv4" "llmnr-ipv6" ( LLMNR IP ) "mdns" (Multicast DNS[6]) "mdns-ipv4" "mdns-ipv6" ( MDNS IP ). . . . "llmnr" "llmnr-ipv4" "llmnr-ipv6" . . "help" . 239. -t TYPE, --type=TYPE, -c CLASS, --class=CLASS query DNS ( A AAAA MX ) ( IN ANY ) . DNS . IN . "help" . resolvectl query . DNS . (FQDN) . IDNA "xn--..." MulticastDNS/LLMNR UTF-8 . 239. --service-address=BOOL . () --service SRV . 239. --service-txt=BOOL . () DNS-SD --service TXT . 239. --cname=BOOL . () DNS CNAME DNAME . CNAME DNAME . 239. --validate=BOOL query . () DNSSEC -- systemd-resolved.service . DNSSEC . DNSSEC / DNSSEC . . 248. --synthesize=BOOL query . () "localhost" "_gateway" "_outbound" "_localdnsstub" "_localdnsproxy" /etc/hosts. ( "localhost" "_gateway" "_outbound" ) DNS/mDNS/LLMNR ( /etc/hosts). 248. --cache=BOOL query . () DNS . . 248. --zone=BOOL query . () LLMNR mDNS . LLMNR/mDNS . 248. --trust-anchor=BOOL query . () DS DNSKEY DNSSEC . . 248. --network=BOOL query . () (zone) ( ) DNS LLMNR mDNS . . 248. --search=BOOL . () ( ) . . --type= ( ) . 239. --raw[=payload|packet] . "payload" (payload) "RDATA" . "packet" (wire format) little-endian . . "payload" : SSHFP TLSA OPENPGPKEY A AAAA . 239. --legend=BOOL . () . . 239. --stale-data=BOOL query . () ( ) . . 254. --relax-single-label=BOOL query . . . LLMNR . . ResolveUnicastSingleLabel= resolved.conf(5) . 256. --no-ask-password . --json=MODE JSON . : "short" ( ) "pretty" ( ) "off" ( JSON ). -j --json=pretty --json=short . --no-pager (pager) . -h, --help . --version . RESOLVCONF(8) (COMPATIBILITY WITH RESOLVCONF(8)) resolvectl (multi-call binary) . "resolvconf" ( resolvectl ) resolvconf(8) . systemd- resolved.service(8) dns domain. systemd-resolved.service (backend) . /etc/resolv.conf /etc/resolv.conf /run/systemd/resolve/resolv.conf . /etc/resolv.conf systemd-resolved.service(8) . . : -a DNS systemd-resolved . . DNS resolv.conf(5) . "nameserver" "domain"/"search". resolvectl dns domain . 239. -d DNS systemd-resolved ( ) . resolvectl revert . 239. -f -a -d . 239. -x <<>> (exclusive) . "~." -- DNS DNS . 239. -p . systemd-resolved.service(8) . 257. -m . 239. -u, -I, -i, -l, -R, -r, -v, -V, --enable-updates, --disable-updates, --are-updates-enabled . 239. resolvconf(8) . (EXIT STATUS) 0 . (EXAMPLES) . "www.0pointer.net" ( A AAAA) $ resolvectl query www.0pointer.net www.0pointer.net: 2a01:238:43ed:c300:10c3:bcf3:3266:da74 85.214.157.71 -- Information acquired via protocol DNS in 611.6ms. -- Data is authenticated: no . "85.214.157.71" ( PTR) $ resolvectl query 85.214.157.71 85.214.157.71: gardel.0pointer.net -- Information acquired via protocol DNS in 1.2997s. -- Data is authenticated: no . MX "yahoo.com" $ resolvectl --legend=no -t MX query yahoo.com yahoo.com. IN MX 1 mta7.am0.yahoodns.net yahoo.com. IN MX 1 mta6.am0.yahoodns.net yahoo.com. IN MX 1 mta5.am0.yahoodns.net . SRV $ resolvectl service _xmpp-server._tcp gmail.com _xmpp-server._tcp/gmail.com: alt1.xmpp-server.l.google.com:5269 [priority=20, weight=0] 173.194.210.125 alt4.xmpp-server.l.google.com:5269 [priority=20, weight=0] 173.194.65.125 ... . PGP ( OPENPGP) $ resolvectl openpgp zbyszek@fedoraproject.org d08ee310438ca124a6149ea5cc21b6313b390dce485576eff96f8722._openpgpkey.fedoraproject.org. IN OPENPGPKEY mQINBFBHPMsBEACeInGYJCb+7TurKfb6wGyTottCDtiSJB310i37/6ZYoeIay/5soJjlMyf MFQ9T2XNT/0LM6gTa0MpC1st9LnzYTMsT6tzRly1D1UbVI6xw0g0vE5y2Cjk3xUwAynCsSs ... . TLS ( TLSA) $ resolvectl tlsa tcp fedoraproject.org:443 _443._tcp.fedoraproject.org IN TLSA 0 0 1 19400be5b7a31fb733917700789d2f0a2471c0c9d506c0e504c06c16d7cb17c0 -- Cert. usage: CA constraint -- Selector: Full Certificate -- Matching type: SHA-256 "tcp" ":443" . (SEE ALSO) systemd(1), systemd-resolved.service(8), systemd.dnssd(5), systemd- networkd.service(8), resolvconf(8) (NOTES) 1. RFC 6763 DNS-SD https://tools.ietf.org/html/rfc6763 2. RFC 2782 SRV https://tools.ietf.org/html/rfc2782 3. RFC 7929 https://tools.ietf.org/html/rfc7929 4. RFC 6698 https://tools.ietf.org/html/rfc6698 5. Link-Local Multicast Name Resolution https://tools.ietf.org/html/rfc4795 6. Multicast DNS https://www.ietf.org/rfc/rfc6762.txt systemd 261.2 RESOLVECTL(1)