metasploit-framework

https://github.com/rapid7/metasploit-framework

Ruby

Metasploit Framework

Net::DNS::Resolver#defname=

Set the flag +defname+ in a boolean state. if +defname+ is true,
calls to Resolver#query will append the default domain to names
that contain no dots.
Example:

  # Domain example.com
  res.defname = true
  res.query("machine1")
    #=> This will perform a query for machine1.example.com

Default is true.

Source | Google | Stack overflow

Edit

git clone [email protected]:rapid7/metasploit-framework.git

cd metasploit-framework

open lib/net/dns/resolver.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Net--DNS--Resolver-defname--for-pr


# Commit to git

git add lib/net/dns/resolver.rbgit commit -m "better docs for Net::DNS::Resolver#defname="


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Net--DNS--Resolver-defname--for-pr

hub pull-request


# Celebrate!