Merge pull request #72987 from rnhmjoj/dnschain
nixos/dnschain: use forwardZonesRecurse in pdns-recursor
This commit is contained in:
commit
e37e7b413c
@ -137,7 +137,7 @@ in
|
|||||||
];
|
];
|
||||||
|
|
||||||
services.pdns-recursor = mkIf cfgs.pdns-recursor.resolveDNSChainQueries {
|
services.pdns-recursor = mkIf cfgs.pdns-recursor.resolveDNSChainQueries {
|
||||||
forwardZones =
|
forwardZonesRecurse =
|
||||||
{ bit = "127.0.0.1:${toString cfg.dns.port}";
|
{ bit = "127.0.0.1:${toString cfg.dns.port}";
|
||||||
dns = "127.0.0.1:${toString cfg.dns.port}";
|
dns = "127.0.0.1:${toString cfg.dns.port}";
|
||||||
};
|
};
|
||||||
|
@ -90,11 +90,19 @@ in {
|
|||||||
};
|
};
|
||||||
|
|
||||||
forwardZones = mkOption {
|
forwardZones = mkOption {
|
||||||
|
type = types.attrs;
|
||||||
|
default = {};
|
||||||
|
description = ''
|
||||||
|
DNS zones to be forwarded to other authoritative servers.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
|
forwardZonesRecurse = mkOption {
|
||||||
type = types.attrs;
|
type = types.attrs;
|
||||||
example = { eth = "127.0.0.1:5353"; };
|
example = { eth = "127.0.0.1:5353"; };
|
||||||
default = {};
|
default = {};
|
||||||
description = ''
|
description = ''
|
||||||
DNS zones to be forwarded to other servers.
|
DNS zones to be forwarded to other recursive servers.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -159,6 +167,7 @@ in {
|
|||||||
webserver-allow-from = cfg.api.allowFrom;
|
webserver-allow-from = cfg.api.allowFrom;
|
||||||
|
|
||||||
forward-zones = mapAttrsToList (zone: uri: "${zone}.=${uri}") cfg.forwardZones;
|
forward-zones = mapAttrsToList (zone: uri: "${zone}.=${uri}") cfg.forwardZones;
|
||||||
|
forward-zones-recurse = mapAttrsToList (zone: uri: "${zone}.=${uri}") cfg.forwardZonesRecurse;
|
||||||
export-etc-hosts = cfg.exportHosts;
|
export-etc-hosts = cfg.exportHosts;
|
||||||
dnssec = cfg.dnssecValidation;
|
dnssec = cfg.dnssecValidation;
|
||||||
serve-rfc1918 = cfg.serveRFC1918;
|
serve-rfc1918 = cfg.serveRFC1918;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user