Merge pull request #1 from japaric/expand-example-setup

Expand test setup to run on OSX as well
This commit is contained in:
Jorge Aparicio 2024-02-01 15:36:38 +01:00 committed by GitHub
commit ecc73a5255
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 26 additions and 4 deletions

View File

@ -84,6 +84,24 @@ remote-control:
- `/etc/unbound/root.hints`. NOTE IP address of docker container
``` text
. 3600000 NS MY.ROOT-SERVERS.NET.
MY.ROOT-SERVERS.NET. 3600000 A 172.17.0.2
. 3600000 NS primary.root-server.com.
primary.root-server.com. 3600000 A 172.17.0.2
```
#### `client`
Container is `docker/client.Dockerfile`, build with: `docker build -t dnssec-tests-client -f docker/client.Dockerfile docker`, with `tshark`.
Run the client container with extra capabilities
```shell
docker run --rm -it --cap-add=NET_RAW --cap-add=NET_ADMIN dnssec-tests-client /bin/bash
```
Then run `tshark` inside the container:
```shell
tshark -f 'host 172.17.0.3' -O dns
```
to filter DNS messages for host `172.17.0.3` (`unbound`).

4
docker/client.Dockerfile Normal file
View File

@ -0,0 +1,4 @@
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y dnsutils iputils-ping tshark

View File

@ -1,4 +1,4 @@
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y nsd
apt-get install -y nsd iputils-ping

View File

@ -1,4 +1,4 @@
FROM ubuntu:22.04
RUN apt-get update && \
apt-get install -y unbound
apt-get install -y unbound iputils