Slow Test
Powershell
$DNSES = "x.x.x.x", "8.8.8.8", "4.2.2.2"
foreach ($ip in $DNSES) {
ping -n 1 $ip | Select-String "TTL="
}
Batch
@echo off
set DNSES="x.x.x.x 8.8.8.8 4.2.2.2"
for %%i in (%DNSES%) do (
ping -n 1 %%i | find "TTL="
)
Bash
DNSES="x.x.x.x 8.8.8.8 4.2.2.2"; for ip in $DNSES; do ping -c 1 $ip| grep from; done