60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
services.unbound = {
|
|
enable = true;
|
|
resolveLocalQueries = false;
|
|
|
|
settings = {
|
|
server = {
|
|
interface = [ "127.0.0.1" ];
|
|
port = 6053;
|
|
|
|
verbosity = 0;
|
|
|
|
do-ip4 = true;
|
|
do-ip6 = true;
|
|
do-udp = true;
|
|
do-tcp = true;
|
|
|
|
harden-glue = true;
|
|
harden-dnssec-stripped = true;
|
|
use-caps-for-id = false;
|
|
|
|
edns-buffer-size = 1232;
|
|
|
|
num-threads = 1;
|
|
so-rcvbuf = "1m";
|
|
|
|
unblock-lan-zones = true;
|
|
insecure-lan-zones = true;
|
|
|
|
private-address = [
|
|
"192.168.0.0/16"
|
|
"169.254.0.0/16"
|
|
"172.16.0.0/12"
|
|
"10.0.0.0/8"
|
|
"100.64.10.0/24"
|
|
"fd00::/8"
|
|
"fe80::/10"
|
|
"fd7a:115c:a1e0:1010::/64"
|
|
];
|
|
};
|
|
|
|
forward-zone = [
|
|
{
|
|
name = "10.64.100.in-addr.arpa.";
|
|
forward-addr = "100.100.100.100";
|
|
}
|
|
|
|
{
|
|
name = "0.1.0.1.0.e.1.a.c.5.1.1.a.7.d.f.ip6.arpa.";
|
|
forward-addr = "100.100.100.100";
|
|
}
|
|
|
|
{
|
|
name = "in-addr.arpa.";
|
|
forward-addr = "10.0.0.1";
|
|
}
|
|
];
|
|
};
|
|
};
|
|
}
|