Skip to content

Commit

Permalink
dnsmasq: Add options for new EDNS0 options
Browse files Browse the repository at this point in the history
Signed-off-by: Carsten Schuette <[email protected]>
  • Loading branch information
schuettecarsten committed Jul 17, 2024
1 parent a0dcba5 commit e7e5f83
Showing 1 changed file with 25 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -677,6 +677,31 @@ return view.extend({
);
o.placeholder = '/etc/dnsmasq.servers';

o = s.taboption('forward', form.Value, 'add_mac',
_('Add requestor MAC'),
_('Add the MAC address of the requestor to DNS queries which are forwarded upstream.'));
o.optional = true;
o.value('', _('off'));
o.value('enabled', _('Enabled'));
o.value('base64');
o.value('text');

s.taboption('forward', form.Flag, 'strip_mac',
_('Remove MAC address before forwarding query'),
_('Remove any MAC address information already in downstream queries before forwarding upstream.'));

o = s.taboption('forward', form.Value, 'add_subnet',
_('Add subnet address to forwards'),
_('Add a subnet address to the DNS queries which are forwarded upstream.') + ' ' + '<br />' +
_('%s adds the /24 and /96 subnets of the requestor for IPv4 and IPv6 requestors, respectively.').format('<code>24,96</code>') + ' ' + '<br />' +
_('%s adds 1.2.3.0/24 for IPv4 requestors and ::/0 for IPv6 requestors.').format('<code>1.2.3.4/24</code>') + ' ' + '<br />' +
_('%s adds 1.2.3.0/24 for both IPv4 and IPv6 requestors.').format('<code>1.2.3.4/24,1.2.3.4/24</code>'));
o.optional = true;

s.taboption('forward', form.Flag, 'strip_subnet',
_('Remove subnet address before forwarding query'),
_('Remove any subnet address already present in a downstream query before forwarding it upstream.'));

o = s.taboption('general', form.Flag, 'allservers',
_('All servers'),
_('Query all available upstream resolvers.') + ' ' + _('First answer wins.'));
Expand Down

0 comments on commit e7e5f83

Please sign in to comment.