Class FTW::DNS
In: lib/ftw/dns.rb
lib/ftw/namespace.rb
lib/ftw/dns.rb
lib/ftw/namespace.rb
Parent: Object

:nodoc:

Methods

Classes and Modules

Class FTW::DNS::DNS
Class FTW::DNS::Hash

Constants

V4_IN_V6_PREFIX = "0:" * 12   The ipv4-in-ipv6 address space prefix.
V4_IN_V6_PREFIX = "0:" * 12   The ipv4-in-ipv6 address space prefix.

Attributes

resolvers  [R]  An array of resolvers. By default this includes a FTW::DNS::DNS instance.
resolvers  [R]  An array of resolvers. By default this includes a FTW::DNS::DNS instance.

Public Class methods

A new resolver.

The default set of resolvers is only {FTW::DNS::DNS} which does DNS resolution.

A new resolver.

The default set of resolvers is only {FTW::DNS::DNS} which does DNS resolution.

Public Instance methods

Resolve a hostname.

Returns an array of all addresses for this host. Empty array resolution failure.

Resolve a hostname.

Returns an array of all addresses for this host. Empty array resolution failure.

Resolve hostname and choose one of the results at random.

Use this method if you are connecting to a hostname that resolves to multiple addresses.

Resolve hostname and choose one of the results at random.

Use this method if you are connecting to a hostname that resolves to multiple addresses.

[Validate]