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.

Client records for kingant.net

XMPP clients will use these when logging in.

TargetPortPriorityWeight
talk.l.google.com 5222 5 0
talk1.l.google.com 5222 20 0
talk2.l.google.com 5222 20 0
talk3.l.google.com 5222 20 0
talk4.l.google.com 5222 20 0

Server records for kingant.net

Other XMPP servers will use these when peering with this domain.

TargetPortPriorityWeight
xmpp-server.l.google.com 5269 5 0
xmpp-server1.l.google.com 5269 20 0
xmpp-server2.l.google.com 5269 20 0
xmpp-server3.l.google.com 5269 20 0
xmpp-server4.l.google.com 5269 20 0

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)