Skip to content

Instantly share code, notes, and snippets.

@samm-git
Last active May 30, 2017 20:56
Show Gist options
  • Save samm-git/1ff9d5017afd5ec00004d8de90700781 to your computer and use it in GitHub Desktop.
Save samm-git/1ff9d5017afd5ec00004d8de90700781 to your computer and use it in GitHub Desktop.
bash-3.2$ python resolve-name.py -v --country=UA --requested=1000 yandex.ru
{'definitions': [{'protocol': 'UDP', 'description': 'DNS resolution of yandex.ru from UA', 'af': 4, 'query_argument': 'yandex.ru', 'query_type': 'A', 'query_class': 'IN', 'set_rd_bit': True, 'type': 'dns', 'use_probe_resolver': True}], 'is_oneoff': True, 'probes': [{'requested': 1000, 'type': 'country', 'value': 'UA', 'tags': {'include': ['system-resolves-a-correctly', 'system-resolves-aaaa-correctly']}}]}
Measurement #8779190 for yandex.ru/A uses 169 probes
Warning: reply at probe 10070 has no answers: may be the server returned a delegation?
Warning: reply at probe 13443 has no answers: may be the server returned a delegation?
Warning: reply at probe 2091 has no answers: may be the server returned a delegation?
Warning: reply at probe 2204 has no answers: may be the server returned a delegation?
Warning, probe 4594 never got reply from any resolver
[] : 4 occurrences
[195.138.80.101] : 2 occurrences
[ERROR: SERVFAIL] : 1 occurrences
[109.86.231.2] : 2 occurrences
[TIMEOUT(S)] : 1 occurrences
[194.50.85.44] : 4 occurrences
[52.59.21.134] : 43 occurrences
[194.44.10.46] : 1 occurrences
[95.69.254.9] : 1 occurrences
[195.78.38.1] : 2 occurrences
[213.180.193.56] : 1 occurrences
[195.62.14.11] : 1 occurrences
[185.168.223.254] : 1 occurrences
[46.164.130.238] : 1 occurrences
[193.41.60.24] : 3 occurrences
[5.255.255.77 5.255.255.88 77.88.55.77 77.88.55.88] : 96 occurrences
[0.0.0.0] : 1 occurrences
[127.0.0.1] : 2 occurrences
Test #8779190 done at 2017-05-30T20:17:17Z
bash-3.2$ python resolve-name.py -v --country=UA --requested=1000 --nameserver=8.8.8.8 yandex.ru
{'definitions': [{'protocol': 'UDP', 'description': 'DNS resolution of yandex.ru from UA via nameserver 8.8.8.8', 'af': 4, 'query_argument': 'yandex.ru', 'query_type': 'A', 'query_class': 'IN', 'target': '8.8.8.8', 'set_rd_bit': True, 'type': 'dns', 'use_probe_resolver': False}], 'is_oneoff': True, 'probes': [{'requested': 1000, 'type': 'country', 'value': 'UA'}]}
Measurement #8779200 for yandex.ru/A uses 202 probes
Warning, probe 28927 never got reply from any resolver
Nameserver 8.8.8.8
[NETWORK PROBLEM WITH RESOLVER] : 2 occurrences
[5.255.255.77 5.255.255.88 77.88.55.77 77.88.55.88] : 196 occurrences
[194.50.85.176] : 1 occurrences
[TIMEOUT(S)] : 1 occurrences
[TIMEOUT] : 1 occurrences
Test #8779200 done at 2017-05-30T20:49:53Z
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment