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; };
|
||||
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
|
||||
}
|
||||
})
|
||||
'';
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user