测试一个域名DNS查询时间的shell脚本

 

 

脚本内容:

#!/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
posted @ 2016-12-13 15:37  开山怪  阅读(714)  评论(0编辑  收藏  举报