$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