mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-22 21:30:45 +02:00
nixos/pdns-recursor: add option for recursive forward zones
This commit is contained in:
parent
f2ecbaa6cf
commit
28c8884e62
|
@ -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.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -158,7 +166,8 @@ in {
|
||||||
webserver-port = cfg.api.port;
|
webserver-port = cfg.api.port;
|
||||||
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…
Reference in a new issue