Class Dnsruby::Hosts
In: lib/Dnsruby/Hosts.rb
Parent: Object

Dnsruby::Hosts class

Dnsruby::Hosts is a hostname resolver that uses the system hosts file

class methods

methods

Methods

Constants

DefaultFileName = Win32::Resolv.get_hosts_path
DefaultFileName = '/etc/hosts'

Public Class methods

Creates a new Dnsruby::Hosts using filename for its data source

Public Instance methods

Iterates over all IP addresses for name retrieved from the hosts file

Iterates over all hostnames for address retrieved from the hosts file

Gets the first IP address for name from the hosts file

Gets all IP addresses for name from the hosts file

Gets the first hostname of address from the hosts file

Gets all hostnames for address from the hosts file

[Validate]