inet:gethostbyname issue
Yogish Baliga
yogishb@REDACTED
Fri Aug 21 20:40:14 CEST 2009
erl -name baliga@REDACTED
1> inet:gethostbyname("foo").
{ok, {hostent, "foo"....}}
erl
1> inet:gethostbyname("foo").
{ok, {hostent, "foo.example.com"...}}
When erlang node is started with long node name, inet:gethostbyname/1 return short hostname. But starting erlang node with short node name or no node name, inet:gethostbyname/1 return full hostname.
Any fix for this?
Thanx,
-- baliga
"Point of view is worth 80 IQ points" --Alan Kay
http://dudefrommangalore.blogspot.com/
More information about the erlang-questions
mailing list