Created
October 5, 2018 19:23
-
-
Save csereno/f327648be975c9d2099d02928ab191c3 to your computer and use it in GitHub Desktop.
nslookup that strips out the server and address returning just the answer
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
@echo off | |
:loop | |
if "%~1" NEQ "" ( | |
NSLOOKUP %~1 | findstr /V "Server: 8.8.8.8" | |
SHIFT | |
goto :loop | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment