Class: Ronin::DB::DNSQuery
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Ronin::DB::DNSQuery
- Includes:
- Model
- Defined in:
- lib/ronin/db/dns_query.rb
Overview
Represents a DNS query.
Instance Attribute Summary collapse
-
#created_at ⇒ Time
When the DNS query request was created.
-
#id ⇒ Integer
The primary ID for the DNS query.
-
#label ⇒ String
The queried domain label.
-
#records ⇒ Array<DNSRecord>
The optional DNS records associated with the DNS query.
-
#source_addr ⇒ String
The source IP Address.
-
#type ⇒ String
The queried record type.
Method Summary
Methods included from Model
Instance Attribute Details
#created_at ⇒ Time
When the DNS query request was created.
86 |
# File 'lib/ronin/db/dns_query.rb', line 86 attribute :created_at, :datetime |
#id ⇒ Integer
The primary ID for the DNS query.
41 |
# File 'lib/ronin/db/dns_query.rb', line 41 attribute :id, :integer |
#label ⇒ String
The queried domain label.
68 |
# File 'lib/ronin/db/dns_query.rb', line 68 attribute :label, :string |
#records ⇒ Array<DNSRecord>
The optional DNS records associated with the DNS query.
92 |
# File 'lib/ronin/db/dns_query.rb', line 92 has_many :records, class_name: 'DNSRecord' |
#source_addr ⇒ String
The source IP Address.
75 |
# File 'lib/ronin/db/dns_query.rb', line 75 attribute :source_addr, :string |
#type ⇒ String
The queried record type.
47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 |
# File 'lib/ronin/db/dns_query.rb', line 47 enum type: { a: 'A', aaaa: 'AAAA', any: 'ANY', cname: 'CNAME', hinfo: 'HINFO', loc: 'LOC', mx: 'MX', ns: 'NS', ptr: 'PTR', soa: 'SOA', srv: 'SRV', txt: 'TXT', wks: 'WKS' }, _suffix: :query |