dnscache: activate features that required extraFeatures enabled

This commit is contained in:
Sandro - 2024-04-18 22:49:46 +02:00
parent aa0f8b1a5a
commit 1f6f96d433
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 9 additions and 9 deletions

View File

@ -8,7 +8,7 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
package = pkgs.knot-resolver.override { extraFeatures = true; };
extraConfig = /* lua */ ''
modules = {
-- 'http', -- module 'cqueues' not found
'http',
'policy',
'predict',
'prefill',
@ -20,8 +20,8 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
cache.size = 500 * MB
cache.min_ttl(60)
-- net.listen('127.0.0.1', 8453, { kind = 'webmgmt' })
-- http.prometheus.namespace = 'resolver_'
net.listen('127.0.0.1', 8453, { kind = 'webmgmt' })
http.prometheus.namespace = 'resolver_'
-- dns42
policy.add(policy.suffix(
@ -87,12 +87,12 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
period = 24*(60/15) -- track last X hours, divide through sampling window
}
-- prefill.config({
-- ['.'] = {
-- url = 'https://www.internic.net/domain/root.zone',
-- interval = 86400, -- seconds
-- }
-- })
prefill.config({
['.'] = {
url = 'https://www.internic.net/domain/root.zone',
interval = 86400, -- seconds
}
})
'';
};
}