diff --git a/dns/Dockerfile b/dns/Dockerfile new file mode 100644 index 0000000..bfcf937 --- /dev/null +++ b/dns/Dockerfile @@ -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"] \ No newline at end of file diff --git a/dns/build.sh b/dns/build.sh new file mode 100755 index 0000000..e35a276 --- /dev/null +++ b/dns/build.sh @@ -0,0 +1,2 @@ +#!/bin/sh +sudo docker build -t pierre42100/gns3-appliance-dns . \ No newline at end of file diff --git a/dns/start.sh b/dns/start.sh new file mode 100644 index 0000000..c6bb14f --- /dev/null +++ b/dns/start.sh @@ -0,0 +1,3 @@ +#!/bin/sh +/usr/sbin/named +while true; do /bin/bash; done \ No newline at end of file