Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(dnsping): make output more actionable (#1444)
## Checklist - [x] I have read the [contribution guidelines](https://github.com/ooni/probe-cli/blob/master/CONTRIBUTING.md) - [x] reference issue for this pull request: ooni/probe#2650 - [x] if you changed anything related to how experiments work and you need to reflect these changes in the ooni/spec repository, please link to the related ooni/spec pull request: N/A - [x] if you changed code inside an experiment, make sure you bump its version number ## Description Closes ooni/probe#2650 Here's an example of the output now: ``` % ./miniooni dnsping -i udp://8.8.8.8:53/ -O Domains='www.example.com thepiratebay.net' [ 0.000028] <info> Current time: 2024-01-12 14:48:25 UTC [ 0.000125] <info> miniooni home directory: $HOME/.miniooni [ 0.000319] <info> ooniprobe-engine/v3.21.0-alpha 9b035a4 dirty=false go1.20.12 [ 0.001050] <info> Looking up OONI backends; please be patient... [ 0.001640] <info> httpsDialer: [#1] TCPConnect 162.55.247.208:443... started [ 0.047764] <info> httpsDialer: [#1] TCPConnect 162.55.247.208:443... ok [ 0.047788] <info> httpsDialer: [#1] TLSHandshake with 162.55.247.208:443 SNI=interactive.guim.co.uk ALPN=[h2 http/1.1]... started [ 0.100400] <info> httpsDialer: [#1] TLSHandshake with 162.55.247.208:443 SNI=interactive.guim.co.uk ALPN=[h2 http/1.1]... ok [ 0.100417] <info> httpsDialer: [#1] TLSVerifyCertificateChain api.ooni.io... started [ 0.102877] <info> httpsDialer: [#1] TLSVerifyCertificateChain api.ooni.io... ok [ 0.169226] <info> session: using probe services: {Address:https://api.ooni.io Type:https Front:} [ 0.169246] <info> Looking up your location; please be patient... [ 0.169272] <info> iplookup: using stun_google [ 0.170163] <info> sessionresolver: lookup stun.l.google.com using system:///... started [ 0.172175] <info> sessionresolver: lookup stun.l.google.com using system:///... ok [ 0.190530] <info> - country: IT [ 0.190545] <info> - network: Vodafone Italia S.p.A. (AS30722) [ 0.190549] <info> - resolver's IP: 91.80.36.88 [ 0.190552] <info> - resolver's network: Vodafone Italia S.p.A. (AS30722) [ 0.190587] <info> [1/1] running with input: udp://8.8.8.8:53/ [ 0.190728] <info> DNSPing #0 8.8.8.8:53 thepiratebay.net... started [ 0.190729] <info> DNSPing #0 8.8.8.8:53 www.example.com... started [ 0.201393] <info> DNSPing #0 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 0.212578] <info> DNSPing #0 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 1.191531] <info> DNSPing #1 8.8.8.8:53 thepiratebay.net... started [ 1.191527] <info> DNSPing #1 8.8.8.8:53 www.example.com... started [ 1.199034] <info> DNSPing #1 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 1.208817] <info> DNSPing #1 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 2.191812] <info> DNSPing #2 8.8.8.8:53 thepiratebay.net... started [ 2.191815] <info> DNSPing #2 8.8.8.8:53 www.example.com... started [ 2.228774] <info> DNSPing #2 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 2.228793] <info> DNSPing #2 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 3.191340] <info> DNSPing #3 8.8.8.8:53 thepiratebay.net... started [ 3.191370] <info> DNSPing #3 8.8.8.8:53 www.example.com... started [ 3.197974] <info> DNSPing #3 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 3.211675] <info> DNSPing #3 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 4.191878] <info> DNSPing #4 8.8.8.8:53 www.example.com... started [ 4.191889] <info> DNSPing #4 8.8.8.8:53 thepiratebay.net... started [ 4.203056] <info> DNSPing #4 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 4.211179] <info> DNSPing #4 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 5.191830] <info> DNSPing #5 8.8.8.8:53 www.example.com... started [ 5.191830] <info> DNSPing #5 8.8.8.8:53 thepiratebay.net... started [ 5.233596] <info> DNSPing #5 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 5.261641] <info> DNSPing #5 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 6.191596] <info> DNSPing #6 8.8.8.8:53 thepiratebay.net... started [ 6.191573] <info> DNSPing #6 8.8.8.8:53 www.example.com... started [ 6.200647] <info> DNSPing #6 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 6.208036] <info> DNSPing #6 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 7.191875] <info> DNSPing #7 8.8.8.8:53 thepiratebay.net... started [ 7.191879] <info> DNSPing #7 8.8.8.8:53 www.example.com... started [ 7.200336] <info> DNSPing #7 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 7.213787] <info> DNSPing #7 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 8.191866] <info> DNSPing #8 8.8.8.8:53 thepiratebay.net... started [ 8.191900] <info> DNSPing #8 8.8.8.8:53 www.example.com... started [ 8.204297] <info> DNSPing #8 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 8.214435] <info> DNSPing #8 8.8.8.8:53 thepiratebay.net... 83.224.65.41 [ 9.191857] <info> DNSPing #9 8.8.8.8:53 www.example.com... started [ 9.191863] <info> DNSPing #9 8.8.8.8:53 thepiratebay.net... started [ 9.200628] <info> DNSPing #9 8.8.8.8:53 www.example.com... 93.184.216.34 2606:2800:220:1:248:1893:25c8:1946 [ 9.216799] <info> DNSPing #9 8.8.8.8:53 thepiratebay.net... 83.224.65.41 Domain IPAddress ASN Org #Seen LateResponse -------------------------------------------------------------------------------------------------------------------------------------------------- www.example.com 2606:2800:220:1:248:1893:25c8:1946 15133 Edgecast Inc. 10 false www.example.com 93.184.216.34 15133 Edgecast Inc. 10 false thepiratebay.net 83.224.65.41 30722 Vodafone Italia S.p.A. 10 false [ 10.193633] <info> submitting measurement to OONI collector; please be patient... [ 10.262480] <info> New reportID: 20240112T144835Z_dnsping_IT_30722_n1_qbyxPwKoifjgp6AM [ 10.372279] <info> saving measurement to disk [ 10.373693] <info> experiment: recv 0.00 byte, sent 0.00 byte [ 10.375159] <info> whole session: recv 2.28 kbyte, sent 19.24 kbyte ```
- Loading branch information