diff options
author | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 22:04:43 +0000 |
---|---|---|
committer | Jo-Philipp Wich <jow@openwrt.org> | 2009-10-31 22:04:43 +0000 |
commit | 58749afc728c28ba93bb7764408404a699fafc28 (patch) | |
tree | aa9bbcbab1b2c3df62e98665cd542fdc31b7f463 | |
parent | 4ef4776c9acd871825a9df3731a81006f7b8014d (diff) |
modules/admin-full: fix dnsmasq page
-rw-r--r-- | modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua | 130 |
1 files changed, 102 insertions, 28 deletions
diff --git a/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua b/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua index 70f1a0ed5..cbfa9e6bf 100644 --- a/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua +++ b/modules/admin-full/luasrc/model/cbi/admin_services/dnsmasq.lua @@ -11,35 +11,109 @@ You may obtain a copy of the License at $Id$ ]]-- -m = Map("dhcp", "Dnsmasq") +m = Map("dhcp", "Dnsmasq", + translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" .. + "\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" .. + "Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " .. + "firewalls")) s = m:section(TypedSection, "dnsmasq", translate("Settings")) s.anonymous = true +s.addremove = false -s:option(Flag, "domainneeded") -s:option(Flag, "authoritative") -s:option(Flag, "boguspriv") -s:option(Flag, "filterwin2k") -s:option(Flag, "localise_queries") -s:option(Value, "local") -s:option(Value, "domain") -s:option(Flag, "expandhosts") -s:option(Flag, "nonegcache") -s:option(Flag, "readethers") -s:option(Value, "leasefile") -s:option(Value, "resolvfile") -s:option(Flag, "nohosts").optional = true -s:option(Flag, "strictorder").optional = true -s:option(Flag, "logqueries").optional = true -s:option(Flag, "noresolv").optional = true -s:option(Value, "dnsforwardmax").optional = true -s:option(Value, "port").optional = true -s:option(Value, "ednspacket_max").optional = true -s:option(Value, "dhcpleasemax").optional = true -s:option(Value, "addnhosts").optional = true -s:option(Value, "queryport").optional = true -s:option(Flag, "enable_tftp").optional = true -s:option(Value, "tftp_root").optional = true -s:option(Value, "dhcp_boot").optional = true - -return m
\ No newline at end of file +s:option(Flag, "domainneeded", + translate("Domain required"), + translate("Don't forward <abbr title=\"Domain Name System\">DNS</abbr>-Requests without " .. + "<abbr title=\"Domain Name System\">DNS</abbr>-Name")) + +s:option(Flag, "authoritative", + translate("Authoritative"), + translate("This is the only <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" .. + "abbr> 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 <abbr title=\"Domain Name System\">DNS</abbr>-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 <abbr title=\"Domain Name System\">DNS</abbr>-" .. + "replies")) + +s:option(Flag, "readethers", + translate("Use <code>/etc/ethers</code>"), + translate("Read <code>/etc/ethers</code> to configure the <abbr title=\"Dynamic Host " .. + "Configuration Protocol\">DHCP</abbr>-Server")) + +s:option(Value, "leasefile", + translate("Leasefile"), + translate("file where given <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" .. + "abbr>-leases will be stored")) + +s:option(Value, "resolvfile", + translate("Resolvfile"), + translate("local <abbr title=\"Domain Name System\">DNS</abbr> file")) + +s:option(Flag, "nohosts", + translate("Ignore <code>/etc/hosts</code>")).optional = true + +s:option(Flag, "strictorder", + translate("Strict order"), + translate("<abbr title=\"Domain Name System\">DNS</abbr>-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("<abbr title=\"Domain Name System\">DNS</abbr>-Port")).optional = true + +s:option(Value, "ednspacket_max", + translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Extension Mechanisms for " .. + "Domain Name System\">EDNS0</abbr> paket size")).optional = true + +s:option(Value, "dhcpleasemax", + translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Dynamic Host Configuration " .. + "Protocol\">DHCP</abbr>-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 |