Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @echo off
- set "domain=mydomain.TLD"
- set "dns_host=dnshost.TLD"
- set "NS1=ns1.dnshost.TLD"
- set "NS2=ns1.dnshost.TLD"
- set "neutralDNS=8.8.8.8"
- set "timeout=60"
- set "outputfile=myfile.txt"
- FOR /L %%A IN (1,1,200) DO (
- ECHO ************************************************
- ECHO ********* Checking %domain% On %NS1% // %NS2%
- ECHO ************* Loop Count :: %%A %Time%
- ipconfig /flushdns
- timeout %timeout%
- ping %domain%
- ping %dns_host%
- ping %NS1%
- ping %NS2%
- nslookup %domain% %neutralDNS%
- nslookup %dns_host% %NS1%
- nslookup ns1.%dns_host%
- REM ... Loop goes on here, commands are not really important
- REM host %dns_host%// we are not on *nix !
- REM dig %dns_host% @%neutralDNS% // we are not on *nix !
- )
- FOR /L %%A IN (1,1,200) DO (
- ECHO ************* Loop Count :: %%A %Time%
- ......
- ) >> %outputfile%
- FOR /L %%A IN (1,1,200) DO (
- ECHO ************* Loop Count :: %%A %Time%
- ......
- ) > %outputfile%
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement