I am using the following to obtain a list of hostnames from an IP list:
$hostNames = @() ForEach ($ip in $IPs) { $hostName = [System.Net.Dns]::GetHostByAd