vendor/bundle/ruby/2.7.0/gems/dnsruby-1.61.5/lib/dnsruby/DNS.rb
# Iterates over all hostnames for +address+ retrieved from the DNS resolver
# 
# +address+ must be a Dnsruby::IPv4, Dnsruby::IPv6 or a String. Retrieved
# name will be a Dnsruby::Name.
Iterates over all hostnames for +address+ retrieved from the DNS resolver
+address+ must be a Dnsruby::IPv4, Dnsruby::IPv6 or a String. Retrieved
name will be a Dnsruby::Name.
Iterates over all hostnames for + address + retrieved from the DNS resolver + address + must be a Dnsruby :: IPv4 Dnsruby :: IPv6 or a String . Retrieved name will be a Dnsruby :: Name .
def each_name(address)
      case address
      when Name
        ptr = address
      when  IPv4, IPv6
        ptr = address.to_name
      when IPv4::Regex
        ptr = IPv4.create(address).to_name
      when IPv6::Regex
        ptr = IPv6.create(address).to_name
      else
        raise ResolvError.new("cannot interpret as address: #{address}")
      end
      each_resource(ptr, Types.PTR, Classes.IN) {|resource| yield resource.domainname}
    end
def each_name ( address ) case address when Name ptr = address when IPv4 , IPv6 ptr = address . to_name when IPv4 :: Regex ptr = IPv4 . create ( address ) . to_name when IPv6 :: Regex ptr = IPv6 . create ( address ) . to_name else raise ResolvError . new ( "cannot interpret as address: #{address}" ) end each_resource ( ptr , Types . PTR , Classes . IN ) { | resource | yield resource . domainname } end
Iterates over all hostnames for +address+ retrieved from the DNS resolver
+address+ must be a Dnsruby::IPv4, Dnsruby::IPv6 or a String.
Iterates over all hostnames for + address + retrieved from the DNS resolver + address + must be a Dnsruby :: IPv4 Dnsruby :: IPv6 or a String .
address
<not_specific>