From 907f40923dbac797d6d1a0503695d9ee7e00f5b1 Mon Sep 17 00:00:00 2001 From: Sebastian Ziebell Date: Thu, 1 Feb 2024 16:24:39 +0100 Subject: [PATCH] Prepare containers to work on OSX * copy config files into unbound container * install vim & tshark in all containers --- docker/client.Dockerfile | 2 +- docker/files/etc/unbound/root.hints | 2 ++ docker/files/etc/unbound/unbound.conf | 9 +++++++++ docker/nsd.Dockerfile | 2 +- docker/unbound.Dockerfile | 5 ++++- 5 files changed, 17 insertions(+), 3 deletions(-) create mode 100644 docker/files/etc/unbound/root.hints create mode 100644 docker/files/etc/unbound/unbound.conf diff --git a/docker/client.Dockerfile b/docker/client.Dockerfile index be9c228a..e05b7249 100644 --- a/docker/client.Dockerfile +++ b/docker/client.Dockerfile @@ -1,4 +1,4 @@ FROM ubuntu:22.04 RUN apt-get update && \ - apt-get install -y dnsutils iputils-ping tshark \ No newline at end of file + apt-get install -y dnsutils iputils-ping tshark vim \ No newline at end of file diff --git a/docker/files/etc/unbound/root.hints b/docker/files/etc/unbound/root.hints new file mode 100644 index 00000000..5516fe71 --- /dev/null +++ b/docker/files/etc/unbound/root.hints @@ -0,0 +1,2 @@ +. 3600000 NS primary.root-server.com. +primary.root-server.com. 3600000 A 172.17.0.2 diff --git a/docker/files/etc/unbound/unbound.conf b/docker/files/etc/unbound/unbound.conf new file mode 100644 index 00000000..ad446203 --- /dev/null +++ b/docker/files/etc/unbound/unbound.conf @@ -0,0 +1,9 @@ +server: + verbosity: 4 + use-syslog: no + interface: 0.0.0.0 + access-control: 172.17.0.0/16 allow + root-hints: /etc/unbound/root.hints + +remote-control: + control-enable: no diff --git a/docker/nsd.Dockerfile b/docker/nsd.Dockerfile index 216b0a2b..d9441e5a 100644 --- a/docker/nsd.Dockerfile +++ b/docker/nsd.Dockerfile @@ -1,4 +1,4 @@ FROM ubuntu:22.04 RUN apt-get update && \ - apt-get install -y nsd iputils-ping \ No newline at end of file + apt-get install -y nsd iputils-ping tshark vim \ No newline at end of file diff --git a/docker/unbound.Dockerfile b/docker/unbound.Dockerfile index e0473477..78c14dcb 100644 --- a/docker/unbound.Dockerfile +++ b/docker/unbound.Dockerfile @@ -1,4 +1,7 @@ FROM ubuntu:22.04 RUN apt-get update && \ - apt-get install -y unbound iputils \ No newline at end of file + apt-get install -y unbound iputils-ping tshark vim + +COPY ./files/etc/unbound/unbound.conf /etc/unbound/unbound.conf +COPY ./files/etc/unbound/root.hints /etc/unbound/root.hints