luci-app-unbound: add root zone file cache option
Signed-off-by: Eric Luehrsen <ericluehrsen@hotmail.com>
This commit is contained in:
parent
60ea5dc53f
commit
d0757f1f47
1 changed files with 5 additions and 1 deletions
|
@ -9,7 +9,7 @@ local rlh, rpv, vld, nvd, eds, prt, tlm
|
||||||
local ctl, dlk, dom, dty, lfq, wfq, exa
|
local ctl, dlk, dom, dty, lfq, wfq, exa
|
||||||
local dp6, d64, pfx, qry, qrs
|
local dp6, d64, pfx, qry, qrs
|
||||||
local pro, tgr, rsc, rsn, ag2, stt
|
local pro, tgr, rsc, rsn, ag2, stt
|
||||||
local rpn, din, dfw
|
local rpn, din, dfw, ath
|
||||||
local ucl = luci.model.uci.cursor()
|
local ucl = luci.model.uci.cursor()
|
||||||
local valman = ucl:get_first("unbound", "unbound", "manual_conf")
|
local valman = ucl:get_first("unbound", "unbound", "manual_conf")
|
||||||
|
|
||||||
|
@ -241,6 +241,10 @@ if valman ~= "1" then
|
||||||
qrs.rmempty = false
|
qrs.rmempty = false
|
||||||
qrs:depends({ query_minimize = true })
|
qrs:depends({ query_minimize = true })
|
||||||
|
|
||||||
|
ath = s1:taboption("resource", Flag, "prefetch_root", translate("Prefetch Root:"),
|
||||||
|
translate("Obtain complete root zone files and install in auth-zone: clause"))
|
||||||
|
ath.rmempty = false
|
||||||
|
|
||||||
eds = s1:taboption("resource", Value, "edns_size", translate("EDNS Size:"),
|
eds = s1:taboption("resource", Value, "edns_size", translate("EDNS Size:"),
|
||||||
translate("Limit extended DNS packet size"))
|
translate("Limit extended DNS packet size"))
|
||||||
eds.datatype = "and(uinteger,min(512),max(4096))"
|
eds.datatype = "and(uinteger,min(512),max(4096))"
|
||||||
|
|
Loading…
Reference in a new issue