[ejabberd] ejabberd and SRV records

Danijel Tasov danielt at pilgerer.org
Sun Mar 19 16:47:39 MSK 2006


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> 


-- 
Danijel Tasov <danielt at pilgerer.org>
JID: data at jabber.pilgerer.org


More information about the ejabberd mailing list