diff --git a/test/bind9/Dockerfile b/test/bind9/Dockerfile new file mode 100644 index 0000000..c6bafc8 --- /dev/null +++ b/test/bind9/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:bionic + +RUN apt-get update \ + && apt-get install -y \ + bind9 \ + bind9utils \ + bind9-doc + +# Enable IPv4 +RUN sed -i 's/OPTIONS=.*/OPTIONS="-4 -u bind"/' /etc/default/bind9 + +# Copy configuration files +COPY named.conf.options /etc/bind/ +COPY named.conf.local /etc/bind/ +COPY db.getssl.test /etc/bind/zones/ + +# Run eternal loop +CMD ["/bin/bash", "-c", "while :; do sleep 10; done"] diff --git a/test/bind9/db.getssl.test b/test/bind9/db.getssl.test new file mode 100644 index 0000000..8ded146 --- /dev/null +++ b/test/bind9/db.getssl.test @@ -0,0 +1,17 @@ +$TTL 604800 +@ IN SOA ns1.getssl.test. root.getssl.test. ( + 3 ; Serial + 604800 ; Refresh + 86400 ; Retry + 2419200 ; Expire + 604800 ) ; Negative Cache TTL +; +; name servers - NS records + IN NS ns1.getssl.test. + +; name servers - A records +ns1.getssl.test. IN A 10.30.50.99 + +pebble.getssl.test. IN A 10.30.50.2 +challtestsrv.getssl.test. IN A 10.30.50.3 +www.getssl.test. IN A 10.30.50.4 diff --git a/test/bind9/named.conf.local b/test/bind9/named.conf.local new file mode 100644 index 0000000..3aa7b2d --- /dev/null +++ b/test/bind9/named.conf.local @@ -0,0 +1,4 @@ +zone "getssl.test" { + type master; + file "/etc/bind/zones/db.getssl.test"; +}; diff --git a/test/bind9/named.conf.options b/test/bind9/named.conf.options new file mode 100644 index 0000000..6065020 --- /dev/null +++ b/test/bind9/named.conf.options @@ -0,0 +1,11 @@ +options { + directory "/var/cache/bind"; + + recursion yes; + listen-on { any; }; + + forwarders { + 8.8.8.8; + 8.8.4.4; + }; +};