After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 150203 - Implement the support for the SRV DNS records, please
Implement the support for the SRV DNS records, please
Status: RESOLVED NOTGNOME
Product: gossip
Classification: Deprecated
Component: General
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: Gossip Maintainers
Gossip Maintainers
Depends on:
Blocks:
 
 
Reported: 2004-08-15 20:39 UTC by Carlos Perelló Marín
Modified: 2007-03-24 00:30 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Short program to query SRV records (1.73 KB, text/plain)
2006-04-06 21:32 UTC, Sam Morris
Details

Description Carlos Perelló Marín 2004-08-15 20:39:08 UTC
Reading the jabberd's installation manual you can see that it talks about a nice
feature to let you have the jabber server in a different place than the A record
for the server domain but Gossip does not implements it.

Here you have the document link:
http://jabberd.jabberstudio.org/1.4/doc/adminguide#dnssrv

I was trying to use it and get mad because it did not worked until I detected
that the problem was with Gossip not handle the SRV record.
Comment 1 Mikael Hallendal 2004-08-15 21:41:57 UTC
Yeah, been meaning to look into this for some time. Do you know how to ask for a
certain SRV record when doing the DNS lookup?
Comment 2 Carlos Perelló Marín 2004-08-15 21:46:25 UTC
With code, no idea, but I think you can see it from the own jabber server
because they use it to connect the other jabber's servers.

From a normal user tool (extracted from the jabberd doc):

dig +short jabberserverhostname
The answer should be the IP of your Jabber server.

dig +short _jabber._tcp.jabberserverhostname SRV
dig +short _xmpp-server._tcp.jabberserverhostname SRV
The answers to this query should include the hostname of the machine running the
s2s service (typically the hostname of the main Jabber server which has the A
record).

dig +short _xmpp-client._tcp.jabberserverhostname SRV
The answer to this query should include the hostname of the machine running the
c2s service (typically the hostname of the main Jabber server which has the A
record). 
Comment 3 Mikael Hallendal 2004-08-16 08:42:06 UTC
Thanks, I'll take a look at it.
Comment 4 Allison Karlitskaya (desrt) 2005-05-17 16:18:15 UTC
I did some looking into this last night.  As far as I can tell, this is going to
be a gigantic pain.

You start with this:

  r = res_query( "_xmpp-client._tcp.desrt.ca", C_IN, ns_t_srv, answer, 1024 );

and then 'answer' (of length 'r') contains the reply in some strange raw format
that you have to interpret for yourself.  The function that does this in
jabberd2 is quite large.
Comment 5 Mikael Hallendal 2005-05-17 17:17:07 UTC
ok :(

it's not high priority imho.
Comment 6 Sam Morris 2006-04-06 21:32:29 UTC
Created attachment 62881 [details]
Short program to query SRV records

I wrote this short program a while back, that queries SRV records. It's not toooo complicated.
Comment 7 Alexander “weej” Jones 2006-07-02 21:56:22 UTC
I'd like to see this, too. Got stung trying to connect to Google today.
Comment 8 Mikael Hallendal 2006-10-11 22:54:23 UTC
This is really in Loudmouth, added an issue for it there:

http://developer.imendio.com/issues/browse/LM-63
Comment 9 Martyn Russell 2007-03-24 00:30:11 UTC
Thanks Micke, this is fixed as stated by the issue tracker in 1.3 branch for Loudmouth.