metasploit-framework

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

Ruby

Metasploit Framework

Net::DNS::RR::A#address=

Assign to the RR::A object a new IPv4 address, which can be in the
form of a string or an IPAddr object

  a.address = "192.168.0.1"
  a.address = IPAddr.new("10.0.0.1")

Source | Google | Stack overflow

Edit

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

cd metasploit-framework

open lib/net/dns/rr/a.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Net--DNS--RR--A-address--for-pr


# Commit to git

git add lib/net/dns/rr/a.rbgit commit -m "better docs for Net::DNS::RR::A#address="


# 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--RR--A-address--for-pr

hub pull-request


# Celebrate!