diff --git a/Dockerfile b/Dockerfile index 4a7b571..0b12ad1 100644 --- a/Dockerfile +++ b/Dockerfile @@ -13,6 +13,7 @@ RUN git clone --depth=1 --no-single-branch https://github.com/uklans/cache-domai EXPOSE 53/udp EXPOSE 53/tcp +EXPOSE 8053/tcp WORKDIR /scripts diff --git a/overlay/etc/bind/named.conf.options b/overlay/etc/bind/named.conf.options index b0b89d5..6c0a06d 100644 --- a/overlay/etc/bind/named.conf.options +++ b/overlay/etc/bind/named.conf.options @@ -10,6 +10,7 @@ options { max-cache-ttl 0; max-ncache-ttl 0; forward only; + zone-statistics yes; # Permit RFC1918 PTR lookups to be recursed upstream empty-zones-enable no; @@ -18,6 +19,10 @@ options { #ENABLE_UPSTREAM_DNS#forwarders { dns_ip; }; }; +statistics-channels { + inet 0.0.0.0 port 8053; +}; + logging { channel default_file { file "/var/log/named/default.log" versions 3 size 5m;