Module: Ronin::Network::Mixins::DNS

Includes:
Mixin, DNS
Defined in:
lib/ronin/network/mixins/dns.rb

Overview

Adds DNS convenience methods and parameters to a class.

Defines the following parameters:

  • nameserver (String) - DNS nameserver to query.

Since:

  • 0.4.0

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Mixin

included

Methods included from DNS

#dns_lookup, #dns_lookup_all, #dns_reverse_lookup, #dns_reverse_lookup_all

Class Method Details

.nameserverObject

Since:

  • 0.4.0



38
39
# File 'lib/ronin/network/mixins/dns.rb', line 38

parameter :nameserver, :type => String,
:description => 'DNS nameserver'

.nameserver=(value) ⇒ Object

Since:

  • 0.4.0



38
39
# File 'lib/ronin/network/mixins/dns.rb', line 38

parameter :nameserver, :type => String,
:description => 'DNS nameserver'

Instance Method Details

#dns_resolver(nameserver = self.nameserver) ⇒ Object (protected)

The DNS Resolver to use.

See Also:

Since:

  • 0.4.0



48
49
50
# File 'lib/ronin/network/mixins/dns.rb', line 48

def dns_resolver(nameserver=self.nameserver)
  super(nameserver)
end

#nameserverObject

Since:

  • 0.4.0



38
39
# File 'lib/ronin/network/mixins/dns.rb', line 38

parameter :nameserver, :type => String,
:description => 'DNS nameserver'

#nameserver=(value) ⇒ Object

Since:

  • 0.4.0



38
39
# File 'lib/ronin/network/mixins/dns.rb', line 38

parameter :nameserver, :type => String,
:description => 'DNS nameserver'