Browse Source

Check-in bind (not used)

pull/740/head
Tim Kimber 6 years ago
parent
commit
a83f20cfc7
4 changed files with 50 additions and 0 deletions
  1. +18
    -0
      test/bind9/Dockerfile
  2. +17
    -0
      test/bind9/db.getssl.test
  3. +4
    -0
      test/bind9/named.conf.local
  4. +11
    -0
      test/bind9/named.conf.options

+ 18
- 0
test/bind9/Dockerfile View File

@ -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"]

+ 17
- 0
test/bind9/db.getssl.test View File

@ -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

+ 4
- 0
test/bind9/named.conf.local View File

@ -0,0 +1,4 @@
zone "getssl.test" {
type master;
file "/etc/bind/zones/db.getssl.test";
};

+ 11
- 0
test/bind9/named.conf.options View File

@ -0,0 +1,11 @@
options {
directory "/var/cache/bind";
recursion yes;
listen-on { any; };
forwarders {
8.8.8.8;
8.8.4.4;
};
};

Loading…
Cancel
Save