commit 6fe4f753314f52c661d8dc7be8e71d4e52db5164 Author: yohan <783b8c87@scimetis.net> Date: Sat Sep 28 12:28:51 2024 +0200 first commit diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..ab09c6e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,8 @@ +FROM debian:stretch +MAINTAINER yohan <783b8c87@scimetis.net> +ENV DEBIAN_FRONTEND noninteractive +RUN apt-get update && apt-get -y install bind9 +ENV TZ=Europe/Paris +RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone +EXPOSE 53 +ENTRYPOINT ["/usr/sbin/named", "-u", "bind", "-g"] diff --git a/build b/build new file mode 100644 index 0000000..2bab833 --- /dev/null +++ b/build @@ -0,0 +1 @@ +docker build -t named . diff --git a/docker-compose.yml b/docker-compose.yml new file mode 100644 index 0000000..78f7008 --- /dev/null +++ b/docker-compose.yml @@ -0,0 +1,21 @@ +version: "2.1" + +services: + + named: + container_name: named + image: named + restart: unless-stopped + ports: + - "192.168.1.3:53:53/tcp" + - "127.0.0.1:53:53/tcp" + - "192.168.1.3:53:53/udp" + - "127.0.0.1:53:53/udp" + volumes: + - etc_bind:/etc/bind:z + - var_bind:/var/cache/bind:z + +volumes: + + etc_bind: + var_bind: