How: JID hostname different than server name

Okay let’'s say with google, the JID is me@gmail.com when the actual server is talk.google.com. How exactly does that work? I have a jabber server on jabber.my-domain.com (fictional) and I want the JID to be me@my-domain.com instead of me@jabber.my-domain.com.

Note that my-domain.com is hosted on a different machine than jabber.my-domain.com and I would like to keep it that way (if possible - if not I’'ll just move the domain to the machine that jive resides).

I’'m just curious how can you have a different JID than your actual server (a la google) and does that affect s2s communication?

RFC 3920 defines DNS SRV records for “xmpp-server” and protocol “tcp”.

(see http://www.ietf.org/rfc/rfc3920.txt)

They work like MX records for email.