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 array

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-searchlist--for-pr


# Commit to git

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


# 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-searchlist--for-pr

hub pull-request


# Celebrate!