Open jgeusebroek opened 1 year ago
@jgeusebroek
When starting this image without ALLOW_RECURSION
:
docker run -it --rm \
-e DEBUG_ENTRYPOINT=2 \
-e DOCKER_LOGS=1 \
-p 5553:53/tcp \
-p 5553:53/udp \
-e DNS_A='test.domain=1.2.3.4' \
cytopia/bind
It produces the following in /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
dnssec-validation no;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
max-cache-size 90%;
response-policy { zone "rpz"; };
};
ALLOW_RECURSION
When starting this image with ALLOW_RECURSION
:
docker run -it --rm \
-e DEBUG_ENTRYPOINT=2 \
-e DOCKER_LOGS=1 \
-p 5553:53/tcp \
-p 5553:53/udp \
-e DNS_A='test.domain=1.2.3.4' \
-e ALLOW_RECURSION=127.0.0.1 \
cytopia/bind
It produces the following in /etc/bind/named.conf.options
options {
directory "/var/cache/bind";
dnssec-validation no;
auth-nxdomain no; # conform to RFC1035
listen-on-v6 { any; };
max-cache-size 90%;
response-policy { zone "rpz"; };
recursion yes;
allow-recursion {
127.0.0.1;
};
};
So the difference is:
+ recursion yes;
+ allow-recursion {
+ 127.0.0.1;
+ };
Isn't that the desired behaviour?
First of all, awesome quality image; very well done!
I was wondering how to disable recursion? The docs say it's disabled by default but it is still resolving?
dig @127.0.0.1 -p 5553 test.domain
dig @127.0.0.1 -p 5553 google.com