[ejabberd] ejabberd and SRV records

Zbyszek Żółkiewski zbyszek at toliman.pl
Sun Mar 19 19:25:09 MSK 2006



Zbyszek Żółkiewski wrote:
> 
> 
> Zbigniew Zolkiewski wrote:
>> there are some improvements to srv records in svn of ejabbrd:
>>
>> +++++++++++
>>     * src/ejabberd_s2s_out.erl: Better support for multiple SRV
>>     records (thanks to Sergei Golovan)
>> +++++++++++
>>
>> maybe try that. google-talk works fine with my server.
>>
>> pozdr,
>> Zbyszek Żółkiewski
>>
>> -----Original Message-----
>> From: "Sergio Álvarez (xergio)" <listas at xergio.net>
>> To: ejabberd at jabber.ru
>> Date: Sun, 19 Mar 2006 15:00:23 +0100
>> Subject: Re: [ejabberd] ejabberd and SRV records
>>
>> I have the same "problems".
>>
>> In addition, when a gmail contact don't change his presence for a long 
>> time and I reconnect from jabber, I see it as disconnect while he 
>> don't change his presence or send me a message.
>>
>> I think that is something of gtalk's server, right?
>>
>> Danijel Tasov wrote:
>>> Hello,
>>>
>>> I'm a bit confused about the DNS SRV thing in ejabberd. I have read
>>> http://ejabberd.jabber.ru/fix-dns-srv and the related links, and it
>>> seems that people, including me ;), are still having problems.
>>>
>>> When a gmail-user is online I don't see him as online until he sends a
>>> message to me. When he goes offline he still apears online in my roster
>>> for a long time, the same happens on jabber.ccc.de.
>>>
>>> I'm running ejabberd-1.0.0 with erlang-r10b9 on FreeBSD 6 inside a jail.
>>>
>>> ps shows:
>>> ejabberd      30964  0.0  2.2 29212 22832  q7  SJ   12:49AM   0:02.38 
>>> /usr/local/lib/erlang/erts-5.4.12/bin/beam -- -root 
>>> /usr/local/lib/erlang -progname erl -- -home /var/spool/ejabberd 
>>> -sname ejabberd -s ejabberd -ejabberd config 
>>> "/usr/local/etc/ejabberd/ejabberd.cfg" log_path 
>>> "/var/log/ejabberd/ejabberd.log" -sasl sasl_error_logger 
>>> {file,"/var/log/ejabberd/sasl.log"} -mnesia dir "/var/spool/ejabberd" 
>>> -kernel inetrc "/usr/local/etc/ejabberd/ejabberd.inetrc" -noshell 
>>> -noshell -noinput -noshell -noinput
>>>
>>> /usr/local/etc/ejabberd/ejabberd.inetrc:
>>> %{lookup,["file","native"]}.
>>> %{host,{127,0,0,1}, ["localhost","hostalias"]}.
>>> {file, resolv, "/etc/resolv.conf"}.
>>>
>>> /etc/resolv.conf:
>>> domain pilgerer.org
>>> search pilgerer.de pilgerer.org
>>> nameserver      195.30.94.203
>>> nameserver      195.30.0.2
>>> nameserver      195.30.0.1
>>>
>>> erl -sname test -kernel inetrc 
>>> \"/usr/local/etc/ejabberd/ejabberd.inetrc\"
>>> Erlang (BEAM) emulator version 5.4.12 [source] [hipe] [threads:0] 
>>> [kernel-poll]
>>>
>>> Eshell V5.4.12  (abort with ^G)
>>> (test at hamlet)1> inet_res:getbyname("_xmpp-server._tcp.gmail.com", srv).
>>> {ok,{hostent,"_xmpp-server._tcp.gmail.com",
>>>              [],
>>>              srv,
>>>              5,
>>>              [{20,0,5269,"xmpp-server2.l.google.com"},
>>>               {20,0,5269,"xmpp-server3.l.google.com"},
>>>               {20,0,5269,"xmpp-server4.l.google.com"},
>>>               {5,0,5269,"xmpp-server.l.google.com"},
>>>               {20,0,5269,"xmpp-server1.l.google.com"}]}}
>>> (test at hamlet)2> ets:tab2list(inet_db).
>>> [{socks5_noproxy,[]},
>>>  {res_recurse,1},
>>>  {res_id,1},
>>>  {hostname,"hamlet"},
>>>  {res_alt_ns,[]},
>>>  {cache_refresh_interval,3600000},
>>>  {res_inet6,false},
>>>  {socks5_port,1080},
>>>  {socks5_methods,[none]},
>>>  {res_timeout,2000},
>>>  {cache_size,100},
>>>  {res_domain,"pilgerer.org"},
>>>  {res_retry,3},
>>>  {res_ns,[{{195,30,94,203},53},{{195,30,0,2},53},{{195,30,0,1},53}]},
>>>  {res_lookup,[native]},
>>>  {udp_module,inet_udp},
>>>  {tcp_module,inet_tcp},
>>>  {socks5_server,[]},
>>>  {res_search,["pilgerer.org","pilgerer.de"]},
>>>  {res_usevc,false}]
>>> (test at hamlet)3>
>>>
>>
> 


More information about the ejabberd mailing list