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.Edit
git clone [email protected]:rapid7/metasploit-framework.git
cd metasploit-framework
open lib/net/dns/resolver.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Net--DNS--Resolver-defname--for-pr
# Commit to gitgit add lib/net/dns/resolver.rbgit commit -m "better docs for Net::DNS::Resolver#defname="
# Open pull requestgem 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!