Class: Ronin::Support::Network::ASN::DNSRecord
- Defined in:
- lib/ronin/support/network/asn/dns_record.rb
Overview
Represents a DNS record returned by Team Cymru's ASN rDNS service.
Instance Attribute Summary
Attributes inherited from Record
#country_code, #number, #range
Instance Method Summary collapse
-
#date ⇒ Date
The date the ASN record was registered.
-
#initialize(number, range, country_code) ⇒ DNSRecord
constructor
Initializes the record.
-
#name ⇒ String
The name of the ASN record.
-
#registry ⇒ String
The registry's name of the ASN record.
Methods inherited from Record
#==, #each, #include?, #ipv4?, #ipv6?, #not_routed?, #routed?, #to_s
Constructor Details
#initialize(number, range, country_code) ⇒ DNSRecord
Initializes the record.
48 49 50 |
# File 'lib/ronin/support/network/asn/dns_record.rb', line 48 def initialize(number,range,country_code) super(number,range,country_code,nil) end |
Instance Method Details
#date ⇒ Date
Calling this method for the first time will lazy query
AS<nnn>.asn.cymru.com
for the additional ASN information.
The date the ASN record was registered.
89 90 91 92 |
# File 'lib/ronin/support/network/asn/dns_record.rb', line 89 def date query_additional_info! if @date.nil? return @date end |
#name ⇒ String
Calling this method for the first time will lazy query
AS<nnn>.asn.cymru.com
for the additional ASN information.
The name of the ASN record.
61 62 63 64 |
# File 'lib/ronin/support/network/asn/dns_record.rb', line 61 def name query_additional_info! if @name.nil? return @name end |
#registry ⇒ String
Calling this method for the first time will lazy query
AS<nnn>.asn.cymru.com
for the additional ASN information.
The registry's name of the ASN record.
75 76 77 78 |
# File 'lib/ronin/support/network/asn/dns_record.rb', line 75 def registry query_additional_info! if @registry.nil? return @registry end |