04ec1e15c44319ad61a2791f9d8b9a5eba7765a4
[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
16 s = m:section(TypedSection, "dnsmasq", translate("settings"))
17 s.anonymous = true
18
19 s:option(Flag, "domainneeded")
20 s:option(Flag, "authoritative")
21 s:option(Flag, "boguspriv")
22 s:option(Flag, "filterwin2k")
23 s:option(Flag, "localise_queries")
24 s:option(Value, "local")
25 s:option(Value, "domain")
26 s:option(Flag, "expandhosts")
27 s:option(Flag, "nonegcache")
28 s:option(Flag, "readethers")
29 s:option(Value, "leasefile")
30 s:option(Value, "resolvfile")
31 s:option(Flag, "nohosts").optional = true
32 s:option(Flag, "strictorder").optional = true
33 s:option(Flag, "logqueries").optional = true
34 s:option(Flag, "noresolv").optional = true
35 s:option(Value, "dnsforwardmax").optional = true
36 s:option(Value, "port").optional = true
37 s:option(Value, "ednspacket_max").optional = true
38 s:option(Value, "dhcpleasemax").optional = true
39 s:option(Value, "addnhosts").optional = true
40 s:option(Value, "queryport").optional = true
41 s:option(Flag, "enable_tftp").optional = true
42 s:option(Value, "tftp_root").optional = true
43 s:option(Value, "dhcp_boot").optional = true
44
45 return m