summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorHannu Nyman <hannu.nyman@iki.fi>2016-12-13 11:04:21 +0200
committerGitHub <noreply@github.com>2016-12-13 11:04:21 +0200
commite846f38e66deb6c27820f5a8e7cb7d04d1c250bd (patch)
tree35491edf5210d98e4cc093c64bcfbd819196e305
parent0895fb41e9e58e23664d7785a6e93f18e8f4ac66 (diff)
parent6f2b21cd20d34f12fe32b0d47287b263f68cbd3d (diff)
Merge pull request #870 from danrl/unbound-dns64
luci-app-unbound: added DNS64 support
-rw-r--r--applications/luci-app-unbound/luasrc/model/cbi/unbound.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua b/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua
index 22f020021c..6d876c2c83 100644
--- a/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua
+++ b/applications/luci-app-unbound/luasrc/model/cbi/unbound.lua
@@ -1,5 +1,6 @@
-- Copyright 2008 Steven Barth <steven@midlink.org>
-- Copyright 2016 Eric Luehrsen <ericluehrsen@hotmail.com>
+-- Copyright 2016 Dan Luedtke <mail@danrl.com>
-- Licensed to the public under the Apache License 2.0.
m = Map("unbound", translate("Recursive DNS"),
@@ -80,6 +81,17 @@ tlm = s:taboption("service", Value, "ttl_min", translate("TTL Minimum:"),
tlm.datatype = "and(uinteger,min(0),max(600))"
tlm.rmempty = false
+d64 = s:taboption("service", Flag, "dns64", translate("Enable DNS64:"),
+ translate("Enable the DNS64 module"))
+d64.rmempty = false
+
+pfx = s:taboption("service", Value, "dns64_prefix", translate("DNS64 Prefix:"),
+ translate("Prefix for generated DNS64 addresses"))
+pfx.datatype = "ip6addr"
+pfx.placeholder = "64:ff9b::/96"
+pfx.optional = true
+pfx:depends({ dns64 = "1" })
+
--Resource Tuning Tab
rsn = s:taboption("resource", ListValue, "recursion", translate("Recursion Strength:"),