如何批量Ping域名以便别域名是否有效 由于公司有100个多域名,有域名列表,但是不知道这些域名是否有效,所以交给我们进行测试
方法其实很简单,只需要将域名输入地址栏就可判断域名的有效性.
但实际上这种方式非常的繁琐,突然发现可以使用ping的方式进行有效性的判断:
下面是操作方式:

第一种方式:手动单独进行ping域名的方式: 
ping 域名

第二种 批量ping 域名
=>新建一个记事本.txt文件,如: 123.txt 
=>打开.txt文件,输入 
如下: 
ping 域名 >>123.txt 
ping 域名 >>123.txt 
ping 域名 >>123.txt 
ping 域名>>123.txt 
ping 域名>>123.txt 
=>保存文件,如: 123.txt 
=>将后缀名.txt改成.bat,如: 123.bat 
=>打开.bat文件,如: 123.bat 
=>系统将自动批量ping出你想要的IP或域名资料并自动生成一个.txt文件,如: 上面的123.txt 
=>打开123.txt,里面就有你所要的IP或域名资料 

注:如果上面的 >> 改成 > 单个的话,那系统将自动覆盖该生成文件 
如下: 
ping 123.321.123.321 >123.txt 
ping 200.200.200.200 >123.txt 
那么ping 123.321.123.321 >123.txt所自动生成123.txt的资料将被ping 200.200.200.200 >123.txt覆盖,最后123.txt里面将只有ping 200.200.200.200 的资料而 
ping 123.321.123.321 的资料因为已被ping ping.200.200.200.200的资料覆盖而丢失!切记


结果分析:
Pinging mio.com [10.88.0.202] with 32 bytes of data:
Reply from 10.88.0.202: bytes=32 time=188ms TTL=121

Reply from 10.88.0.202: bytes=32 time=125ms TTL=121

Reply from 10.88.0.202: bytes=32 time=135ms TTL=121

Reply from 10.88.0.202: bytes=32 time=199ms TTL=121

Ping statistics for 10.88.0.202:
    Packets: Sent = 4, Received = 4, Lost = 0 (0% loss),
Approximate round trip times in milli-seconds:
    Minimum = 125ms, Maximum = 199ms, Average = 161ms


这个表示域名有效.

Pinging [203.66.161.178] with 32 bytes of data:
Request timed out.
Request timed out.
Request timed out.
Request timed out.
Ping statistics for 203.66.161.178:
Packets: Sent = 4, Received = 0, Lost = 4 (100% loss),

Pinging [203.66.162.56] with 32 bytes of data:
Reply from 203.66.162.248: Destination host unreachable.
Reply from 203.66.162.248: Destination host unreachable.
Reply from 203.66.162.248: Destination host unreachable.
Reply from 203.66.162.248: Destination host unreachable.

Ping request could not find host . Please check the name and try again.

这些都表示域名无效.