2024-09-26 13:22:42 +00:00
|
|
|
FROM ubuntu:24.04
|
|
|
|
|
|
|
|
RUN apt-get update && \
|
|
|
|
apt-get install -y \
|
|
|
|
bind9 \
|
|
|
|
vim \
|
|
|
|
nano \
|
|
|
|
dnsutils \
|
|
|
|
tcpdump \
|
|
|
|
traceroute \
|
|
|
|
&& rm -rf /var/lib/apt/lists/*
|
|
|
|
|
2024-09-26 13:57:19 +00:00
|
|
|
RUN sed 's/include "\/etc\/bind\/named.conf.default-zones";//g' /etc/bind/named.conf
|
2024-09-27 05:03:25 +00:00
|
|
|
COPY named.conf.local /etc/bind/named.conf.local
|
|
|
|
COPY named.conf.options /etc/bind/named.conf.options
|
2024-09-26 13:57:19 +00:00
|
|
|
|
2024-09-26 13:22:42 +00:00
|
|
|
COPY start.sh /start.sh
|
2024-09-26 13:57:19 +00:00
|
|
|
COPY restart-bind /usr/bin
|
|
|
|
|
|
|
|
RUN mkdir /etc/dns
|
|
|
|
RUN touch /etc/dns/master.conf
|
|
|
|
|
|
|
|
VOLUME /etc/dns
|
|
|
|
|
2024-09-26 13:22:42 +00:00
|
|
|
EXPOSE 53
|
|
|
|
CMD ["/bin/sh", "/start.sh"]
|