Skip to content

Commit

Permalink
luci-mod-network: Add cache-rr to cache responses by record type name
Browse files Browse the repository at this point in the history
This follows openwrt/openwrt#14975

Signed-off-by: Paul Donald <newtwen+github@gmail.com>
  • Loading branch information
systemcrash committed Oct 22, 2024
1 parent 4254b02 commit 4437b6b
Showing 1 changed file with 12 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
Expand All @@ -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 />' +
Expand Down

0 comments on commit 4437b6b

Please sign in to comment.