[JDEV] Jabber server hostname and JIDs

Robert Norris rob at cataclysm.cx
Mon Mar 4 01:07:01 CST 2002


> > 3. Hack JID rewriting stuff into the JSM, so that any to/from attributes
> >    get rewritten to what I want them to be.
> 
> It already does this, in the <pthcsock> element in the c2s config just
> add:
> 	<alias to="server.name"/>
> 
> It's ugly, but it does all the magic to/from replacing so that things work
> just like you want :)  The above is the "default" one, you can also have
> multiple <alias to="real.server">what.client.uses</alias> in there.

That's interesting to know. It's pretty disgusting (as most hacks of
this type are), and it still has the problem that the client thinks its
JID is one thing while the rest of the network knows it as something
else. But for most things, this should work well enough.

> > 4. Get clients to use SRV records for the client connection.
> 
> This should definately be a goal, but it's still very hard to do SRV
> lookups in most environments.  Hopefully that will change, or some simple
> portable SRV lookup libraries will happen. 

A bit of quick googling finds this:

  http://www.cs.columbia.edu/sip/srv/

Which is small enough to be pulled into just about anything, by the
looks of it.

Also, someone mentioned this last week, which looks promising (though it
hasn't been touched for a while):

  http://ruli.sf.net/

> Although it's probably not "right" in some way, I'm a fan of using a
> fallback method (if you can't do SRV) of just a normal A lookup on the
> same SRV formatted record: _jabber._tcp.jabber.org.  SRV gives you port
> assignment and weighted and load balanced farms, which is all very nice,
> but if you just can't hack it then at least having an alternative IP is
> still very useful.

Agreed. It's good in small deployments. Also, this is what SMTP does
with MX records - if it can't find one, it falls back to an A record.

> > 5. Get clients to treat the JID and the server as different entities.
> 
> Yes, it should probably have been clearer at some point that it would be
> useful in clients to have an advanced option for a "proxy" or "server"
> entry box, that is used only for resolving the server, much like email
> clients and pop/imap.

A plea to client developers - do this. It shouldn't be too hard, and is
a good interim solution.

Rob.

-- 
Robert Norris                                       GPG: 1024D/FC18E6C2
Email+Jabber: rob at cataclysm.cx                Web: http://cataclysm.cx/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 232 bytes
Desc: not available
URL: <https://www.jabber.org/jdev/attachments/20020304/3761ab2a/attachment-0002.pgp>


More information about the JDev mailing list