Class: BinaryEdge::Client::Domains

Inherits:
Base
  • Object
show all
Includes:
Action::IP, Action::Search
Defined in:
lib/binaryedge/clients/domains.rb

Constant Summary

Constants inherited from Base

Base::BASE_URL, Base::HOST, Base::VERSION

Instance Attribute Summary

Attributes inherited from Base

#api_key

Instance Method Summary collapse

Methods included from Action::Search

#search

Methods included from Action::IP

#ip

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from BinaryEdge::Client::Base

Instance Method Details

#dns(target, page: 1) ⇒ Hash

Return list of known DNS results for the target domain.

Parameters:

  • Domain (String)

    you want to get DNS related data.

  • page (Integer) (defaults to: 1)

    Default 1, Maximum: 500

Returns:

  • (Hash)


30
31
32
33
# File 'lib/binaryedge/clients/domains.rb', line 30

def dns(target, page: 1)
  params = { page: page }
  _get("/query/domains/dns/#{target}", params) { |json| json }
end

#subdomain(target, page: 1) ⇒ Hash

Return list of subdomains known from the target domains

Parameters:

  • target (String)

    Domain you want to get list of known subdomains.

  • page (Integer) (defaults to: 1)

    Default 1, Maximum: 500

Returns:

  • (Hash)


17
18
19
20
# File 'lib/binaryedge/clients/domains.rb', line 17

def subdomain(target, page: 1)
  params = { page: page }
  _get("/query/domains/subdomain/#{target}", params) { |json| json }
end