--- a/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js +++ b/luci-mod-network/htdocs/luci-static/resources/view/network/dhcp.js @@ -252,6 +252,30 @@ return view.extend({ s.tab('tftp', _('TFTP Settings')); s.tab('advanced', _('Advanced Settings')); s.tab('leases', _('Static Leases')); + s.tab('custom_domain', _('Custom Redirect Domain')); + + o = s.taboption('custom_domain', form.SectionValue, 'domain', form.GridSection, 'domain', null, + _('Define a custom domain name and the corresponding PTR record')); + + ss = o.subsection; + + ss.addremove = true; + ss.anonymous = true; + + so = ss.option(form.Value, 'name', _('Domain Name')); + so.datatype = 'hostname'; + so.rmempty = true; + + so = ss.option(form.Value, 'ip', _('IPv4-Address')); + so.datatype = 'or(ip4addr,"ignore")'; + so.rmempty = true; + + so = ss.option(form.Value, 'comments', _('Comments')); + so.rmempty = true; + + s.taboption('general', form.Flag, 'dns_redirect', + _('DNS Redirect'), + _('Redirect client DNS to dnsmasq')); s.taboption('general', form.Flag, 'domainneeded', _('Domain required'), @@ -288,6 +312,11 @@ return view.extend({ s.taboption('files', form.DynamicList, 'addnhosts', _('Additional Hosts files')).optional = true; + o = s.taboption('advanced', form.Flag, 'filter_aaaa', + _('Disable IPv6 DNS forwards'), + _('Filter IPv6(AAAA) DNS Query Name Resolve')); + o.optional = true; + o = s.taboption('advanced', form.Flag, 'quietdhcp', _('Suppress logging'), _('Suppress logging of the routine operation of these protocols')); @@ -453,6 +482,13 @@ return view.extend({ o.datatype = 'range(0,10000)'; o.placeholder = 150; + o = s.taboption('advanced', form.Value, 'mini_ttl', + _('Minimum TTL to send to clients'), + _('Modify DNS entries minimum TTL (max is 86400, 0 is no modify)')); + o.optional = true; + o.datatype = 'range(0,86400)'; + o.placeholder = 0; + s.taboption('tftp', form.Flag, 'enable_tftp', _('Enable TFTP server')).optional = true;