測試一個域名DNS查詢時間的shell腳本

 

 

腳本內容:bash

#!/bin/bash #目標域名 site=${site:-www.ptesting.com} for((i=1;i<=10000;i++)) do     #COUNTER='expr $COUNTER+1'     delay=`curl -o /root/yffan/test/curl.txt  -s -w %{time_namelookup} $site`     echo $delay done
相關文章
相關標籤/搜索