mirror of
https://github.com/cunnie/sslip.io.git
synced 2025-10-25 08:31:02 +08:00
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.
```
BOSH Release
This is a BOSH Release of the Golang-based custom sslip.io DNS server. It's not meant to be used by anyone other than myself.
In the BOSH manifest, use this in the releases: section:
- name: sslip.io
sha1: 3a59e21554da481463f292e2f11becf94e4a51aa
url: https://github.com/cunnie/sslip.io/releases/download/1.1.2/sslip.io-release-1.1.2.tgz
version: 1.1.2
And, in the instance_groups: section:
jobs:
- name: sslip.io-dns-server
release: sslip.io
Here's a sample BOSH manifest.
After deploying, test the server. Let's assume the deployed VM's IP is 10.0.250.23:
dig +short 127.0.0.1.sslip.io @10.0.250.23
127.0.0.1