lib/shodan/clients/dns.rb in shodanx-0.1.0 vs lib/shodan/clients/dns.rb in shodanx-0.2.0

- old
+ new

@@ -11,8 +11,13 @@ # Look up the hostnames that have been defined for the # given list of IP addresses. def reverse(*ips) get("/dns/reverse", ips: ips.join(",")) end + + # Get all the subdomains and other DNS entries for the given domain. Uses 1 query credit per lookup. + def domain(domain) + get("/dns/domain/#{domain}") + end end end end