Sha256: 010ab7bbcc9e30d181789129a76c95ca19c8b0af3d8f93db9c2d902384cf7bbe
Contents?: true
Size: 711 Bytes
Versions: 6
Compression:
Stored size: 711 Bytes
Contents
# frozen_string_literal: true module Mihari module Clients # # Google Public DNS enricher # class GooglePublicDNS < Base # # @param [String] base_url # @param [Hash] headers # @param [Integer, nil] timeout # def initialize(base_url = "https://dns.google", headers: {}, timeout: nil) super end # # Query Google Public DNS by resource type # # @param [String] name # # @return [Mihari::Structs::GooglePublicDNS::Response, nil] # def query_all(name) Structs::GooglePublicDNS::Response.from_dynamic! get_json("/resolve", params: {name:, type: "ALL"}) end end end end
Version data entries
6 entries across 6 versions & 1 rubygems