Skip to content

Instantly share code, notes, and snippets.

@csereno
Created October 5, 2018 19:23
Show Gist options
  • Save csereno/f327648be975c9d2099d02928ab191c3 to your computer and use it in GitHub Desktop.
Save csereno/f327648be975c9d2099d02928ab191c3 to your computer and use it in GitHub Desktop.
nslookup that strips out the server and address returning just the answer
@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