diff --git a/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb b/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb index 11dc3096..f4b90deb 100644 --- a/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb +++ b/middleman-core/lib/middleman-core/dns_resolver/basic_network_resolver.rb @@ -21,7 +21,7 @@ module Middleman # Array of Names def getnames(ip) resolver.getnames(ip.to_s).map(&:to_s) - rescue Resolv::ResolvError, Errno::EADDRNOTAVAIL + rescue Resolv::ResolvError, Errno::EADDRNOTAVAIL, Errno::ENETUNREACH [] end @@ -34,7 +34,7 @@ module Middleman # Array of ipaddresses def getaddresses(name) resolver.getaddresses(name.to_s).map(&:to_s) - rescue Resolv::ResolvError, Errno::EADDRNOTAVAIL + rescue Resolv::ResolvError, Errno::EADDRNOTAVAIL, Errno::ENETUNREACH [] end