class DoHClient::Client::Google

Public Instance Methods

build_query(name, options) click to toggle source
# File lib/doh_client/client/google.rb, line 10
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
endpoint() click to toggle source
# File lib/doh_client/client/google.rb, line 6
def endpoint
  "https://dns.google.com/resolve"
end