s.tab('general', _('General'));
s.tab('devices', _('Devices & Ports'));
s.tab('logging', _('Log'));
- s.tab('files', _('Resolv & Hosts Files'));
+ s.tab('files', _('Files'));
s.tab('leases', _('Static Leases'));
s.tab('ipsets', _('IP Sets'));
s.tab('relay', _('Relay'));
o.depends('logdhcp', '0');
// End logging
+ // Begin files
+ s.taboption('files', form.Flag, 'readethers',
+ customi18n(_('Use {etc_ethers}') ),
+ customi18n(_('Read {etc_ethers} to configure the DHCP server.') )
+ );
+
+ s.taboption('files', form.Value, 'leasefile',
+ _('Lease file'),
+ _('File to store DHCP lease information.'));
+ // End files
+
o = s.taboption('relay', form.SectionValue, '__relays__', form.TableSection, 'relay', null,
_('Relay DHCP requests elsewhere. OK: v4↔v4, v6↔v6. Not OK: v4↔v6, v6↔v4.')
+ '<br />' + _('Note: you may also need a DHCP Proxy (currently unavailable) when specifying a non-standard Relay To port(<code>addr#port</code>).')
so.rmempty = false;
so.placeholder = 'lan';
- s.taboption('files', form.Flag, 'readethers',
- customi18n(_('Use {etc_ethers}') ),
- customi18n(_('Read {etc_ethers} to configure the DHCP server.') )
- );
-
- s.taboption('files', form.Value, 'leasefile',
- _('Lease file'),
- _('File to store DHCP lease information.'));
-
- o = s.taboption('files', form.Flag, 'noresolv',
- _('Ignore resolv file'));
- o.optional = true;
-
- o = s.taboption('files', form.Value, 'resolvfile',
- _('Resolv file'),
- _('File with upstream resolvers.'));
- o.depends('noresolv', '0');
- o.placeholder = '/tmp/resolv.conf.d/resolv.conf.auto';
- o.optional = true;
-
- o = s.taboption('files', form.Flag, 'strictorder',
- _('Strict order'),
- _('Query upstream resolvers in the order they appear in the resolv file.'));
- o.optional = true;
-
- o = s.taboption('files', form.Flag, 'ignore_hosts_dir',
- _('Ignore hosts files directory'),
- _('On: use instance specific hosts file only') + '<br/>' +
- _('Off: use all files in the directory including the instance specific hosts file')
- );
- o.optional = true;
-
- o = s.taboption('files', form.Flag, 'nohosts',
- customi18n(_('Ignore {etc_hosts} file') )
- );
- o.optional = true;
-
- o = s.taboption('files', form.DynamicList, 'addnhosts',
- _('Additional hosts files'));
- o.optional = true;
- o.placeholder = '/etc/dnsmasq.hosts';
-
o = s.taboption('pxe_tftp', form.Flag, 'enable_tftp',
_('Enable TFTP server'),
_('Enable the built-in single-instance TFTP server.'));
o.value('-', _('stderr'));
// End logging
+ // Begin files
+ o = s.taboption('files', form.Flag, 'noresolv',
+ _('Ignore resolv file'));
+ o.optional = true;
+
+ o = s.taboption('files', form.Value, 'resolvfile',
+ _('Resolv file'),
+ _('File with upstream resolvers.'));
+ o.depends('noresolv', '0');
+ o.placeholder = '/tmp/resolv.conf.d/resolv.conf.auto';
+ o.optional = true;
+
+ o = s.taboption('files', form.Flag, 'strictorder',
+ _('Strict order'),
+ _('Query upstream resolvers in the order they appear in the resolv file.'));
+ o.optional = true;
+
+ o = s.taboption('files', form.Flag, 'ignore_hosts_dir',
+ _('Ignore hosts files directory'),
+ _('On: use instance specific hosts file only') + '<br/>' +
+ _('Off: use all files in the directory including the instance specific hosts file')
+ );
+ o.optional = true;
+
+ o = s.taboption('files', form.Flag, 'nohosts',
+ customi18n(_('Ignore {etc_hosts} file') )
+ );
+ o.optional = true;
+
+ o = s.taboption('files', form.DynamicList, 'addnhosts',
+ _('Additional hosts files'));
+ o.optional = true;
+ o.placeholder = '/etc/dnsmasq.hosts';
+ // End files
+
o = s.taboption('relay', form.SectionValue, '__relays__', form.TableSection, 'relay', null,
_('Relay DHCP requests elsewhere. OK: v4↔v4, v6↔v6. Not OK: v4↔v6, v6↔v4.')
+ '<br />' + _('Note: you may also need a DHCP Proxy (currently unavailable) when specifying a non-standard Relay To port(<code>addr#port</code>).')
so.rmempty = false;
so.placeholder = 'lan';
- s.taboption('files', form.Flag, 'readethers',
- customi18n(_('Use {etc_ethers}') ),
- customi18n(_('Read {etc_ethers} to configure the DHCP server.') )
- );
-
- s.taboption('files', form.Value, 'leasefile',
- _('Lease file'),
- _('File to store DHCP lease information.'));
-
- o = s.taboption('files', form.Flag, 'noresolv',
- _('Ignore resolv file'));
- o.optional = true;
-
- o = s.taboption('files', form.Value, 'resolvfile',
- _('Resolv file'),
- _('File with upstream resolvers.'));
- o.depends('noresolv', '0');
- o.placeholder = '/tmp/resolv.conf.d/resolv.conf.auto';
- o.optional = true;
-
- o = s.taboption('files', form.Flag, 'strictorder',
- _('Strict order'),
- _('Query upstream resolvers in the order they appear in the resolv file.'));
- o.optional = true;
-
- o = s.taboption('files', form.Flag, 'ignore_hosts_dir',
- _('Ignore hosts files directory'),
- _('On: use instance specific hosts file only') + '<br/>' +
- _('Off: use all files in the directory including the instance specific hosts file')
- );
- o.optional = true;
-
- o = s.taboption('files', form.Flag, 'nohosts',
- customi18n(_('Ignore {etc_hosts} file') )
- );
- o.optional = true;
-
- o = s.taboption('files', form.DynamicList, 'addnhosts',
- _('Additional hosts files'));
- o.optional = true;
- o.placeholder = '/etc/dnsmasq.hosts';
-
o = s.taboption('pxe_tftp', form.Flag, 'enable_tftp',
_('Enable TFTP server'),
_('Enable the built-in single-instance TFTP server.'));