Docker container for DNS server bind9.
This commit is contained in:
@@ -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" ]
|
||||||
@@ -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
|
||||||
Reference in New Issue
Block a user