[jdev] How to handle SRV lookups when the root domain is referenced

Bruce Campbell list-jdev at vicious.dropbear.id.au
Wed May 3 01:32:12 CDT 2006


On Wed, 3 May 2006, Matthias Wimmer wrote:

> Just in the case, that there is something like the following in DNS, jabberd 
> 1.4.4 would be wrong (but I think this example is of academic nature, and can 
> hardly imagine, that this could be really used in DNS):
>
> _xmpp-server._tcp.example.com 3600 SRV 5 0 0 .
> _xmpp-server._tcp.example.com 3600 SRV 10 0 5269 s2s.example.com
>
> In that case jabberd 1.4.4 would contact s2s.example.com on port 5269 - while 
> it shouldn't.

Actually, in that case it probably should, as the usage of the target of 
'.' to stop SRV resolution is only applicable if there is only one answer, 
assuming I'm reading 2781^H2 correctly.

Attempting to look up an A/AAAA for '.' is wrong though, but it works 
because there will never be one for '.'.

-- 
   Bruce Campbell



More information about the JDev mailing list