diff --git a/desu.local/dns-unbound/Dockerfile b/desu.local/dns-unbound/Dockerfile index 6f1d1cf..45e4242 100644 --- a/desu.local/dns-unbound/Dockerfile +++ b/desu.local/dns-unbound/Dockerfile @@ -1,2 +1,2 @@ FROM klutchell/unbound:latest -# TODO: Uh +COPY unbound.conf /opt/unbound/etc/unbound/unbound.conf diff --git a/desu.local/dns-unbound/unbound.conf b/desu.local/dns-unbound/unbound.conf new file mode 100644 index 0000000..6fe7e7c --- /dev/null +++ b/desu.local/dns-unbound/unbound.conf @@ -0,0 +1,20 @@ +# !vim:set ft=conf: +server: + interface: 0.0.0.0@5053 + do-ip6: no + do-daemonize: no + access-control: 127.0.0.1/32 allow + access-control: 192.168.0.0/16 allow + access-control: 172.16.0.0/12 allow + access-control: 10.0.0.0/8 allow + auto-trust-anchor-file: /var/run/unbound/root.key + logfile: "" + verbosity: 1 + statistics-interval: 600 + statistics-cumulative: yes +# include: /opt/unbound/etc/unbound/a-records.conf + local-zone: "desu.ltd." static + local-data: "pi-kub-master-1.desu.ltd. 3600 IN A 192.168.102.1" + local-data: "pi-kub-node-1.desu.ltd. 3600 IN A 192.168.102.10" + local-data: "pi-kub-node-2.desu.ltd. 3600 IN A 192.168.102.11" + local-data: "pi-kub-node-3.desu.ltd. 3600 IN A 192.168.102.12"