metasploit-framework

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

Ruby

Metasploit Framework

Net::DNS::Question.parse

Return a new Net::DNS::Question object created by
parsing binary data, such as an answer from the
nameserver.

  question = Net::DNS::Question.parse(data)
  puts "Queried for #{question.qName} type #{question.qType.to_s}"
    #=> Queried for example.com type A

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/net/dns/question.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Net--DNS--Question-parse-for-pr


# Commit to git

git add lib/net/dns/question.rbgit commit -m "better docs for Net::DNS::Question.parse"


# 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--Question-parse-for-pr

hub pull-request


# Celebrate!