Sha256: 9391f9e7b2b56cda065b4a3754f382e465c2666076860f833e5e9393ef70e0ad
Contents?: true
Size: 741 Bytes
Versions: 4
Compression:
Stored size: 741 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(base_url, headers:, timeout:) 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
4 entries across 4 versions & 1 rubygems