Sha256: 7f4ae9203c2a7382f95fd5a44aee501208d9c3863983f31a52e913069cd0fcfc
Contents?: true
Size: 448 Bytes
Versions: 1
Compression:
Stored size: 448 Bytes
Contents
# frozen_string_literal: true module Shodan module Clients class DNS < Base # Look up the IP address for the provided list of hostnames. def resolve(*hostnames) get("/dns/resolve", hostnames: hostnames.join(",")) end # 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 end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
shodanx-0.1.0 | lib/shodan/clients/dns.rb |