Class: DNSTwister::API
Constant Summary
Constants inherited from Base
Instance Method Summary collapse
-
#fuzz(domain) ⇒ Hash
Calculates the dnstwist “fuzzy domains” for a domain.
-
#ip(domain) ⇒ Hash
Resolves Domains to IPs.
-
#parked(domain) ⇒ Hash
Calculates “parked” scores from 0-1.
-
#safebrowsing(domain) ⇒ Hash
Returns number of hits in Google Safe Browsing.
-
#whois(domain) ⇒ Hash
Calculates the dnstwist “fuzzy domains” for a domain.
Instance Method Details
#fuzz(domain) ⇒ Hash
Calculates the dnstwist “fuzzy domains” for a domain
12 13 14 |
# File 'lib/dnstwister/api.rb', line 12 def fuzz(domain) _get("/api/fuzz/#{to_hex(domain)}") { |json| json } end |
#ip(domain) ⇒ Hash
Resolves Domains to IPs
34 35 36 |
# File 'lib/dnstwister/api.rb', line 34 def ip(domain) _get("/api/ip/#{to_hex(domain)}") { |json| json } end |
#parked(domain) ⇒ Hash
Calculates “parked” scores from 0-1
45 46 47 |
# File 'lib/dnstwister/api.rb', line 45 def parked(domain) _get("/api/parked/#{to_hex(domain)}") { |json| json } end |
#safebrowsing(domain) ⇒ Hash
Returns number of hits in Google Safe Browsing
23 24 25 |
# File 'lib/dnstwister/api.rb', line 23 def safebrowsing(domain) _get("/api/safebrowsing/#{to_hex(domain)}") { |json| json } end |
#whois(domain) ⇒ Hash
Calculates the dnstwist “fuzzy domains” for a domain.
56 57 58 |
# File 'lib/dnstwister/api.rb', line 56 def whois(domain) _get("/api/whois/#{to_hex(domain)}") { |json| json } end |