for debug
Iterates over all IP addresses for name
retrieved from the hosts file.
Iterates over all hostnames for address
retrieved from the hosts file.
Iterates over all IP addresses for name
retrieved from the DNS
resolver.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Iterates over all hostnames for address
retrieved from the DNS
resolver.
address
must be a Resolv::IPv4
, Resolv::IPv6
or a String
. Retrieved names will be Resolv::DNS::Name
instances.
Iterates over all typeclass
DNS
resources for name
. See getresource
for argument details.
Iterates over all IP addresses for name
retrieved from the mDNS resolver, provided name ends with “local”. If the name does not end in “local” no records will be returned.
name
can be a Resolv::DNS::Name
or a String
. Retrieved addresses will be a Resolv::IPv4
or Resolv::IPv6
Creates a socket at address
If address
is multicast address then interface_address
and multicast_interface
can be set as optional.
A created socket is bound to interface_address
. If you use IPv4 multicast then the interface of interface_address
is used as the inbound interface. If interface_address
is omitted or nil then ‘0.0.0.0’ or ‘::1’ is used.
If you use IPv6 multicast then multicast_interface
is used as the inbound interface. multicast_interface
is a network interface index. If multicast_interface
is omitted then 0 (default interface) is used.
Returns an expiry Time
based on sec
which can be one of: