🐞 dig: "any" type query works on macOS & Linux

The behavior of `dig` version **9.11.25-RedHat-9.11.25-2.fc32** differs
from macOS's `dig` version **9.10.6**. In other words, this test passes
on my mac but not until now on (Linux-based) CI.

I also took the opportunity to refactor our `dig` arguments to conform with
the suggested usage:

> Usage:  dig [@global-server] [domain] [q-type] [q-class] {q-opt}

fixes <https://ci.nono.io/teams/main/pipelines/sslip.io/jobs/unit/builds/145>:
```
  Expected
      <int>: 9
  to match exit code:
      <int>: 0
```

Note that for the `any` test I had to append an additional `+notcp`
argument to avoid an attempted TCP connection. I suspect a bug in `dig`:
```
dig any sslip.io @localhost
;; Connection to 127.0.0.1#53(127.0.0.1) for sslip.io failed: connection refused.
```
This commit is contained in:
Brian Cunnie
2021-01-19 06:05:17 -08:00
parent b534bcd0cb
commit 1b6d72cf49
2 changed files with 22 additions and 24 deletions

View File

@@ -60,7 +60,6 @@ docker run --rm -it \
--issue \
--staging \
--debug \
-d $FQDN \
-d *.$FQDN \
--dns dns_acmedns
```
@@ -96,8 +95,6 @@ docker run --rm -it \
--issue \
--staging \
--debug \
-d $FQDN \
-d *.$FQDN \
--dns dns_acmedns
```