[jdev] net::jabber connect w/ srv dns

Bruce Campbell list-jdev at vicious.dropbear.id.au
Thu Jul 13 04:34:34 CDT 2006


On Wed, 12 Jul 2006, Gabriel Millerd wrote:

> Recently my server addressing has changed somewhat. Now its location
> is srv based and the actual host doesn't match the realm. Because of
> this I am unable to get anything to work in net::jabber or the perl
> interface to loudmoth. Though once change to my /etc/hosts gets me in
> the door. I cannot really do that sadly.
>
> Is there a way around this?

You will need to do the SRV lookups yourself in order to hand Net::Jabber 
a hostname, either via Net::DNS (requiring you to know how SRV records 
work), or Net::RULI (interface to extra library, but hands you the results 
on a platter).

I'd point at the ->resolve routine of Jabber::Lite (perl-only Jabber 
parser/whathaveyou), but thats just blatant self-promotion ;)

-- 
   Bruce Campbell



More information about the JDev mailing list