vendor/bundle/ruby/2.7.0/gems/github-pages-health-check-1.17.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
            next if host.nil?
            REQUESTED_RECORD_TYPES
              .map { |type| resolver.query(type) }
              .flatten.uniq
          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 next if host . nil? REQUESTED_RECORD_TYPES . map { | type | resolver . query ( type ) } . flatten . uniq end end rescue StandardError @dns = nil end
Returns an array of DNS answers
Returns an array of DNS answers