This commit is contained in:
Pierre HUBERT 2024-09-26 15:22:42 +02:00
parent 04b6b7e4fe
commit e0b6f6bac8
3 changed files with 20 additions and 0 deletions

15
dns/Dockerfile Normal file
View File

@ -0,0 +1,15 @@
FROM ubuntu:24.04
RUN apt-get update && \
apt-get install -y \
bind9 \
vim \
nano \
dnsutils \
tcpdump \
traceroute \
&& rm -rf /var/lib/apt/lists/*
COPY start.sh /start.sh
EXPOSE 53
CMD ["/bin/sh", "/start.sh"]

2
dns/build.sh Executable file
View File

@ -0,0 +1,2 @@
#!/bin/sh
sudo docker build -t pierre42100/gns3-appliance-dns .

3
dns/start.sh Normal file
View File

@ -0,0 +1,3 @@
#!/bin/sh
/usr/sbin/named
while true; do /bin/bash; done