-
-
Save RIKIKU/accff83da81f6916d98d4bd1d2792c8b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$servers = "8.8.8.8", "8.8.4.4" | |
foreach($server in $servers) | |
{ | |
@" | |
? | |
google.com {0} | |
"@ -f $server | out-file "C:\Users\kyles\Desktop\in.txt" -Encoding utf8 -Force | |
Start-Process nslookup -RedirectStandardInput "$env:USERPROFILE\Desktop\in.txt" -RedirectStandardOutput "$env:USERPROFILE\Desktop\out$server.txt" -Wait | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment