-
-
Save bnagy/7087a64cc2ad2321a627 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'resolv' | |
fail "No input file!" unless File.file? ARGV[0] | |
File.open( ARGV[0] ).each {|domain| | |
File.open( "#{ARGV[0]}.ip", 'w') {|outfile| | |
outfile.puts Resolv.getaddress( domain.chomp ) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment