Alexander Clouter wrote:
[...]
My /etc/resolv.conf file used to look like:
----
domain wormnet.eu
search wormnet.eu
nameserver ::1
----
[...]
As a result my resolv.conf file now looks like:
----
domain wormnet.eu
search wormnet.eu
nameserver 127.0.0.1
#nameserver ::1
----
This fixes the problem, but makes for an IPv6 bug in ejabberd (or possibly even
erlang?).
Could you please do the following tests for me?
1) Keeping the current setup, run
# ejabberdctl debug
This will attach an Erlang shell to the live ejabberd instance.
2) At the Erlang shell prompt, execute the following two commands
(commands are executed when you hit return, and also notice the trailing
dots):
inet:get_rc().
and
inet_res:getbyname("_xmpp-server._tcp.jabber.ru", srv).
(change the jabber.ru server to whatever server you had troubles with,
if you wish so).
Save the results, quit the shell by executing q(). or by entering Ctrl-g
followed by entering q and hitting return.
3) Revert the "nameserver" setting back to "::1", restart ejabberd and
repeat the step (2).
4) Change everything back to the working state and post the output of
those commands.
At least this could give a clue on how the Erlang DNS resolver is
configured for you in both cases, and whether is is able to correctly
parse the IPv6 address from the system resolver config.
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]