inet6 support in inet:getaddr()

Fredrik Thulin ft@REDACTED
Tue Apr 13 16:36:02 CEST 2004

On Saturday 10 April 2004 14.13, Tony Rogvall wrote:
> Use
> inet:gethostbyname/2
> it will return {ok, HEnt}  where HEnt is a hostent record which is
> defined in kernel/include/inet.hrl
> Please look around in the resolver code to find out more goodies ...
> you may find the inet_dns/inet_res/inet_parse/inet_db and inet modules
> interesting.

Yummy. Thanks! Excellent. No more using regexps to determine if something is a 
valid IPv4 or v6 address ;)


More information about the erlang-questions mailing list