This is a page that I created to hold some information I have gathered on the subject (while working on setting up a server) and will have to be revised to make it “cleaner”.
Some relevant links:
SRV records:
_xmpp-server._tcp.domain_xmpp-client._tcp.domain_jabber._tcp.domain_jabber-client._tcp.domainFor clients and for older servers the A record of the domain is often used.
#!/bin/sh
domain=$1
(
dig srv _xmpp-server._tcp.$domain
dig srv _xmpp-client._tcp.$domain
dig srv _jabber._tcp.$domain
dig srv _jabber-client._tcp.$domain
dig a $domain
) | perl -ne 'next if /^;/ || /^\s*$/; print'