stubby: configure cache directory
This is needed for local dnssec validation
This commit is contained in:
parent
56e6074c07
commit
8cfd003295
@ -72,6 +72,7 @@ let
|
|||||||
resolution_type: GETDNS_RESOLUTION_STUB
|
resolution_type: GETDNS_RESOLUTION_STUB
|
||||||
dns_transport_list:
|
dns_transport_list:
|
||||||
${fallbacks}
|
${fallbacks}
|
||||||
|
appdata_dir: "/var/cache/stubby"
|
||||||
tls_authentication: ${cfg.authenticationMode}
|
tls_authentication: ${cfg.authenticationMode}
|
||||||
tls_query_padding_blocksize: ${toString cfg.queryPaddingBlocksize}
|
tls_query_padding_blocksize: ${toString cfg.queryPaddingBlocksize}
|
||||||
edns_client_subnet_private: ${if cfg.subnetPrivate then "1" else "0"}
|
edns_client_subnet_private: ${if cfg.subnetPrivate then "1" else "0"}
|
||||||
@ -208,6 +209,7 @@ in
|
|||||||
CapabilityBoundingSet = "CAP_NET_BIND_SERVICE";
|
CapabilityBoundingSet = "CAP_NET_BIND_SERVICE";
|
||||||
ExecStart = "${pkgs.stubby}/bin/stubby -C ${confFile} ${optionalString cfg.debugLogging "-l"}";
|
ExecStart = "${pkgs.stubby}/bin/stubby -C ${confFile} ${optionalString cfg.debugLogging "-l"}";
|
||||||
DynamicUser = true;
|
DynamicUser = true;
|
||||||
|
CacheDirectory = "stubby";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user