FAQ Database Discussion Community

Powershell NSlookup on DC's Forward and Reverse

$topDC1="" $topDC2="" $topDC3="" $topDC4="" $DomainName="office.adroot.company.net" TRY{ $hostname = [System.Net.DNS]::GetHostByName($topDC1).HostName.toupper() $ipaddress = [System.Net.Dns]::GetHostAddresses($DomainName) | select IPAddressToString -ExpandProperty IPAddressToString # I want the below to loop foreach ip in the object, ns it against all 4 topDC's, then output each result :( $NS1 = nslookup $ipaddress[0] $topDC1 Write-host $NS1 } Catch{ write-host...

Nslookup or dig in Google App Script

Is there any way to run an nslookup / dig in Google App Script? I m looking to get the results of this command in a Google Spreadsheet. Thanks...