summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Donald <newtwen+github@gmail.com>2024-10-23 01:17:16 +0200
committerPaul Donald <newtwen+github@gmail.com>2024-10-23 01:39:59 +0200
commit4437b6bbfdac0079ab8c46b9412fffaf382fb3f5 (patch)
tree129de97060472a554ec53b48845c3aefd136d7b4
parent4254b02e79df46af8172fec0fa52c2d0fec41ed3 (diff)
luci-mod-network: Add cache-rr to cache responses by record type name
This follows https://github.com/openwrt/openwrt/pull/14975 Signed-off-by: Paul Donald <newtwen+github@gmail.com>
-rw-r--r--modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js12
1 files changed, 12 insertions, 0 deletions
diff --git a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
index e6333b89d3..2612467c8b 100644
--- a/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
+++ b/modules/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js
@@ -385,6 +385,7 @@ return view.extend({
s.tab('general', _('General'));
+ s.tab('cache', _('Cache'));
s.tab('devices', _('Devices &amp; Ports'));
s.tab('dnsrecords', _('DNS Records'));
s.tab('dnssecopt', _('DNSSEC'));
@@ -398,6 +399,17 @@ return view.extend({
s.tab('relay', _('Relay'));
s.tab('pxe_tftp', _('PXE/TFTP'));
+ o = s.taboption('cache', form.MultiValue, 'cache_rr',
+ _('Cache arbitrary RR'), _('By default, dnsmasq caches A, AAAA, CNAME and SRV DNS record types.') + '<br/>' +
+ _('This option adds additional record types to the cache.'));
+ o.optional = true;
+ o.create = true;
+ o.multiple = true;
+ o.display_size = 5;
+ recordtypes.forEach(r => {
+ o.value(r);
+ });
+
s.taboption('filteropts', form.Flag, 'domainneeded',
_('Domain required'),
_('Never forward DNS queries which lack dots or domain parts.') + '<br />' +