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 minhaempresa.com.br and the jabber domain to be  xmpp.minhaempresa.com.br the following records are required:
  • _jabber._tcp.xmpp.minhaempresa.com.br
  • _jabber._tcp.minhaempresa.com.br
  • _xmpp-server._tcp.xmpp.minhaempresa.com.br
  • _xmpp-server._tcp.minhaempresa.com.br
All the registration must point to your jabber domain, as noticed below:
marcelo@hellboy:~$ dig srv _xmpp-server._tcp.minhaempresa.com.br

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

;; QUESTION SECTION:
;_xmpp-server._tcp.minhaempresa.com.br. IN SRV

;; ANSWER SECTION:
_xmpp-server._tcp.minhaempresa.com.br. 86297 IN SRV 0 1 5269 xmpp.minhaempresa.com.br.

;; Query time: 16 msec
;; SERVER: 200.175.5.139#53(200.175.5.139)
;; 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.

3 comments:

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

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

    ReplyDelete
  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 ?
    http://bugs.developers.facebook.net/show_bug.cgi?id=8740

    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!

    ReplyDelete