Socket.getaddrinfo(nodename, servname[, family[, socktype[, protocol[, flags[, reverse_lookup]]]]]) => array
Class Public methods
Obtains address information for nodename:servname.
family should be an address family such as: :INET, :INET6, :UNIX,
etc.
socktype should be a socket type such as: :STREAM, :DGRAM, :RAW,
etc.
protocol should be a protocol defined in the family, and defaults
to 0 for the family.
flags should be bitwise OR of Socket::AI_* constants.
Socket.getaddrinfo(