forked from mirrors/nixpkgs
bind: allow forwarders to differ from nameservers
This commit is contained in:
parent
0408858a8a
commit
af2382606c
|
@ -19,7 +19,7 @@ let
|
||||||
allow-query { cachenetworks; };
|
allow-query { cachenetworks; };
|
||||||
blackhole { badnetworks; };
|
blackhole { badnetworks; };
|
||||||
forward first;
|
forward first;
|
||||||
forwarders { ${concatMapStrings (entry: " ${entry}; ") config.networking.nameservers} };
|
forwarders { ${concatMapStrings (entry: " ${entry}; ") cfg.forwarders} };
|
||||||
directory "/var/run/named";
|
directory "/var/run/named";
|
||||||
pid-file "/var/run/named/named.pid";
|
pid-file "/var/run/named/named.pid";
|
||||||
};
|
};
|
||||||
|
@ -83,7 +83,14 @@ in
|
||||||
ipv4Only = mkOption {
|
ipv4Only = mkOption {
|
||||||
default = false;
|
default = false;
|
||||||
description = "
|
description = "
|
||||||
Only use ipv4, even if the host supports ipv6
|
Only use ipv4, even if the host supports ipv6.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
|
forwarders = mkOption {
|
||||||
|
default = config.networking.nameservers;
|
||||||
|
description = "
|
||||||
|
List of servers we should forward requests to.
|
||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue