SRV records

Hello, i'm running a private (this means that i have registration disabled and conference and others services are for local users only) xmpp server with ejabberd but my users can use their jid at my server to communicate to others. My question is: should i add the SRV records? is it something usefull?
Thanks!

Edit: i forgot to tell that the server running ejabberd is only used for xmpp and no other services like http,mail will run on it. At the beginning i did set the A record for *.mydomain.com to my server ip. Is this correct as well or should i play with the A records too?

banana wrote: but my users

banana wrote:

but my users can use their jid at my server to communicate to others. My question is: should i add the SRV records? is it something usefull?

Useful for what purpose? You didn't specify what is exactly the problem, or what works unexpectedly.

Probably you don't want users in your server to communicate with other servers. In that case, you must disable S2S in ejabberd. For that, disable the ejabberd_s2s listener in ejabberd.cfg

I would let my users

I would let my users communicate to other servers so when i setup ejabberd i MUST setup the SRV record right?

banana wrote: I would let my

banana wrote:

I would let my users communicate to other servers so when i setup ejabberd i MUST setup the SRV record right?

Probably yes, check http://www.ejabberd.im/node/2976 and the links on the bottom.

badlop wrote: banana

badlop wrote:
banana wrote:

I would let my users communicate to other servers so when i setup ejabberd i MUST setup the SRV record right?

Probably yes, check http://www.ejabberd.im/node/2976 and the links on the bottom.

Ok wait :) i understood everything about that docs but...my question is:

I have a dedicated box where i only run ejabberd on my domain example.com and my jids are @example.com

Should i really need the SRVs or just an A record to my box is fine (A record *.mydomain.com to box IP)???
Of course my users should be able to do s2s connections so the SRVs are mandatory or not????

:)

I've read this from

I've read this from http://www.jabberdoc.org/section05#5_7:

N Note: SRV Records Required Only for Non-Primary Host
Note that DNS SRV records are required only if your Jabberd server is running on a host other than the primary domain host and if you do not wish to include the host (machine) name in your Jabber ID. For example, if a DNS query for somedomain.com resolves host1.somedomain.com, and your Jabberd server is running on host1, SRV records would not be required.

so i suppose since im running ejabberd from my domain "example.com" and not an host like "xmpp.example.com" the DNS SRVs are not "mandatory and required" so they can be added or not at my own discrection

I'm no expert with ejabberd -

I'm no expert with ejabberd - only just getting started.
But I believe the purpose of SRV records are to allow other people to contact your users using your JIDs.

So if the JID someone@yourcompany.com wants to chat/buddy with user@gmail.com, it works because gmail.com publishes SRV records which tells someone@yourcompany.com which A record to go to for gmail.com's XMPP server.

The reason you might want SRV records for your domain, is to allow an external user user@gmail.com to chat/buddy with someone@yourcompany.com
user@gmail.com would type in someone@yourcompany.com to start a chat. Without publishing SRV records, their XMPP client might not be able to find your XMPP server to start the connection.

Hope that makes sense!?

Again, I might be wrong on this so someone please correct me if I am!
I still need to learn as well ;)

Not only for external user.

Not only for external user. SRV records allow for client autoconfiguration as well: when users configure their clients they only have to specify that their usernames are "xyz" and their domain is "yourcompany.com", and don't need to specify the exact server in the yourcompany.com that runs xmpp server.

Syndicate content