[erlang-questions] {error,timeout} with gethostbyname
info
info@REDACTED
Thu Sep 24 11:56:48 CEST 2009
Hi !
Thank you for your help !
Here is what you want :
[{socks5_noproxy,[]},
{res_recurse,1},
{res_id,0},
{hostname,"my_host"},
{res_alt_ns,[]},
{cache_refresh_interval,3600000},
{res_inet6,false},
{socks5_port,1080},
{socks5_methods,[none]},
{res_timeout,2000},
{cache_size,100},
{res_domain,[]},
{res_retry,3},
{res_ns,[]},
{res_lookup,[native,file]},
{sctp_module,inet_sctp},
{udp_module,inet_udp},
{tcp_module,inet_tcp},
{socks5_server,[]},
{res_search,[]},
{res_usevc,false}]
I am running R13B01
On Wed, Sep 23, 2009 at 04:31:35PM +0200, info wrote:
> 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 ;-)
Erlang may have problems configuring name lookups.
Give me the output from ets:tab2list(inet_db).
Which erlang release are you running, it sounds like pre-R13B02?
Try starting with erl -name foo
and do the same, ets:tab2list/1 too.
--
/ Raimo Niskanen, Erlang/OTP, Ericsson AB
More information about the erlang-questions
mailing list