Merge pull request #1 from japaric/expand-example-setup
Expand test setup to run on OSX as well
This commit is contained in:
commit
ecc73a5255
22
README.md
22
README.md
@ -84,6 +84,24 @@ remote-control:
|
|||||||
- `/etc/unbound/root.hints`. NOTE IP address of docker container
|
- `/etc/unbound/root.hints`. NOTE IP address of docker container
|
||||||
|
|
||||||
``` text
|
``` text
|
||||||
. 3600000 NS MY.ROOT-SERVERS.NET.
|
. 3600000 NS primary.root-server.com.
|
||||||
MY.ROOT-SERVERS.NET. 3600000 A 172.17.0.2
|
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
4
docker/client.Dockerfile
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
|
RUN apt-get update && \
|
||||||
|
apt-get install -y dnsutils iputils-ping tshark
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y nsd
|
apt-get install -y nsd iputils-ping
|
@ -1,4 +1,4 @@
|
|||||||
FROM ubuntu:22.04
|
FROM ubuntu:22.04
|
||||||
|
|
||||||
RUN apt-get update && \
|
RUN apt-get update && \
|
||||||
apt-get install -y unbound
|
apt-get install -y unbound iputils
|
Loading…
Reference in New Issue
Block a user