Skip to content

Instantly share code, notes, and snippets.

@puttyq
Created January 24, 2020 15:26
Show Gist options
  • Save puttyq/96833c2a241ef193fd55a956be77ea41 to your computer and use it in GitHub Desktop.
Save puttyq/96833c2a241ef193fd55a956be77ea41 to your computer and use it in GitHub Desktop.
PowerShell - Quick Domain Resolution (Resolve-DNSName)
$getdns = Get-Content .\dns.txt
$getdns | foreach {Resolve-DnsName -Type NS $_ | Where-Object -Property Type -EQ "NS" | Select Name, NameHost}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment