Kavinda Munasinghe’s Blog Rotating Header Image

How to: Twitter on GTalk for you domain

Some of us got blown away by twitter, some of us just got annoyed that it didnt work with Google Talk for Google Apps. But surely it should work right?

For GTalk to talk with Twitter you only need to add/invite twitter@twitter.com to your Google Talk contacts. It will instantly accept the invitation and you’re only your way. It’s that simple. However that’s only if you’re signing in using a Gmail account (e.g. yourmailadd@gmail.com).

If you’re a user of Google Apps and use Google Talk with that account, then simply adding/inviting twitter@twitter.com will get you nowhere. At least that’s where I got.

So, why didn’t it work?

When I checked the “Service Settings” for chat in the Google Apps Domain Control panel, it was obvious; to IM outside the Google network, you will need to edit your Service (SRV) records in domain settings. Ah, so that’s why!

The support document from Google said I’d need to enter the following DNS entries.

_xmpp-server._tcp.yourDomainName.com. IN SRV 5 0 5269 xmpp-server.l.google.com.
_xmpp-server._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server1.l.google.com.
_xmpp-server._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server2.l.google.com.
_xmpp-server._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server3.l.google.com.
_xmpp-server._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server4.l.google.com.

_jabber._tcp.yourDomainName.com. IN SRV 5 0 5269 xmpp-server.l.google.com.
_jabber._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server1.l.google.com.
_jabber._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server2.l.google.com.
_jabber._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server3.l.google.com.
_jabber._tcp.yourDomainName.com. IN SRV 20 0 5269 xmpp-server4.l.google.com.

Something was still not right; the invite to twitter@twitter.com was not getting accepted; even after leaving plenty of time for DNS entries to propagate.

It was time to try out another IM client. Google supports the jabber/XMPP protocol. This means I should be able to use any other IM client that supports the jabber/XMPP protocols.  

I choose Pidgin because it had a useful debug window! So I installed Pidgen and configured it to connect to Google Talk for my domain as instructed, and tried to sign in.

 

dnssrv: Couldn’t lookup SRV record. This operation returned because the timeout period expired. (1460)

 

Now I’m getting somewhere! I was still missing some more DNS entries. _xmpp-client._tcp.kavinda.net could not be found. After a quick nslookup to see the entries for _xmpp-client._tcp.gmail.com

 

nslookup results for _xmpp-client._tcp.gmail.com

I added similar entries for my domain kavinda.net.

_xmpp-client._tcp.yourDomainName.com.  IN SRV  5 0 5222 talk.l.google.com.
_xmpp-client._tcp.yourDomainName.com.  IN SRV 20 0 5222 talk1.l.google.com.
_xmpp-client._tcp.yourDomainName.com.  IN SRV 20 0 5222 talk2.l.google.com.
_xmpp-client._tcp.yourDomainName.com.  IN SRV 20 0 5222 talk3.l.google.com.
_xmpp-client._tcp.yourDomainName.com.  IN SRV 20 0 5222 talk4.l.google.com.

In goDaddy domain control pannel you’d enter the record,
_xmpp-client._tcp.kavinda.net.  IN SRV  5 0 5222 talk.l.google.com.
like:

_xmpp-client._tcp.kavinda.net dns entry goDaddy

That did the trick, I was able to sign into Pidgen. Now Back to Google Talk; Signed in using my Google Apps account, added twitter@twitter.com and it was accepted instantly. I had arrived.

 

Got a question? Want to comment? Please feel free to leave a message using the form at the end of the post. I'd love to hear from you. You can also trackback from your own site. Thank you.

9 Comments

  1. Thanks for this! This was a huge help.

    [mk]

  2. I was successfully able to send the verification code to activate IM; however, in my buddy list, the contact ‘twitter@twitter.com’ still shows as offline. Is it this way for you? Any ideas?

  3. rob says:

    This has been somewhat helpful for me but I’m confused. I was able to follow you up until you said "I added similar entries for my domain kavinda.net."

    How did you do that? I tried typing one of those lines in my dos prompt but it didn’t recognize it. So how did you get those lines in?

  4. Kavinda says:

    Rob, those are also DNS entries that I had to add for my domain. This was done using GoDaddy’s Domain Control Panel ( GoDaddy is my domain registrar ). You would also need to do this in your DNS settings. Hope this helps.

  5. Kavinda says:

    Matthew, have you verified that the DNS entries have been successfully entered? You could do a nslookup for the SRV records for your domain and verify that they exist. After adding DNS records sometimes you need to allow time for it to take effect (propagate).

    nslookup
    1) Open a command prompt
    2) Type nslookup
    3) Type set type=srv
    3) Type set class=in
    4) Type _xmpp-client._tcp.YourDomainName.com

  6. Wojtek says:

    Thanks for the useful tip. I just added the missing entries.

    I guess there should be a dot (.) after yourdomain.com and google.com (to avoid domain appending)

  7. Kavinda says:

    Yup. Thanks for pointing that out. I’ve corrected it in the post.

  8. this post was a great help! thanks for this Kavinda ;)

  9. [...] to another blogger these entries were only part of the entires necessary to make a domain fully compatible. [...]

Leave a Reply