{error,timeout} with gethostbyname

info info@REDACTED
Wed Sep 23 16:31:35 CEST 2009


Hi all,
On a windows 2003 server sbs this command returns {ok,"my_host"} :

{ok,N}=inet:gethostname().

But the following command returns {error,timeout} :

inet:gethostbyname(N).

On a Vista machine, the previous command returns a correct answer.

I know that it is not an erlang problem but if you could give me support, I will appreciate ;-)


More information about the erlang-questions mailing list