Class: Middleman::DnsResolver::NetworkResolver
- Inherits:
-
BasicNetworkResolver
- Object
- BasicNetworkResolver
- Middleman::DnsResolver::NetworkResolver
- Defined in:
- lib/middleman-core/dns_resolver/network_resolver.rb
Overview
Use network name server to resolve ips and names
Instance Method Summary collapse
-
#initialize(opts = {}) ⇒ NetworkResolver
constructor
A new instance of NetworkResolver.
Methods inherited from BasicNetworkResolver
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 |