Class Dnsruby::Resolv
In: lib/dnsruby.rb
Parent: Object

The Resolv class can be used to resolve addresses using /etc/hosts and /etc/resolv.conf,

The DNS class may be used to perform more queries. If greater control over the sending of packets is required, then the Resolver or SingleResolver classes may be used.

Methods

Constants

DefaultResolver = self.new   Default Resolver to use for Dnsruby class methods
AddressRegex = /(?:#{IPv4::Regex})|(?:#{IPv6::Regex})/   Address RegExp to use for matching IP addresses

Public Class methods

Iterates over all IP addresses for name

Iterates over all hostnames of address

Looks up the first IP address for name

Looks up all IP addresses for name

Looks up the first hostname of address

Looks up all hostnames of address

Public Instance methods

Iterates over all IP addresses for name

Iterates over all hostnames of address

Looks up the first IP address for name

Looks up all IP addresses for name

Looks up the first hostname of address

Looks up all hostnames of address

[Validate]