XMPP and Google Apps for Domains

Jesus, my head hurts.

I setup xmpppy on my box, thinking I could quickly set up a bot to run as one of my Google Apps for Domains users. I've spent about six or seven hours (off and on) getting this to work, though, because the documentation from Google about setting up my DNS configuration is incomplete. Thanks a lot!!! Like DNS isn't difficult enough for amateurs.

After many searches, I finally found the magic incantation, so here it is for posterity, in case that link disappears:

_xmpp-server._tcp.YOURDOMAIN.TLD. 3600 IN SRV 5 0 5269 xmpp-server.l.google.com.
_xmpp-server._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server1.l.google.com.
_xmpp-server._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server2.l.google.com.
_xmpp-server._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server3.l.google.com.
_xmpp-server._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server4.l.google.com.
_jabber._tcp.YOURDOMAIN.TLD. 3600 IN SRV 5 0 5269 xmpp-server.l.google.com.
_jabber._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server1.l.google.com.
_jabber._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server2.l.google.com.
_jabber._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server3.l.google.com.
_jabber._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5269 xmpp-server4.l.google.com.
_xmpp-client._tcp.YOURDOMAIN.TLD. 3600 IN SRV 5 0 5222 talk.l.google.com.
_xmpp-client._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5222 talk1.l.google.com.
_xmpp-client._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5222 talk2.l.google.com.
_xmpp-client._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5222 talk3.l.google.com.
_xmpp-client._tcp.YOURDOMAIN.TLD. 3600 IN SRV 20 0 5222 talk4.l.google.com.

N.B. Those trailing periods at the end of the domain names may or may not be necessary, depending on how you update your DNS records. For example, GoDaddy inserted them for me. YMMV.

4 comments

Comments are closed.