You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**What**
- Add a `dig` function that can be used to verify DNS resultion inside a
cluster. The function is implemented as a small bash script that
invokes `dig` and then returns the result as JSON or text, depending
on an ENV configuration. This function can also be used to demonstrate
how to lightly wrap the CLI tool and provide some logging to stderr
To test
```sh
$ faas-cli build --filter dig
$ docker run --name digtest --rm -p 8080:8080
ghcr.io/openfaas/dig:latest
$ curl localhost:8080 -d "google.com"
{"ip_address": "172.217.23.110"}
$ docker kill digtest
```
Signed-off-by: Lucas Roesler <[email protected]>
0 commit comments