DNS servers timed out

I have the following errors in my log file:

=INFO REPORT==== 2010-12-28 15:40:47 ===
I(<0.1199.0>:ejabberd_c2s:890) : ({socket_state,tls,{tlssock,#Port<0.1260>,#Port<0.1262>},<0.1198.0>}) Opened session for test@mydomain.com/46d928e3

=INFO REPORT==== 2010-12-28 15:40:48 ===
I(<0.1199.0>:ejabberd_s2s:369) : New s2s connection started <0.1203.0>

=INFO REPORT==== 2010-12-28 15:40:48 ===
I(<0.1203.0>:ejabberd_s2s_out:1203) : Trying to open s2s connection: mydomain.com -> jabber.org with TLS=false

=ERROR REPORT==== 2010-12-28 15:40:48 ===
E(<0.1203.0>:ejabberd_s2s_out:1121) : The DNS servers
[]
timed out on request for "jabber.org" IN SRV. You should check your DNS configuration.

=ERROR REPORT==== 2010-12-28 15:40:48 ===
E(<0.1203.0>:ejabberd_s2s_out:1121) : The DNS servers
[]
timed out on request for "jabber.org" IN SRV. You should check your DNS configuration.

=INFO REPORT==== 2010-12-28 15:40:49 ===
I(<0.401.0>:ejabberd_listener:281) : (#Port<0.1275>) Accepted connection {{208,68,163,220},44834} -> {{88,191,122,107},5269}

I don't understand, ports (5222, 5223 5269 ) are opened, I can ping jabber.org from the server...
Why do I have these errors?

jmehdi wrote: =ERROR

jmehdi wrote:

=ERROR REPORT==== 2010-12-28 15:40:48 ===
E(<0.1203.0>:ejabberd_s2s_out:1121) : The DNS servers
[]
timed out ...

ejabberd/Erlang can't find any DNS server to query.

In my machine, ejabberd gets several:

$ ejabberdctl start
$ ejabberdctl debug
(ejabberd@localhost)1> inet_db:res_option(nameserver).
[{{127,0,0,1},53},
 {{192,168,2,240},53},
 {{192,168,2,241},53}]

Or with simple erlang:

$ erl -kernel inetrc \"/etc/ejabberd/inetrc\"
1> inet_db:res_option(nameserver).
[{{127,0,0,1},53},
 {{192,168,2,240},53},
 {{192,168,2,241},53}]

You should investigate if you have that inetrc file, if it's readable by ejabberd,...

Thanks! I've added the DNS

Thanks! I've added the DNS servers in my config file and it works now

Syndicate content