feat: Basic recursive dns

This commit is contained in:
Tibo De Peuter 2025-05-26 22:38:29 +02:00
parent 48fb68c2fd
commit c294e159e2
Signed by: tdpeuter
GPG key ID: 38297DE43F75FFE2
6 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,35 @@
http local {
endpoints { "/dns-query"; };
};
acl bogusnets {
};
acl trusted {
192.168.0.0/16;
};
options {
directory "/var/cache/bind";
version "not currently available";
listen-on { any; };
listen-on-v6 { any; };
listen-on tls ephemeral { any; };
listen-on-v6 tls ephemeral { any; };
listen-on tls ephemeral http local { any; };
listen-on-v6 tls ephemeral http local { any; };
recursion yes;
forwarders {
9.9.9.9;
149.112.112.112;
};
forward only;
allow-query { any; };
allow-recursion { any; };
allow-transfer { none; };
blackhole { bogusnets; };
};