fixed bind interfaces
This commit is contained in:
@ -13,7 +13,13 @@ in {
|
||||
interfaces = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = ["127.0.0.1"];
|
||||
description = "Network interfaces BIND should listen on";
|
||||
description = "Network interfaces BIND should listen on (IPv4)";
|
||||
};
|
||||
|
||||
interfaces6 = lib.mkOption {
|
||||
type = lib.types.listOf lib.types.str;
|
||||
default = ["::1"];
|
||||
description = "Network interfaces BIND should listen on (IPv6)";
|
||||
};
|
||||
|
||||
zones = lib.mkOption {
|
||||
@ -73,7 +79,8 @@ in {
|
||||
(lib.mkIf cfg.bind.enable {
|
||||
services.bind = {
|
||||
enable = true;
|
||||
interfaces = cfg.bind.settings.interfaces;
|
||||
listenOn = cfg.bind.settings.interfaces;
|
||||
listenOnIpv6 = cfg.bind.settings.interfaces6;
|
||||
zones =
|
||||
map (zone: {
|
||||
name = zone.name;
|
||||
|
Reference in New Issue
Block a user