dnscache: activate features that required extraFeatures enabled
This commit is contained in:
parent
aa0f8b1a5a
commit
1f6f96d433
|
@ -8,7 +8,7 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
|
||||||
package = pkgs.knot-resolver.override { extraFeatures = true; };
|
package = pkgs.knot-resolver.override { extraFeatures = true; };
|
||||||
extraConfig = /* lua */ ''
|
extraConfig = /* lua */ ''
|
||||||
modules = {
|
modules = {
|
||||||
-- 'http', -- module 'cqueues' not found
|
'http',
|
||||||
'policy',
|
'policy',
|
||||||
'predict',
|
'predict',
|
||||||
'prefill',
|
'prefill',
|
||||||
|
@ -20,8 +20,8 @@ lib.mkIf config.site.hosts.${hostName}.services.dnscache.enable {
|
||||||
cache.size = 500 * MB
|
cache.size = 500 * MB
|
||||||
cache.min_ttl(60)
|
cache.min_ttl(60)
|
||||||
|
|
||||||
-- net.listen('127.0.0.1', 8453, { kind = 'webmgmt' })
|
net.listen('127.0.0.1', 8453, { kind = 'webmgmt' })
|
||||||
-- http.prometheus.namespace = 'resolver_'
|
http.prometheus.namespace = 'resolver_'
|
||||||
|
|
||||||
-- dns42
|
-- dns42
|
||||||
policy.add(policy.suffix(
|
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
|
period = 24*(60/15) -- track last X hours, divide through sampling window
|
||||||
}
|
}
|
||||||
|
|
||||||
-- prefill.config({
|
prefill.config({
|
||||||
-- ['.'] = {
|
['.'] = {
|
||||||
-- url = 'https://www.internic.net/domain/root.zone',
|
url = 'https://www.internic.net/domain/root.zone',
|
||||||
-- interval = 86400, -- seconds
|
interval = 86400, -- seconds
|
||||||
-- }
|
}
|
||||||
-- })
|
})
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue