Skip to content

Instantly share code, notes, and snippets.

@BanterBoy
Last active August 6, 2018 12:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BanterBoy/42f00e7e1a370e91b19bc6468500c2e3 to your computer and use it in GitHub Desktop.
Save BanterBoy/42f00e7e1a370e91b19bc6468500c2e3 to your computer and use it in GitHub Desktop.
Resolve PTR for an array of IP's
$IPs = New-Object System.Collections.ArrayList
$IPs.AddRange(
(
"64.4.250.33",
"64.4.250.32",
"23.43.65.124",
"23.195.132.187",
"52.23.120.130",
"52.20.68.174",
"52.1.33.228",
"34.199.7.143",
"52.87.71.97",
"34.192.92.107",
"212.48.90.69",
"52.55.151.194",
"34.202.89.57"
)
)
foreach($IP in $IPs) {
Resolve-DnsName -Name $IP -Type PTR
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment