FAQ Database Discussion Community


Powershell NSlookup on DC's Forward and Reverse

powershell,dns,nslookup
$topDC1="10.254.90.17" $topDC2="10.225.224.17" $topDC3="10.110.33.32" $topDC4="10.88.100.10" $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

google-apps-script,google-spreadsheet,nslookup,dig
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...