Project Insomnia is many things, but in this context it is simply a "braindump" of whatever I happen to be thinking/reading/watching/doing at the moment. Parental guidance suggested.
ipconfig /all, look for the DNS Servers line and type it after ping -t. Sure, if you're a loser! You might as well just wait on your ISP's level-1 tech support line for two or three hours, just to find out that your DSL is down either at the DSLAM or the POP.for /F "tokens=2 delims=:" %a in ('ipconfig /all ^| find /i "DNS Servers"') do ping -t %aipconfig /all prints the current TCP/IP configuration.^| pipes the output of the previous command to the next command. See the linked article for why the caret is required before the pipe.find /i searches the following quoted text, case-insensitive."DNS Servers" is from the output of ipconfig /all.for /F "tokens=2 delims=:" %a in takes the output from the previous elements (typically something like DNS Servers . . . . . . . . . . . : 64.81.79.2), parses it into tokens delimited by a colon, selects the second token and places the result into the named variable %a.do is the "execute" part of for; whatever command follows is run with the parsed parameters.ping -t sends ICMP ECHO requests to the target IP address; the -t parameter causes the pings to continue until interrupted with Ctrl-C.for /F "tokens=2 delims=:" %%a in ('ipconfig /all ^| find /i "DNS Servers"') do ping -t %%a
"Project Insomnia" and "project-insomnia.com" ™ & SM; site contents © Andrew Rich except where noted.