#!/bin/bash
echo "curl --retry 10 --retry-delay 60 --retry-max-time 60 https://raw.hellogithub.com/hosts # -o github_hosts"curl --retry 10 --retry-delay 60 --retry-max-time 60 https://raw.hellogithub.com/hosts | while read LINE do # 去掉無關行if [[ $LINE == *"#"* ]]thenecho "注釋行,跳過"else# 截取DNS中主機名及對應的ip ip=`echo $LINE | awk '{print $1}'`dnshost=`echo $LINE | awk '{print $2}'`delaytime=`curl -o $dnshost -s -w %{time_namelookup} $dnshost`if [[ $delaytime < 0.3 ]]then echo "$dnshost github.com # delaytime=$delaytime"else echo "#$dnshost github.com # delaytime=$delaytime" fifidone
版权声明:本站所有资料均为网友推荐收集整理而来,仅供学习和研究交流使用。
工作时间:8:00-18:00
客服电话
电子邮件
admin@qq.com
扫码二维码
获取最新动态