2 LuCI - Lua Configuration Interface
4 Copyright 2008 Steven Barth <steven@midlink.org>
6 Licensed under the Apache License, Version 2.0 (the "License");
7 you may not use this file except in compliance with the License.
8 You may obtain a copy of the License at
10 http://www.apache.org/licenses/LICENSE-2.0
14 m = Map("dhcp", "Dnsmasq",
15 translate("Dnsmasq is a combined <abbr title=\"Dynamic Host Configuration Protocol" ..
16 "\">DHCP</abbr>-Server and <abbr title=\"Domain Name System\">DNS</abbr>-" ..
17 "Forwarder for <abbr title=\"Network Address Translation\">NAT</abbr> " ..
20 s = m:section(TypedSection, "dnsmasq", translate("Settings"))
24 s:option(Flag, "domainneeded",
25 translate("Domain required"),
26 translate("Don't forward <abbr title=\"Domain Name System\">DNS</abbr>-Requests without " ..
27 "<abbr title=\"Domain Name System\">DNS</abbr>-Name"))
29 s:option(Flag, "authoritative",
30 translate("Authoritative"),
31 translate("This is the only <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" ..
32 "abbr> in the local network"))
34 s:option(Flag, "boguspriv",
35 translate("Filter private"),
36 translate("Don't forward reverse lookups for local networks"))
38 s:option(Flag, "filterwin2k",
39 translate("Filter useless"),
40 translate("filter useless <abbr title=\"Domain Name System\">DNS</abbr>-queries of " ..
43 s:option(Flag, "localise_queries",
44 translate("Localise queries"),
45 translate("localises the hostname depending on its subnet"))
47 s:option(Value, "local",
48 translate("Local Server"))
50 s:option(Value, "domain",
51 translate("Local Domain"))
53 s:option(Flag, "expandhosts",
54 translate("Expand Hosts"),
55 translate("adds domain names to hostentries in the resolv file"))
57 s:option(Flag, "nonegcache",
58 translate("don't cache unknown"),
59 translate("prevents caching of negative <abbr title=\"Domain Name System\">DNS</abbr>-" ..
62 s:option(Flag, "readethers",
63 translate("Use <code>/etc/ethers</code>"),
64 translate("Read <code>/etc/ethers</code> to configure the <abbr title=\"Dynamic Host " ..
65 "Configuration Protocol\">DHCP</abbr>-Server"))
67 s:option(Value, "leasefile",
68 translate("Leasefile"),
69 translate("file where given <abbr title=\"Dynamic Host Configuration Protocol\">DHCP</" ..
70 "abbr>-leases will be stored"))
72 s:option(Value, "resolvfile",
73 translate("Resolvfile"),
74 translate("local <abbr title=\"Domain Name System\">DNS</abbr> file"))
76 s:option(Flag, "nohosts",
77 translate("Ignore <code>/etc/hosts</code>")).optional = true
79 s:option(Flag, "strictorder",
80 translate("Strict order"),
81 translate("<abbr title=\"Domain Name System\">DNS</abbr>-Server will be queried in the " ..
82 "order of the resolvfile")).optional = true
84 s:option(Flag, "logqueries",
85 translate("Log queries")).optional = true
87 s:option(Flag, "noresolv",
88 translate("Ignore resolve file")).optional = true
90 s:option(Value, "dnsforwardmax",
91 translate("concurrent queries")).optional = true
93 s:option(Value, "port",
94 translate("<abbr title=\"Domain Name System\">DNS</abbr>-Port")).optional = true
96 s:option(Value, "ednspacket_max",
97 translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Extension Mechanisms for " ..
98 "Domain Name System\">EDNS0</abbr> paket size")).optional = true
100 s:option(Value, "dhcpleasemax",
101 translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Dynamic Host Configuration " ..
102 "Protocol\">DHCP</abbr>-Leases")).optional = true
104 s:option(DynamicList, "addnhosts",
105 translate("additional hostfile")).optional = true
107 s:option(Value, "queryport",
108 translate("query port")).optional = true
110 s:option(Flag, "enable_tftp",
111 translate("Enable TFTP-Server")).optional = true
113 s:option(Value, "tftp_root",
114 translate("TFTP-Server Root")).optional = true
116 s:option(Value, "dhcp_boot",
117 translate("Network Boot Image")).optional = true