Class: Ronin::DB::DNSQuery

Inherits:
ActiveRecord::Base
  • Object
show all
Includes:
Model
Defined in:
lib/ronin/db/dns_query.rb

Overview

Represents a DNS query.

Since:

  • 0.2.0

Instance Attribute Summary collapse

Method Summary

Methods included from Model

included

Instance Attribute Details

#created_atTime

When the DNS query request was created.

Returns:

  • (Time)


86
# File 'lib/ronin/db/dns_query.rb', line 86

attribute :created_at, :datetime

#idInteger

The primary ID for the DNS query.

Returns:

  • (Integer)


41
# File 'lib/ronin/db/dns_query.rb', line 41

attribute :id, :integer

#labelString

The queried domain label.

Returns:

  • (String)


68
# File 'lib/ronin/db/dns_query.rb', line 68

attribute :label, :string

#recordsArray<DNSRecord>

The optional DNS records associated with the DNS query.

Returns:



92
# File 'lib/ronin/db/dns_query.rb', line 92

has_many :records, class_name: 'DNSRecord'

#source_addrString

The source IP Address.

Returns:

  • (String)


75
# File 'lib/ronin/db/dns_query.rb', line 75

attribute :source_addr, :string

#typeString

The queried record type.

Returns:

  • (String)


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