Class: Dert::IPV6

Inherits:
Object
  • Object
show all
Defined in:
lib/dert/methods/ipv6.rb

Class Method Summary collapse

Class Method Details

.query(domain, wordlist) ⇒ Object



6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/dert/methods/ipv6.rb', line 6

def self.query(domain, wordlist)
  results = []
  # AAAA
  begin
    ret = @res.query(domain, Dnsruby::Types.AAAA)
    ret.answer.each do |x|
      results << {
          address: x.address.to_s,
          type: x.type,
          hostname: x.name.to_s,
          ttl: x.ttl,
          klass: x.klass,
      }
    end
  rescue => e
    #
  end
  results
end