86a5a474c985f271483f0131a3a258c47e10380e
[project/luci.git] / modules / admin-core / root / lib / uci / schema / default / dhcp
1 package dhcp
2
3 config package
4         option title 'Dnsmasq DHCPd configuration'
5
6 config section
7         option name 'dnsmasq'
8         option package 'dhcp'
9         option title 'General Settings'
10         option unique true
11         option required true
12         option dynamic true
13
14 config variable
15         option name 'domainneeded'
16         option section 'dhcp.dnsmasq'
17         option title 'Domain required'
18         option description "Don't forward DNS-Requests without DNS-Name"
19         option datatype boolean
20
21 config variable
22         option name 'authoritative'
23         option section 'dhcp.dnsmasq'
24         option title 'Authoritative'
25         option description 'This is the only DHCP in the local network'
26         option datatype boolean
27
28 config variable
29         option name 'boguspriv'
30         option section 'dhcp.dnsmasq'
31         option title 'Filter private'
32         option description "Don't forward reverse lookups for local networks"
33         option datatype boolean
34
35 config variable
36         option name 'filterwin2k'
37         option section 'dhcp.dnsmasq'
38         option title 'Filter useless'
39         option description 'Filter useless DNS-queries of Windows-systems'
40         option datatype boolean
41
42 config variable
43         option name 'localise_queries'
44         option section 'dhcp.dnsmasq'
45         option title 'Localise queries'
46         option description 'Localises the hostname depending on its subnet'
47         option datatype boolean
48
49 config variable
50         option name 'local'
51         option section 'dhcp.dnsmasq'
52         option title 'Local Server'
53
54 config variable
55         option name 'domain'
56         option section 'dhcp.dnsmasq'
57         option title 'Local Domain'
58
59 config variable
60         option name 'expandhosts'
61         option section 'dhcp.dnsmasq'
62         option title 'Expand Hosts'
63         option description 'adds domain names to hostentries in the resolv file'
64         option datatype boolean
65
66 config variable
67         option name 'nonegcache'
68         option section 'dhcp.dnsmasq'
69         option title "don't cache unknown"
70         option description 'prevents caching of negative DNS-replies'
71         option datatype boolean
72
73 config variable
74         option name 'readethers'
75         option section 'dhcp.dnsmasq'
76         option title 'Use /etc/ethers'
77         option description 'Read /etc/ethers to configure the DHCP-Server'
78         option datatype boolean
79
80 config variable
81         option name 'leasefile'
82         option section 'dhcp.dnsmasq'
83         option title 'Leasefile'
84         option description 'file where given DHCP-leases will be stored'
85
86 config variable
87         option name 'resolvfile'
88         option section 'dhcp.dnsmasq'
89         option title 'Resolvfile'
90         option description 'local DNS file'
91
92 config variable
93         option name 'nohosts'
94         option section 'dhcp.dnsmasq'
95         option title 'Ignore /etc/hosts '
96         option datatype boolean
97
98 config variable
99         option name 'strictorder'
100         option section 'dhcp.dnsmasq'
101         option title 'Strict order'
102         option description 'DNS-Server will be queried in the order of the resolvfile'
103         option datatype boolean
104
105 config variable
106         option name 'logqueries'
107         option section 'dhcp.dnsmasq'
108         option title 'Log queries'
109         option datatype boolean
110
111 config variable
112         option name 'noresolv'
113         option section 'dhcp.dnsmasq'
114         option title 'Ignore resolve file'
115         option datatype boolean
116
117 config variable
118         option name 'dnsforwardmax'
119         option section 'dhcp.dnsmasq'
120         option title 'concurrent queries'
121         option datatype uint
122
123 config variable
124         option name 'port'
125         option section 'dhcp.dnsmasq'
126         option title 'DNS-Port'
127         option datatype port
128
129 config variable
130         option name 'ednspacket_max'
131         option section 'dhcp.dnsmasq'
132         option title 'ednspacket_max'
133         option datatype uint
134
135 config variable
136         option name 'dhcpleasemax'
137         option section 'dhcp.dnsmasq'
138         option title 'max. DHCP -Leases'
139         option datatype uint
140
141 config variable
142         option name 'addnhosts'
143         option section 'dhcp.dnsmasq'
144         option title 'additional hostfile'
145         option datatype file
146
147 config variable
148         option name 'queryport'
149         option section 'dhcp.dnsmasq'
150         option title 'query port'
151         option datatype port
152
153 config variable
154         option name 'enable_tftp'
155         option section 'dhcp.dnsmasq'
156         option title 'Enable builtin TFTP-Server'
157         option datatype boolean
158
159 config variable
160         option name 'tftp_root'
161         option section 'dhcp.dnsmasq'
162         option title 'TFTP-Server root directory'
163         option datatype directory
164
165 config variable
166         option name 'dhcp_boot'
167         option section 'dhcp.dnsmasq'
168         option title 'DHCP Boot image'
169
170
171 config section
172         option name 'dhcp'
173         option package 'dhcp'
174         option title 'DHCP interface configuration'
175         option dynamic true
176
177 config variable
178         option name 'interface'
179         option section 'dhcp.dhcp'
180         option title 'Interface'
181         option required true
182         option type reference
183         list   valueof network.interface
184         list   valueof network.alias
185
186 config variable
187         option name 'start'
188         option section 'dhcp.dhcp'
189         option title 'Start'
190         option description 'first address (last octet)'
191         option datatype uint
192
193 config variable
194         option name 'limit'
195         option section 'dhcp.dhcp'
196         option title 'Limit'
197         option description 'number of leased addresses -1'
198         option datatype uint
199
200 config variable
201         option name 'leasetime'
202         option section 'dhcp.dhcp'
203         option title 'Leasetime'
204
205 config variable
206         option name 'dynamicdhcp'
207         option section 'dhcp.dhcp'
208         option title 'Dynamic DHCP '
209         option datatype boolean
210
211 config variable
212         option name 'name'
213         option section 'dhcp.dhcp'
214         option title 'Name'
215
216 config variable
217         option name 'ignore'
218         option section 'dhcp.dhcp'
219         option title 'Ignore interface'
220         option description 'disable DHCP for this interface'
221         option datatype boolean
222
223 config variable
224         option name 'netmask'
225         option section 'dhcp.dhcp'
226         option title 'IPv4-Netmask'
227         option datatype ip4addr
228
229 config variable
230         option name 'force'
231         option section 'dhcp.dhcp'
232         option title 'Force'
233         option datatype boolean
234
235 config variable
236         option name 'dhcp_option'
237         option section 'dhcp.dhcp'
238         option title 'DHCP-Options'
239         option description 'See "dnsmasq --help dhcp" for a list of available options.'
240         option type lazylist