Saturday, May 21, 2011

XMPP Server SRV Record Tutorial

With the new Openfire Version (3.7.0) released in March. I noticed a change in the S2S (federation) integration and would like to share the tips to help the setup to be done by other XMPP System Admins.

To prevent connection issue among the Servers it is required the registration of the SRV records according to the example:

In the case of the domain and the jabber domain to be the following records are required:
All the registration must point to your jabber domain, as noticed below:
marcelo@hellboy:~$ dig srv

; <<>> DiG 9.7.3 <<>> srv
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 11368
;; flags: qr rd ra; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0


;; ANSWER SECTION: 86297 IN SRV 0 1 5269

;; Query time: 16 msec
;; WHEN: Sun May 15 00:24:00 2011
;; MSG SIZE rcvd: 89
I've have faced this situation when migrating a customer server that was upgraded a from a previous version of Openfire. If you don't register the domain fixing SRV record, S2S functionallity will not work.

* This is an authorized translation from the Blog Mundo OpenSource written by Marcelo Terres.  Especial thanks for the great and simple guide for setting up DNS SRV records required for an XMPP server.


  1. Direct A records should also work fine. Many people unfortunately do not have access to their own DNS records.

  2. hey thanks for sharing.the content you have added it helps me a lot to understand this technique.

  3. Hi Thiago,

    To complete XMPP/Jingle world domination we need the big company inside with many million users -> FB.
    ¿Can we movilize people to at least post a message or vote on S2S federation ?

    Also, I think, would be good to post in blogs asking the same,. news sites (like theinquier, theregister, lxer, etc)
    What do you think ?

    Beside FB S2S, I would like to see Nimbuz S2S soon.

    Many thanks!