class SecurityTrails::Clients::Domain

Public Instance Methods

get_associated_domains(hostname) click to toggle source

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
get_by_hostname(hostname) click to toggle source

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
get_subdomains(hostname) click to toggle source

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
get_tags(hostname) click to toggle source

Returns tags for a given hostname

@see docs.securitytrails.com/reference#list-tags

@param [String] hostname

@return [Hash]

# File lib/securitytrails/clients/domain.rb, line 41
def get_tags(hostname)
  get("/domain/#{hostname}/tags") { |json| json }
end
get_whois(hostname) click to toggle source

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