@@ -8,31 +8,58 @@ use std::f64;
88
99const TIMEOUT : Duration = Duration :: from_secs ( 5 ) ;
1010const MAX_RESPONSE_SIZE : usize = 512 ;
11- const DEFAULT_DNS_SERVERS : [ & str ; 24 ] = [
12- "9.9.9.11:53" , // Quad9
13- "149.112.112.11:53" , // Quad9
14- "9.9.9.10:53" , // Quad9
15- "149.112.112.10:53" , // Quad9
16- "1.1.1.1:53" , // Cloudflare
17- "1.0.0.1:53" , // Cloudflare
18- "8.8.8.8:53" , // Google
19- "8.8.4.4:53" , // Google
20- "9.9.9.9:53" , // Quad9
21- "149.112.112.112:53" , // Quad9
22- "208.67.222.222:53" , // OpenDNS
23- "208.67.220.220:53" , // OpenDNS
24- "64.6.64.6:53" , // Verisign
25- "64.6.65.6:53" , // Verisign
26- "8.26.56.26:53" , // Comodo Secure DNS
27- "8.20.247.20:53" , // Comodo Secure DNS
28- "77.88.8.8:53" , // Yandex DNS
29- "77.88.8.1:53" , // Yandex DNS
30- "185.228.168.168:53" , // CleanBrowsing
31- "185.228.169.168:53" , // CleanBrowsing
32- "156.154.70.1:53" , // Neustar UltraDNS
33- "156.154.71.1:53" , // Neustar UltraDNS
34- "199.85.126.10:53" , // Norton ConnectSafe
35- "199.85.127.10:53" , // Norton ConnectSafe
11+ const DEFAULT_DNS_SERVERS : [ & str ; 42 ] = [
12+ // Alibaba
13+ "223.5.5.5:53" ,
14+ "223.6.6.6:53" ,
15+ // Cloudflare
16+ "1.1.1.1:53" ,
17+ "1.0.0.1:53" ,
18+ "1.1.1.2:53" ,
19+ "1.0.0.2:53" ,
20+ "1.1.1.3:53" ,
21+ "1.0.0.3:53" ,
22+ // Google
23+ "8.8.8.8:53" ,
24+ "8.8.4.4:53" ,
25+ // Gcore
26+ "95.85.95.85:53" ,
27+ "2.56.220.2:53" ,
28+ // Vercara
29+ "156.154.70.1:53" ,
30+ "156.154.71.1:53" ,
31+ "156.154.70.2:53" ,
32+ "156.154.71.2:53" ,
33+ "156.154.70.3:53" ,
34+ "156.154.71.3:53" ,
35+ "156.154.70.4:53" ,
36+ "156.154.71.4:53" ,
37+ "156.154.70.5:53" ,
38+ "156.154.71.5:53" ,
39+ // OpenDNS
40+ "208.67.222.222:53" ,
41+ "208.67.220.220:53" ,
42+ "208.67.222.123:53" ,
43+ "208.67.220.123:53" ,
44+ "208.67.222.2:53" ,
45+ "208.67.220.2:53" ,
46+ // Oracle
47+ "216.146.35.35:53" ,
48+ "216.146.36.36:53" ,
49+ // Quad9
50+ "9.9.9.9:53" ,
51+ "149.112.112.112:53" ,
52+ "9.9.9.11:53" ,
53+ "149.112.112.11:53" ,
54+ "9.9.9.10:53" ,
55+ "149.112.112.10:53" ,
56+ // Yandex
57+ "77.88.8.8:53" ,
58+ "77.88.8.1:53" ,
59+ "77.88.8.88:53" ,
60+ "77.88.8.2:53" ,
61+ "77.88.8.7:53" ,
62+ "77.88.8.3:53"
3663] ;
3764
3865fn main ( ) -> io:: Result < ( ) > {
@@ -92,7 +119,7 @@ fn print_usage_and_exit() {
92119 | |_| | | | \__ \ | || | | (_| | (_| __/ |
93120 |____/|_| |_|___/ |_||_| \__,_|\___\___|_|
94121
95- DNS Tracer Tool v0.1
122+ DNS Tracer Tool v0.2
96123 A tool to measure and analyze DNS query response times for network performance and latency.
97124
98125 Developed by: @milad_bahari
0 commit comments