01c9d55ec3e17191fe83273174b027fbd1083c3e
[project/luci.git] / modules / admin-full / luasrc / model / cbi / admin_services / dnsmasq.lua
1 --[[
2 LuCI - Lua Configuration Interface
3
4 Copyright 2008 Steven Barth <steven@midlink.org>
5
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
9
10         http://www.apache.org/licenses/LICENSE-2.0
11
12 $Id$
13 ]]--
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> " ..
18                 "firewalls"))
19
20 s = m:section(TypedSection, "dnsmasq", translate("Settings"))
21 s.anonymous = true
22 s.addremove = false
23
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"))
28
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"))
33
34 s:option(Flag, "boguspriv",
35         translate("Filter private"),
36         translate("Don't forward reverse lookups for local networks"))
37
38 s:option(Flag, "filterwin2k",
39         translate("Filter useless"),
40         translate("filter useless <abbr title=\"Domain Name System\">DNS</abbr>-queries of " ..
41                 "Windows-systems"))
42
43 s:option(Flag, "localise_queries",
44         translate("Localise queries"),
45         translate("localises the hostname depending on its subnet"))
46
47 s:option(Value, "local",
48         translate("Local Server"))
49
50 s:option(Value, "domain",
51         translate("Local Domain"))
52
53 s:option(Flag, "expandhosts",
54         translate("Expand Hosts"),
55         translate("adds domain names to hostentries in the resolv file"))
56
57 s:option(Flag, "nonegcache",
58         translate("don't cache unknown"),
59         translate("prevents caching of negative <abbr title=\"Domain Name System\">DNS</abbr>-" ..
60                 "replies"))
61
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"))
66
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"))
71
72 s:option(Value, "resolvfile",
73         translate("Resolvfile"),
74         translate("local <abbr title=\"Domain Name System\">DNS</abbr> file"))
75
76 s:option(Flag, "nohosts",
77         translate("Ignore <code>/etc/hosts</code>")).optional = true
78
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
83
84 s:option(Flag, "logqueries",
85         translate("Log queries")).optional = true
86
87 s:option(Flag, "noresolv",
88         translate("Ignore resolve file")).optional = true
89
90 s:option(Value, "dnsforwardmax",
91         translate("concurrent queries")).optional = true
92
93 s:option(Value, "port",
94         translate("<abbr title=\"Domain Name System\">DNS</abbr>-Port")).optional = true
95
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
99
100 s:option(Value, "dhcpleasemax",
101         translate("<abbr title=\"maximal\">max.</abbr> <abbr title=\"Dynamic Host Configuration " ..
102                 "Protocol\">DHCP</abbr>-Leases")).optional = true
103
104 s:option(DynamicList, "addnhosts",
105         translate("additional hostfile")).optional = true
106
107 s:option(Value, "queryport",
108         translate("query port")).optional = true
109
110 s:option(Flag, "enable_tftp",
111         translate("Enable TFTP-Server")).optional = true
112
113 s:option(Value, "tftp_root",
114         translate("TFTP-Server Root")).optional = true
115
116 s:option(Value, "dhcp_boot",
117         translate("Network Boot Image")).optional = true
118
119 return m