Class: Middleman::DnsResolver::NetworkResolver

Inherits:
BasicNetworkResolver show all
Defined in:
lib/middleman-core/dns_resolver/network_resolver.rb

Overview

Use network name server to resolve ips and names

Instance Method Summary collapse

Methods inherited from BasicNetworkResolver

#getaddresses, #getnames

Constructor Details

#initialize(opts = {}) ⇒ NetworkResolver

Returns a new instance of NetworkResolver



7
8
9
10
11
12
# File 'lib/middleman-core/dns_resolver/network_resolver.rb', line 7

def initialize(opts={})
  super

  @resolver = opts.fetch(:resolver, Resolv::DNS.new(nameserver_config))
  self.timeouts = timeouts
end