Bulk DNS query test

If you ever run into periodic DNS look-up or connectivity problems this script may come into use. When pairing this with www.wireshark.org you can help troubleshoot periodic packet-loss issues.

@ECHO off
mode con:cols=110 lines=40
COLOR A
del ns_log.txt
cls
echo.
echo.
echo -----------------------------------------------------
echo starting lookup loop
echo -----------------------------------------------------
for /L %%X in (1,1,100) do (
nslookup %%X-DNS-test.mycompany.org 8.8.8.8
		
if "google"==^%%i (echo Fail on ^%%X) else (echo ok on ^%%X)
)
echo -----------------------------------------------------
echo lookup look finished
echo -----------------------------------------------------
echo.
echo.
echo >NUL 2>&1 

Leave a comment

Your email address will not be published. Required fields are marked *