metasploit-framework
https://github.com/rapid7/metasploit-framework
Ruby
Metasploit Framework
Net::DNS::Resolver#udp_timeout
Return an object representing the value of the stored UDP
timeout the resolver will use in is queries. This object
is an instance of the class +UdpTimeout+, and two methods
are available for printing informations: UdpTimeout#to_s
and UdpTimeout#pretty_to_s.
Here's some example:
puts "Timeout of #{res.udp_timeout} seconds" # implicit to_s
#=> Timeout of 150 seconds
puts "You set a timeout of " + res.udp_timeout.pretty_to_s
#=> You set a timeout of 2 minutes and 30 seconds
If the timeout is zero, a string "not defined" will
be returned.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-udp_timeout-for-pr
# Commit to gitgit add lib/net/dns/resolver.rbgit commit -m "better docs for Net::DNS::Resolver#udp_timeout"
# 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-udp_timeout-for-pr
hub pull-request
# Celebrate!