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

NOTE! Beware, there is a Ruby library class named Resolv, and you may need to explicitly specify Dnsruby::Resolv to use the Dnsruby Resolv class, even if you have include‘d Dnsruby.

Methods

Constants

ADDRESS_REGEX = /(?:#{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

Some class methods require the use of an instance to compute their result. For this purpose we create a single instance that can be reused.

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]