Created
September 10, 2013 00:46
-
-
Save hrbrmstr/6503558 to your computer and use it in GitHub Desktop.
Given a list of IP addresses, perform a reverse lookup and return the original IP address and the resolved FQDN (if any)
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
# "dig" needs to be on your system and in the execution path for this to work | |
resolved = sapply(ip.list, function(x) system(sprintf("dig -x %s +short",x), intern=TRUE)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment