class SecurityTrails::Clients::Domain
Public Instance Methods
Find all domains that are related to a domain you input
@see docs.securitytrails.com/reference#find-associated-domains
@param [String] hostname
@return [Hash]
# File lib/securitytrails/clients/domain.rb, line 54 def get_associated_domains(hostname) get("/domain/#{hostname}/associated") { |json| json } end
Returns the current data about the given domain. In addition to the current data, you also get the current statistics associated with a particular record. For example, for a records you'll get how many other domains have the same IP.
@see docs.securitytrails.com/reference#get-domain
@param [String] hostname
@return [Hash]
# File lib/securitytrails/clients/domain.rb, line 15 def get_by_hostname(hostname) get("/domain/#{hostname}") { |json| json } end
Returns subdomains for a given hostname
@see docs.securitytrails.com/reference#list-subdomains
@param [String] hostname
@return [Hash]
# File lib/securitytrails/clients/domain.rb, line 28 def get_subdomains(hostname) get("/domain/#{hostname}/subdomains") { |json| json } end
Returns the current WHOIS data about a given domain with the stats merged together
@see docs.securitytrails.com/reference#get-whois
@param [String] hostname
@return [Hash]
# File lib/securitytrails/clients/domain.rb, line 67 def get_whois(hostname) get("/domain/#{hostname}/whois") { |json| json } end