Resolve an SRV record, for example _xmpp-server._tcp gmail.com

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>.
  • Trick copyright: tl;dr; <https://github.com/tldr-pages/tldr>

resolvectl service _{{service}}._{{protocol}} {{name}}

click the source code to copy install resolvectl on any operating system with command-not-found.com