Check DNS SRV records for XMPP

Note: As of 2014-09-09 this page now attempts to query the authoritative name servers for the given domain directly instead of using this script's local name server. This hopefully bypasses any record caching and makes testing easier.


About

The XMPP Core RFC describes a method of using DNS SRV records to determine the host and port to connect to when logging into an XMPP account. It can sometimes be tricky to configure these records. Use this page as a tool to verify that your DNS SRV records are correct.

You can also fetch these records yourself with any of the following commands.
Linux, OS X> host -t SRV _xmpp-client._tcp.example.com
Linux, OS X> host -t SRV _xmpp-server._tcp.example.com
Linux, OS X> dig _xmpp-client._tcp.example.com SRV
Linux, OS X> dig _xmpp-server._tcp.example.com SRV
Linux, OS X, Windows> nslookup -querytype=SRV _xmpp-client._tcp.example.com
Linux, OS X, Windows> nslookup -querytype=SRV _xmpp-server._tcp.example.com

This Page
Created by Mark Doliner
Source available on GitHub

Other Resources
IM Observatory (general info)
IMtrends (general info)
Olark's DNS SRV help page (DNS SRV specific)
Google's official help page for configuring server records (DNS SRV specific)