@@ -14,8 +14,8 @@ let
1414 acl badnetworks { ${concatMapStrings (entry: " ${entry}; ") cfg.blockedNetworks} };
1515
1616 options {
17− listen-on {any;};
18− listen-on-v6 {any;};
17+ listen-on { ${concatMapStrings (entry: " ${entry}; ") cfg.listenOn} };
18+ listen-on-v6 { ${concatMapStrings (entry: " ${entry}; ") cfg.listenOnIpv6} };
1919 allow-query { cachenetworks; };
2020 blackhole { badnetworks; };
2121 forward first;
@@ -96,6 +96,22 @@ in
9696 ";
9797 };
9898
99+ listenOn = mkOption {
100+ default = ["any"];
101+ type = types.listOf types.str;
102+ description = "
103+ Interfaces to listen on.
104+ ";
105+ };
106+
107+ listenOnIpv6 = mkOption {
108+ default = ["any"];
109+ type = types.listOf types.str;
110+ description = "
111+ Ipv6 interfaces to listen on.
112+ ";
113+ };
114+
99115 zones = mkOption {
100116 default = [];
101117 description = "