W2003 vs. inet vs. inets ?
Robert Raschke
rtrlists@REDACTED
Fri Jul 17 12:32:06 CEST 2009
Hi,
has anyone else come across inet_gethost.exe issues on Windows 2003 Server?
I am seeing the following on 2003 (R13 has the exact same result, btw):
Eshell V5.6.5 (abort with ^G)
(erl@REDACTED)1> inet:getaddr("vm-153013-2", inet).
{ok,{172,16,3,32}}
(erl@REDACTED)2> inet:getaddr("www.google.com", inet).
{error,timeout}
And this on XP:
Eshell V5.6.5 (abort with ^G)
(erl@REDACTED)1> inet:getaddr("02533-Laptop", inet).
{ok,{172,16,1,33}}
(erl@REDACTED)2> inet:getaddr("www.google.com", inet).
{ok,{209,85,227,147}}
On the Windows 2003 Server, nslookup, wget, IE, etc. all have no difficulty
in looking up www.google.com .
If I turn on tracing of inet_gethost.exe I get this on the 2003 Server:
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):num_workers = 4,
greedy_threshold = 3, debug_level = 7.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Created reader and
writer threads.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data on index
0.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data from
erlang.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):OPeration == 1.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Saved domainname .
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Created
worker[2772] with fd 3485552
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Saved domainname .
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Worker got data on
message que.
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Worker got
request, op = 1, proto = 2, data = localhost.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data on index
1.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data on index
0.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data from
erlang.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):OPeration == 1.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Saved domainname .
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Saved domainname .
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Worker got data on
message que.
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Worker got
request, op = 1, proto = 1, data = vm-153013-2.
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Starting
gethostbyname(vm-153013-2)
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):gethostbyname OK
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data on index
1.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data on index
0.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data from
erlang.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):OPeration == 1.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Saved domainname .
google.com.
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Worker got data on
message que.
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Worker got
request, op = 1, proto = 1, data = www.google.com.
...\release\erts-5.6.5\bin\inet_gethost.exe[2772] (DEBUG):Starting
gethostbyname(www.google.com)
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Saved domainname .
google.com.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data on index
0.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Got data from
erlang.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):OPeration == 3.
...\release\erts-5.6.5\bin\inet_gethost.exe[2824] (DEBUG):Stalled
worker[2772]
It looks like the call to gethostbyname() never returns!
Where do I look next?
Thanks for any hints and pointers,
Robby
More information about the erlang-questions
mailing list