Olej писал(а):
Поехали...
Вот чисто Linux программа:
namebench - выбор оптимального DNS-сервера.
Скачать можно свободно здесь:
Open-source DNS Benchmark Utility - для любых OS. Скачиваем:
Код: Выделить всё
[olej@dell Загрузки]$ ls -l namebench-1.3.1-source.tgz
-rw-rw-r-- 1 olej olej 1118505 окт 20 01:26 namebench-1.3.1-source.tgz
После разархивирования (в любой каталог) запускаем ... Программа написана на Python и не требует никакой инсталляции:
Код: Выделить всё
[olej@dell namebench-1.3.1]$ ls -l
итого 244
-rw-r--r-- 1 olej olej 197383 июн 6 2010 ChangeLog.txt
drwxr-xr-x 1 olej olej 222 июн 6 2010 cocoa
drwxr-xr-x 1 olej olej 102 июн 6 2010 config
-rw-r--r-- 1 olej olej 11358 июн 6 2010 COPYING
drwxr-xr-x 1 olej olej 166 июн 6 2010 data
-rw-r--r-- 1 olej olej 8601 июн 6 2010 JSON.txt
drwxr-xr-x 1 olej olej 1186 окт 20 01:27 libnamebench
-rwxr-xr-x 1 olej olej 2477 июн 6 2010 namebench.py
drwxr-xr-x 1 olej olej 138 окт 20 01:27 nb_third_party
-rw-r--r-- 1 olej olej 12152 июн 6 2010 README.txt
-rw-r--r-- 1 olej olej 5268 июн 6 2010 setup.py
drwxr-xr-x 1 olej olej 88 июн 6 2010 templates
drwxr-xr-x 1 olej olej 378 июн 6 2010 tools
При
отсутствии установленных Tcl/Tk и Tkinter программа запускается в CLI режиме, текстовая консоль. При использовании
исходного списка сканирования (из 4515 серверов) анализ идёт весьма долго (несколько десятков минут - приготовьтесь
)
Код: Выделить всё
[olej@dell namebench-1.3.1]$ ./namebench.py
- The python-tk (tkinter) library is missing, using the command-line interface.
namebench 1.3.1 - best source (automatic) on 2016-10-20 01:27:48.145977
threads=40/2 queries=250 runs=1 timeout=3.5 health_timeout=3.75 servers=11
------------------------------------------------------------------------------
- Reading Top 2,000 Websites (Alexa): data/alexa-top-2000-domains.txt (0.7MB)
- Reading Cache Latency Test (100% hit): data/cache-hit.txt (0.1MB)
- Reading Cache Latency Test (100% miss): data/cache-miss.txt (0.1MB)
- Reading Cache Latency Test (50% hit, 50% miss): data/cache-mix.txt (0.1MB)
- Reading Google Chrome: /home/olej/.config/google-chrome/Default/History (0.3MB)
- Reading Chromium: /home/olej/.config/chromium/Default/History (8.0MB)
- Reading Mozilla Firefox: /home/olej/.mozilla/firefox/kauzykph.default/places.sqlite (20.0MB)
- Skipping /home/olej/.kde/share/apps/konqueror/konq_history (only 1691b)
- Generating tests from Mozilla Firefox (48442 records, selecting 250 automatic)
- Selecting 250 out of 15433 sanitized records (random mode).
- Checking query interception status...
- Checking connection quality: 1/3...3/3
- Congestion level is 1.34X (check duration: 53.53ms)
- Applied 1.34X timeout multiplier due to congestion: 0.7 ping, 5.0 health.
- Checking latest sanity reference
- Building initial DNS cache for 4515 nameservers (40 threads)
- Checking nameserver availability (40 threads): 0/4515...................................................................................
- How odd! Only 13.5 percent of name servers were pingable. Trying again with 6 threads (slow)
- Checking nameserver availability (6 threads): 0/4515....................................................................................
- 611 of 4515 servers are available (duration: 0:39:30.938713)
- Removing secondary nameservers slower than 154.62ms (max=400)
...
Идёт подробная диагностика...
В итоге:
Код: Выделить всё
...
Mean response (in milliseconds):
--------------------------------
Internal 10-1-1 ######################## 69.27
Google Public DN ########################## 76.39
OpenDNS ################################ 92.51
Google Public DN ################################# 95.81
DynGuide ################################## 99.45
ATMAN PL #################################### 105.38
UltraDNS ############################################# 130.31
bn.by-2 BY ############################################# 132.17
Atman/Idea PL ################################################ 138.50
Sloboda UA ################################################### 147.79
BN BY ##################################################### 155.85
...
Recommended configuration (fastest + nearest):
----------------------------------------------
nameserver 10.0.1.1 # Internal 10-1-1
nameserver 80.73.1.1 # Sloboda UA
nameserver 217.17.34.10 # Atman/Idea PL
Что такое 10.0.1.1 - для меня
загадка (локальный адрес). Предполагаю, что это, каким-то образом, IP DNS провайдера
за моим роутером 192.168.1.3. Оставим эту загадку на потом.
Код: Выделить всё
[olej@dell ~]$ traceroute 10.0.1.1
traceroute to 10.0.1.1 (10.0.1.1), 30 hops max, 60 byte packets
1 gateway (192.168.1.3) 6.021 ms 6.013 ms 6.008 ms
2 * * *
3 * * *
4 * * *
5 * * *
6 * * *
7 * * *
8 * * *
9 * * *
10 * * *
11 * * *
12 * * *
13 * * *
14 * * *
15 * * *
16 * * *
17 * * *
18 * * *
19 * * *
20 * * *
21 * * *
22 * * *
23 * * *
24 * * *
25 * * *
26 * * *
27 * * *
28 * * *
29 * * *
30 * * *