Class: Ronin::Support::Network::ASN::DNSRecord

Inherits:
Record
  • Object
show all
Defined in:
lib/ronin/support/network/asn/dns_record.rb

Overview

Represents a DNS record returned by Team Cymru's ASN rDNS service.

Since:

  • 1.0.0

Instance Attribute Summary

Attributes inherited from Record

#country_code, #number, #range

Instance Method Summary collapse

Methods inherited from Record

#==, #each, #include?, #ipv4?, #ipv6?, #not_routed?, #routed?, #to_s

Constructor Details

#initialize(number, range, country_code) ⇒ DNSRecord

Initializes the record.

Parameters:

Since:

  • 1.0.0



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

#dateDate

Note:

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.

Returns:

  • (Date)

Since:

  • 1.0.0



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

#nameString

Note:

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.

Returns:

Since:

  • 1.0.0



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

#registryString

Note:

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.

Returns:

Since:

  • 1.0.0



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