[erlang-questions] Strange inet_gethost_native:gethostbyname behavior

David Welton davidnwelton@REDACTED
Wed Jan 24 04:02:22 CET 2018


I ssh'ed into a system to see what was causing connection problems.

inet_gethost_native:gethostbyname("google.com", inet). kept failing
with {error, try_again}.

Started up a new Erlang shell and tried the same thing.  It worked fine.

Killed the external process it was using, inet_gethost and retried,
and it started working.

This is an older Erlang: erts- but inet_gethost hasn't seen a
lot of changes lately, going on the git logs.

Any ideas what 1) may cause this and 2) how to get around it?  The
system is stuck not being able to do DNS lookups, which is
problematic, to say the least.

David N. Welton



More information about the erlang-questions mailing list