Hi all
i wrote a script to do nslookup for a list of web sites here is the code i wrote
$servers = get-content "C:\NSLOOKUP.txt"
foreach ($server in $servers) {
$addresses = [System.Net.Dns]::GetHostAddresses($server)
foreach($a in $addresses) {"{0},{1}" -f $server, $a.IPAddressToString
}
} | Export-Csv 'C:\scripts\output.csv' -NoTypebut it didn't export shall you support me on this