ooni-probe-cli/internal/cmd
Simone Basso 080abf90d9
feat(dnsovergetaddrinfo): collect the CNAME (#876)
* feat(dnsovergetaddrinfo): collect the CNAME

This diff modifies how dnsovergetaddrinfo.go works such that the
returned DNSResponse includes the CNAME.

Closes https://github.com/ooni/probe/issues/2226.

While there, recognize that we can remove getaddrinfoLookupHost and
always call getaddrinfoLookupANY everywhere. (This simplification is
why we did https://github.com/ooni/probe-cli/pull/874.)

* fix: extra debugging because of failing CI

Everything is OK locally (on macOS). However, maybe things are a bit
different on GNU/Linux perhaps?

Here's the error:

```
--- FAIL: TestPass (0.11s)
    resolver_test.go:113: unexpected rcode
FAIL
coverage: 95.7% of statements
FAIL	github.com/ooni/probe-cli/v3/internal/cmd/jafar/resolver	0.242s
```

I'm a bit confused because jafar's resolver is _unrelated_. But actually this
error never occurred again after a committed the debugging diff.
2022-08-23 13:53:08 +02:00
..
apitool cleanup: mark more integration tests as !short mode (#755) 2022-05-24 21:01:15 +02:00
e2epostprocess cleanup(all): stop using deprecated ioutil functions (#381) 2021-06-15 14:01:45 +02:00
getresources refactor: redesign how we import assets (#260) 2021-04-01 16:57:31 +02:00
jafar feat(dnsovergetaddrinfo): collect the CNAME (#876) 2022-08-23 13:53:08 +02:00
miniooni fix(registry): ensure we can run telegram and webconnectivity (#862) 2022-08-17 12:17:52 +02:00
oohelper refactor(netxlite): expose useful HTTPTransport/DNSTransport factories (#813) 2022-06-09 00:30:18 +02:00
oohelperd refactor(oohelperd): improve tests implementation (#835) 2022-07-05 20:25:18 +02:00
oonireport cleanup: mark more integration tests as !short mode (#755) 2022-05-24 21:01:15 +02:00
printversion fix: ensure we bind oohelperd with the repo's version number (#558) 2021-10-22 17:21:38 +02:00
README.md doc: ensure all top dirs have an explanatory README (#214) 2021-02-03 16:54:00 +01:00

Directory github.com/ooni/probe-cli/internal/cmd

This directory contains the source code for the CLI tools we build but we don't want to expose to the outside world. That is, you can only build these tools if you have cloned this repo.