Class: Ronin::Support::Network::Domain

Inherits:
Host
  • Object
show all
Defined in:
lib/ronin/support/network/domain.rb

Overview

Represents a domain.

Examples

domain = Domain.new('github.com')
domain.ips
# => [#<Ronin::Support::Network::IP: 192.30.255.113>]
domain.ip
# => #<Ronin::Support::Network::IP: 192.30.255.113>
domain.mailservers
# => ["aspmx.l.google.com",
#     "alt3.aspmx.l.google.com",
#     "alt4.aspmx.l.google.com",
#     "alt1.aspmx.l.google.com",
#     "alt2.aspmx.l.google.com"]
domain.nameservers
# => ["dns1.p08.nsone.net",
#     "dns2.p08.nsone.net",
#     "dns3.p08.nsone.net",
#     "dns4.p08.nsone.net",
#     "ns-1283.awsdns-32.org",
#     "ns-1707.awsdns-21.co.uk",
#     "ns-421.awsdns-52.com",
#     "ns-520.awsdns-01.net"]
domain.txt_strings
# => ["v=spf1 ip4:192.30.252.0/22 include:_netblocks.google.com include:_netblocks2.google.com include:_netblocks3.google.com include:spf.protection.outlook.com include:mail.zendesk.com include:_spf.salesforce.com include:servers.mcsv.net ip4:166.78.69.169 ip4:1",
#     "66.78.69.170 ip4:166.78.71.131 ip4:167.89.101.2 ip4:167.89.101.192/28 ip4:192.254.112.60 ip4:192.254.112.98/31 ip4:192.254.113.10 ip4:192.254.113.101 ip4:192.254.114.176 ip4:62.253.227.114 ~all",
#     "MS=6BF03E6AF5CB689E315FB6199603BABF2C88D805",
#     "MS=ms44452932",
#     "atlassian-domain-verification=jjgw98AKv2aeoYFxiL/VFaoyPkn3undEssTRuMg6C/3Fp/iqhkV4HVV7WjYlVeF8",
#     "stripe-verification=f88ef17321660a01bab1660454192e014defa29ba7b8de9633c69d6b4912217f",
#     "google-site-verification=UTM-3akMgubp6tQtgEuAkYNYLyYAvpTnnSrDMWoDR3o",
#     "MS=ms58704441",
#     "docusign=087098e3-3d46-47b7-9b4e-8a23028154cd",
#     "adobe-idp-site-verification=b92c9e999aef825edc36e0a3d847d2dbad5b2fc0e05c79ddd7a16139b48ecf4b",
#     "apple-domain-verification=RyQhdzTl6Z6x8ZP4"]

Since:

  • 1.0.0

Instance Attribute Summary

Attributes inherited from Host

#name

Method Summary

Methods inherited from Host

#addresses, #change_suffix, #cname, #domain, #each_suffix, #each_tld, #get_a_address, #get_a_addresses, #get_a_record, #get_a_records, #get_aaaa_address, #get_aaaa_addresses, #get_aaaa_record, #get_aaaa_records, #get_address, #get_addresses, #get_any_records, #get_cname, #get_cname_record, #get_hinfo_record, #get_ip, #get_ips, #get_loc_record, #get_mailservers, #get_minfo_record, #get_mx_records, #get_nameservers, #get_ns_records, #get_record, #get_records, #get_soa_record, #get_srv_records, #get_txt_record, #get_txt_records, #get_txt_string, #get_txt_strings, #get_wks_records, #has_addresses?, #has_mailservers?, #has_nameservers?, #hinfo_record, #idn?, #initialize, #inspect, #ip, #ips, #mailservers, #nameservers, #punycode, #punycode?, #registered?, #soa_record, #subdomain, #suffix, #tld, #to_s, #to_str, #txt_strings, #unregistered?

Constructor Details

This class inherits a constructor from Ronin::Support::Network::Host