Check DNS SRV records for XMPP

Client records for kingant.net

ERROR: No xmpp-client DNS SRV records found! XMPP clients will try to login to kingant.net on port 5222. If this is incorrect then logging in will fail.

Server records for kingant.net

ERROR: No xmpp-server DNS SRV records found! Other XMPP servers will try to peer with kingant.net on port 5269. If this is incorrect then peering won't work correctly.


About

XMPP clients can determine what host and port to connect to by looking up DNS SRV records. These records are described in section 3.2.1 of the XMPP Core RFC and in XEP-0368. It can be tricky to configure these records. Use this page as a tool to check that your DNS SRV records are correct.

You can also fetch these records yourself with any of the following commands. Change example.com to your domain. Change client to server to look up the port that servers should connect to. Change xmpp to xmpps to look up the port for direct TLS aka XMPP over SSL or XMPP over TLS.

Linux, macOS> host -t SRV _xmpp-client._tcp.example.com
Linux, macOS> dig _xmpp-client._tcp.example.com SRV
Linux, macOS, Windows> nslookup -querytype=SRV _xmpp-client._tcp.example.com

This Page
Created by Mark Doliner
Source available on GitHub

Other Resources
Prosody IM's DNS configuration info
IM Observatory - Can perform various tests of an XMPP server.