--[[ LuCI - Lua Configuration Interface Copyright 2008 Steven Barth Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 $Id$ ]]-- m = Map("dhcp", "Dnsmasq", translate("Dnsmasq is a combined DHCP-Server and DNS-" .. "Forwarder for NAT " .. "firewalls")) s = m:section(TypedSection, "dnsmasq", translate("Settings")) s.anonymous = true s.addremove = false s:option(Flag, "domainneeded", translate("Domain required"), translate("Don't forward DNS-Requests without " .. "DNS-Name")) s:option(Flag, "authoritative", translate("Authoritative"), translate("This is the only DHCP in the local network")) s:option(Flag, "boguspriv", translate("Filter private"), translate("Don't forward reverse lookups for local networks")) s:option(Flag, "filterwin2k", translate("Filter useless"), translate("filter useless DNS-queries of " .. "Windows-systems")) s:option(Flag, "localise_queries", translate("Localise queries"), translate("localises the hostname depending on its subnet")) s:option(Value, "local", translate("Local Server")) s:option(Value, "domain", translate("Local Domain")) s:option(Flag, "expandhosts", translate("Expand Hosts"), translate("adds domain names to hostentries in the resolv file")) s:option(Flag, "nonegcache", translate("don't cache unknown"), translate("prevents caching of negative DNS-" .. "replies")) s:option(Flag, "readethers", translate("Use /etc/ethers"), translate("Read /etc/ethers to configure the DHCP-Server")) s:option(Value, "leasefile", translate("Leasefile"), translate("file where given DHCP-leases will be stored")) s:option(Value, "resolvfile", translate("Resolvfile"), translate("local DNS file")) s:option(Flag, "nohosts", translate("Ignore /etc/hosts")).optional = true s:option(Flag, "strictorder", translate("Strict order"), translate("DNS-Server will be queried in the " .. "order of the resolvfile")).optional = true s:option(Flag, "logqueries", translate("Log queries")).optional = true s:option(Flag, "noresolv", translate("Ignore resolve file")).optional = true s:option(Value, "dnsforwardmax", translate("concurrent queries")).optional = true s:option(Value, "port", translate("DNS-Port")).optional = true s:option(Value, "ednspacket_max", translate("max. EDNS0 paket size")).optional = true s:option(Value, "dhcpleasemax", translate("max. DHCP-Leases")).optional = true s:option(Value, "addnhosts", translate("additional hostfile")).optional = true s:option(Value, "queryport", translate("query port")).optional = true s:option(Flag, "enable_tftp", translate("Enable TFTP-Server")).optional = true s:option(Value, "tftp_root", translate("TFTP-Server Root")).optional = true s:option(Value, "dhcp_boot", translate("Network Boot Image")).optional = true return m