Class: Middleman::DnsResolver::LocalLinkResolver
- Inherits:
-
BasicNetworkResolver
- Object
- BasicNetworkResolver
- Middleman::DnsResolver::LocalLinkResolver
- Defined in:
- middleman-core/lib/middleman-core/dns_resolver/local_link_resolver.rb
Overview
Use network name server to resolve ips and names
Instance Method Summary collapse
-
#initialize(options_hash = ::Middleman::EMPTY_HASH) ⇒ LocalLinkResolver
constructor
A new instance of LocalLinkResolver.
Methods inherited from BasicNetworkResolver
Constructor Details
#initialize(options_hash = ::Middleman::EMPTY_HASH) ⇒ LocalLinkResolver
Returns a new instance of LocalLinkResolver.
9 10 11 12 13 14 15 16 |
# File 'middleman-core/lib/middleman-core/dns_resolver/local_link_resolver.rb', line 9 def initialize( = ::Middleman::EMPTY_HASH) super @timeouts = .fetch(:timeouts, 1) @resolver = .fetch(:resolver, Resolv::MDNS.new(nameserver_config)) self.timeouts = timeouts end |