Sha256: 0bdd422779cd68d0259f48068777fd0183206a1fc85eb44123a05ebd8a8621b6

Contents?: true

Size: 445 Bytes

Versions: 5

Compression:

Stored size: 445 Bytes

Contents

# frozen_string_literal: true

module DoHClient
  module Client
    class Google < Base
      def endpoint
        "https://dns.google.com/resolve"
      end

      def build_query(name, options)
        {
          name: name,
          type: options[:type],
          cd: options[:cd],
          edns_client_subnet: options[:edns_client_subnet],
          random_padding: options[:random_padding]
        }.compact
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
doh_client-0.2.2 lib/doh_client/client/google.rb
doh_client-0.2.1 lib/doh_client/client/google.rb
doh_client-0.2.0 lib/doh_client/client/google.rb
doh_client-0.1.1 lib/doh_client/client/google.rb
doh_client-0.1.0 lib/doh_client/client/google.rb