Hi,

* Konstantin Khomoutov <flatw...@users.sourceforge.net> [2009-07-30 
21:40:51+0400]:
> 
> A quick followup to my previous post.
> 
> First, it's not needed to mess with ejabberd to see what Erlang resolver  
> configuration it sees -- it suffices to start the standalone Erlang shell 
> with the right parameters.
> 
> Second, this post [1] suggests to tweak the Erlang resolver config --  
> worth trying out.
> 
> How to do this.
> 
> [snipped]
>
This is what I ran:
----
a...@chipmunk:~$ cat /tmp/run 
inet:get_rc().
inet_res:getbyname("_xmpp-server._tcp.gmail.com", srv).
----

It seems that "nameserver ::1" does not work at all, probably an erlang 
bug instead?

-- nameserver 127.0.0.1 + !inet6 --
a...@chipmunk:~$ erl -kernel inetrc '"/tmp/inetrc"' < /tmp/run
Eshell V5.6.3  (abort with ^G)
1> [{domain,"wormnet.eu"},
 {nameserver,{127,0,0,1}},
 {search,["wormnet.eu"]},
 {lookup,[native]}]
2> {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-server1.l.google.com"},
              {5,0,5269,"xmpp-server.l.google.com"},
              {20,0,5269,"xmpp-server4.l.google.com"}]}}
3> *** Terminating erlang (non...@nohost)
----------------------------------

-- nameserver ::1 + !inet6 --
a...@chipmunk:~$ erl -kernel inetrc '"/tmp/inetrc"' < /tmp/run
Eshell V5.6.3  (abort with ^G)
1> [{domain,"wormnet.eu"},
 {search,["wormnet.eu"]},
 {lookup,[native]}]
2> {error,timeout}
3> *** Terminating erlang (non...@nohost)
----------------------------------

-- nameserver 127.0.0.1 + inet6 --
a...@chipmunk:~$ erl -kernel inetrc '"/tmp/inetrc"' < /tmp/run
Eshell V5.6.3  (abort with ^G)
1> [{domain,"wormnet.eu"},
 {nameserver,{127,0,0,1}},
 {search,["wormnet.eu"]},
 {inet6,true},
 {lookup,[native]}]
2> {ok,{hostent,"_xmpp-server._tcp.gmail.com",[],srv,5,
             [{20,0,5269,"xmpp-server4.l.google.com"},
              {20,0,5269,"xmpp-server1.l.google.com"},
              {20,0,5269,"xmpp-server2.l.google.com"},
              {5,0,5269,"xmpp-server.l.google.com"},
              {20,0,5269,"xmpp-server3.l.google.com"}]}}
3> *** Terminating erlang (non...@nohost)
----------------------------------

-- nameserver ::1 + inet6 --
a...@chipmunk:~$ erl -kernel inetrc '"/tmp/inetrc"' < /tmp/run
Eshell V5.6.3  (abort with ^G)
1> [{domain,"wormnet.eu"},
 {search,["wormnet.eu"]},
 {inet6,true},
 {lookup,[native]}]
2> {error,timeout}
3> *** Terminating erlang (non...@nohost)
----------------------------------

In the next posting[1] in the 'inet6' thread I see:
----
inet_db:add_ns({A,B,C,D}).  %% Name server must be IPv4, there is a fixme in 
inet_db.
----

Looking at inet_db.erl I see "Fix IPv6 nameservers" all over the place, 
so it's a bug in upstream erlang it seems?

It is interesting that an A record lookup is made by ejabberd though in 
this situation, is there some fallback code being involked?  Should it 
be?

Cheers

[1] http://erlang.org/pipermail/erlang-questions/2008-April/034254.html

-- 
Alexander Clouter
.sigmonster says: Tuesday is the Wednesday of the rest of your life.



-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to