I have an XMPP (Jabber) application which talks to jabber servers.

It works great with accounts on gmail.com, but does not work at all with accounts on Google Apps hosted web sites.

Google says this is because special SRV records need to be created for Google Apps domains which point the XMPP service directly at the Google XMPP servers, ref:


However, I can't ask each user to add these 10 SRV records to their domain.

Is there a way that I can configure my server, either through DNS or firewall, or some other means, to use Google's XMPP server for all domains? This would have the effect of making REAL jabber servers not work, but it would allow ALL Google Apps domains to interoperate with my program.

  • This is a very interesting question, and a solution would be interesting to obtain, but PLEASE don't overwrite XMPP records for existing domains! Only do so if there are no XMPP records otherwise! Also, you best bet would probably be to modify the library that your client uses to talk to different jabber servers, to automatically fallback to google if none are found.
    – cnst
    Mar 7, 2013 at 3:50

1 Answer 1


Did you try substituting the SRV records from the point of view of your server using /etc/hosts ? Either it works, or the protocol / google's implementation defends against that and you'll have no choice but to add the records to public DNS.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.