References:
- https://geekeefy.wordpress.com/2015/10/24/powershell-resolve-dns-hostname-to-ip-and-reverse-using-a-single-function/
- https://gist.github.com/PrateekKumarSingh/586f2d3d43f7e8cb07ce
Usage:
Resolve-Host (gc .\ips.txt) | ft -auto
Resolve-Host (gc .\ips.txt) | Export-Csv -NoTypeInformation -Path ips-hostnames.csv