metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Net::DNS::Resolver#searchlist=
Set the resolver searchlist.
+arg+ can be a single string or an array of strings
res.searchstring = "example.com"
res.searchstring = ["example.com","a.example.com","b.example.com"]
Note that you can also append a new name to the searchlist
res.searchlist << "c.example.com"
res.searchlist
#=> ["example.com","a.example.com","b.example.com","c.example.com"]
The default is an empty arrayEdit
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-searchlist--for-pr
# Commit to gitgit add lib/net/dns/resolver.rbgit commit -m "better docs for Net::DNS::Resolver#searchlist="
# 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-searchlist--for-pr
hub pull-request
# Celebrate!