26 lines
557 B
Docker
26 lines
557 B
Docker
FROM ubuntu:24.04
|
|
|
|
RUN apt-get update && \
|
|
apt-get install -y \
|
|
bind9 \
|
|
vim \
|
|
nano \
|
|
dnsutils \
|
|
tcpdump \
|
|
traceroute \
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
RUN sed 's/include "\/etc\/bind\/named.conf.default-zones";//g' /etc/bind/named.conf
|
|
COPY named.conf.local /etc/bind/named.conf.local
|
|
COPY named.conf.options /etc/bind/named.conf.options
|
|
|
|
COPY start.sh /start.sh
|
|
COPY restart-bind /usr/bin
|
|
|
|
RUN mkdir /etc/dns
|
|
RUN touch /etc/dns/master.conf
|
|
|
|
VOLUME /etc/dns
|
|
|
|
EXPOSE 53
|
|
CMD ["/bin/sh", "/start.sh"] |