summaryrefslogtreecommitdiffhomepage
path: root/applications/luci-app-unbound/luasrc/model/cbi
diff options
context:
space:
mode:
authorEric Luehrsen <ericluehrsen@gmail.com>2020-07-16 01:02:52 -0400
committerEric Luehrsen <ericluehrsen@gmail.com>2020-07-16 01:30:34 -0400
commit11f72bbcabd9cafee81bdc458b26fa711ff6cdc0 (patch)
treef9d6bc1b52fbf5d943f321a1e72bd99fe72cf111 /applications/luci-app-unbound/luasrc/model/cbi
parent0f912dc58d48635f04fe7e7ce2e766ae7aa29669 (diff)
luci-app-unbound: add rate_limit and dns_assist option support
Signed-off-by: Eric Luehrsen <ericluehrsen@gmail.com>
Diffstat (limited to 'applications/luci-app-unbound/luasrc/model/cbi')
-rw-r--r--applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua10
-rw-r--r--applications/luci-app-unbound/luasrc/model/cbi/unbound/zone-details.lua8
2 files changed, 15 insertions, 3 deletions
diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua
index d1ea77408..206d7e6da 100644
--- a/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua
+++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound/configure.lua
@@ -138,7 +138,7 @@ if (valman == "0") then
dlk = s1:taboption("DHCP", ListValue, "dhcp_link",
translate("DHCP Link"),
translate("Link to supported programs to load DHCP into DNS"))
- dlk:value("none", translate("No Link"))
+ dlk:value("none", translate("(none)"))
dlk:value("dnsmasq", "dnsmasq")
dlk:value("odhcpd", "odhcpd")
dlk.rmempty = false
@@ -154,8 +154,6 @@ if (valman == "0") then
translate("Domain suffix for this router and DHCP clients"))
dom.placeholder = "lan"
dom.optional = true
- dom:depends("dhcp_link", "none")
- dom:depends("dhcp_link", "odhcpd")
dty = s1:taboption("DHCP", ListValue, "domain_type",
translate("Local Domain Type"),
@@ -270,6 +268,12 @@ if (valman == "0") then
tlm.datatype = "and(uinteger,min(0),max(1200))"
tlm.placeholder = "120"
+ rtt = s1:taboption("resource", Value, "rate_limit",
+ translate("Query Rate Limit"),
+ translate("Prevent client query overload; zero is off"))
+ rtt.datatype = "and(uinteger,min(0),max(5000))"
+ rtt.placeholder = "0"
+
stt = s1:taboption("resource", Flag, "extended_stats",
translate("Extended Statistics"),
translate("Extended statistics are printed from unbound-control"))
diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound/zone-details.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound/zone-details.lua
index dcaa877fd..f4a6ca6dd 100644
--- a/applications/luci-app-unbound/luasrc/model/cbi/unbound/zone-details.lua
+++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound/zone-details.lua
@@ -48,6 +48,14 @@ else
translate("Servers for this zone; see README.md for optional form"))
srv.placeholder="192.0.2.53"
+ ast = s7:option(ListValue, "dns_assist", translate("DNS Plugin"),
+ translate("Check for local program to allow forward to localhost"))
+ ast:value("none", translate("(none)"))
+ ast:value("bind", "bind")
+ ast:value("dnsmasq", "dnsmasq")
+ ast:value("ipset-dns", "ipset-dns")
+ ast:value("nsd", "nsd")
+
rlv = s7:option(Flag, "resolv_conf", translate("Use 'resolv.conf.auto'"),
translate("Forward to upstream nameservers (ISP)"))
rlv:depends("zone_type", "forward_zone")