[jadmin] SRV DNS-Record

Matthias Wimmer m at tthias.net
Thu Aug 8 02:34:10 CDT 2002


Hi Johannes!

Johannes Morgenroth wrote:

>I tried to use Jabber with a SRV DNS-Record in Bind. It seems to
>work. A dig get the right server, but my client (psi) can't get or
>doesn't try to get a SRV record. I also tried WinJab and JIM. Both
>doesn't seems to work with SRV records.
>
SRV-records are service bases as they contain also the port you have to 
connect to. This means there would be the need for a second SRV-record 
in the DNS. Due to assignment of  "jabber-client" as the service name 
for port 5222 through IANA I think this record would be 
"_jabber-client._tcp.server.tld".

>Which client supports SRV records?
>
I don't think there is any client that supports SRV records yet. The 
problem is that there is no real API to get SRV records. You have to do 
most of the work to support them by hand with calls like getrrsetbyname().

>Or is something wrong with my config? I just put this line in the
>zonefile...
>
>_jabber._tcp    IN      SRV 10  0 5222 myserver.mydomain.com.
>
This means that other servers will connect to myserver.mydomain.com on 
port 5222. (And probably they should connect to port 5269 if you have 
s2s enabled or shouldn't connect to your server at all if you have s2s 
disabled.)

>... and Jabber-Config ...
>
>  <service id="dnsrv">
>    <host />
>    <load>
>      <dnsrv>/usr/local/jabber/module/dnsrv.so</dnsrv>
>    </load>
>    <dnsrv xmlns="jabber:config:dnsrv">
>        <resend service="_jabber._tcp">s2s</resend>
>        <resend>s2s</resend>
>    </dnsrv>
>  </service>
>
This is the configuration where your s2s component connects to. It 
doesn't affect c2s connections.


Tot kijk
    Matthias

BTW: s2s = server to server / c2s = client to server

-- 
Fon: +49-700 77007770		http://matthias-wimmer.de/
Fax: +49-89 312 88654		jabber://mawis@charente.de





More information about the jadmin mailing list