Class: DoHClient::Client::Google
- Inherits:
-
Base
- Object
- Base
- DoHClient::Client::Google
show all
- Defined in:
- lib/doh_client/client/google.rb
Instance Method Summary
collapse
Methods inherited from Base
#resolve, resolve, #validate
Instance Method Details
#build_query(name, options) ⇒ Object
10
11
12
13
14
15
16
17
18
|
# 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 ⇒ Object
6
7
8
|
# File 'lib/doh_client/client/google.rb', line 6
def endpoint
"https://dns.google.com/resolve"
end
|