netselect-apt

 

netselect

tests on distant servers using either UDP traceroutes or ICMP queries.

HomePage: http://github.com/apenwarr/netselect


Installation

[方式1]

apt-get install netselect

[方式2]

apt install wget
wget http://ftp.us.debian.org/debian/pool/main/n/netselect/netselect_0.3.ds1-...
dpkg -i netselect_0.3.ds1-29_amd64.deb

 


Usage

 

Opts

-vv     Verbose mode.
-D      當有 DNS Name 指向多個 IP 時, 最終結果都用 domain name 表示

Usage

[1]

netselect -s 20 -t 40 $(wget -qO - mirrors.ubuntu.com/mirrors.txt)

[2]

netselect -D  ftp.us.debian.org  ftp.jp.debian.org  ftp.hk.debian.org  cdn.debian.net

Running netselect to choose 1 out of 8 addresses.
..............................................................
128.30.2.36                           9999 ms  30 hops    0% ok
149.20.20.135                          163 ms  13 hops  100% ok (10/10) [  374]
ftp.hk.debian.org                        7 ms   8 hops   70% ok ( 7/10) [   18]
128.61.240.89                          238 ms  17 hops  100% ok (10/10) [  642]
64.50.236.52                           229 ms  15 hops  100% ok (10/10) [  572]
64.50.233.100                          252 ms  16 hops  100% ok (10/10) [  655]
150.65.7.130                            74 ms  15 hops   25% ok ( 1/ 4) [  740]
133.242.8.20                            78 ms  15 hops   25% ok ( 1/ 4) [  780]
   18 ftp.hk.debian.org
   
   
              

 

Creative Commons license icon Creative Commons license icon