Docker container for DNS server bind9.

This commit is contained in:
Stephane Gourichon
2024-03-23 13:12:55 +01:00
parent 78ef2edb5b
commit b2edd16308
2 changed files with 18 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
FROM debian:stable-slim
MAINTAINER Stéphane Gourichon <stephane_sysadmin@gourichon.org>
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get update && apt-get upgrade
RUN export DEBIAN_FRONTEND=noninteractive ; apt-get install --no-install-recommends -y bind9
COPY named.conf.local /etc/bind/
COPY sites /etc/bind/sites
RUN chown bind:bind -Rc /etc/bind/named.conf.local /etc/bind/sites && chmod =0,u=rX -Rc /etc/bind/named.conf.local /etc/bind/sites
EXPOSE 53
ENTRYPOINT ["/usr/sbin/named", "-g", "-u", "bind" ]

View File

@@ -0,0 +1,5 @@
#!/bin/bash
cd -P "$(dirname "$(readlink -f "$0")" )"
docker build -t gouri_infra:net_dns -f $PWD/Dockerfile $PWD/../../../../../andre_etckeeper_history/etc/bind