vendor/bundle/ruby/2.3.0/gems/github-pages-health-check-1.2.0/lib/github-pages-health-check/domain.rb
# Returns an array of DNS answers
Returns an array of DNS answers
Returns an array of DNS answers
def dns
        return @dns if defined? @dns
        return unless valid_domain?
        @dns = Timeout.timeout(TIMEOUT) do
          GitHubPages::HealthCheck.without_warnings do
            Net::DNS::Resolver.start(absolute_domain).answer unless host.nil?
          end
        end
      rescue StandardError
        @dns = nil
      end
def dns return @dns if defined? @dns return unless valid_domain? @dns = Timeout . timeout ( TIMEOUT ) do GitHubPages :: HealthCheck . without_warnings do Net :: DNS :: Resolver . start ( absolute_domain ) . answer unless host . nil? end end rescue StandardError @dns = nil end
Returns an array of DNS answers
Returns an array of DNS answers