Project

General

Profile

Bug #4553 » bind_zones.xml.txt

Alex B, 03/31/2015 04:54 AM

 
1
<?xml version="1.0" encoding="utf-8" ?>
2
<!DOCTYPE packagegui SYSTEM "./schema/packages.dtd">
3
<?xml-stylesheet type="text/xsl" href="./xsl/package.xsl"?>
4
<packagegui>
5
        <copyright>
6
        <![CDATA[
7
/* $Id$ */
8
/* ========================================================================== */
9
/*
10
    bind_zone.xml
11
    part of pfSense (http://www.pfSense.com)
12
    part of the Bind package for pfSense
13
    Copyright (C) 2013 Juliano Oliveira/Adriano Brancher
14
    All rights reserved.
15

    
16
    Based on m0n0wall (http://m0n0.ch/wall)
17
    Copyright (C) 2003-2006 Manuel Kasper <mk@neon1.net>.
18
    All rights reserved.
19
                                                                              */
20
/* ========================================================================== */
21
/*
22
    Redistribution and use in source and binary forms, with or without
23
    modification, are permitted provided that the following conditions are met:
24

    
25
     1. Redistributions of source code must retain the above copyright notice,
26
        this list of conditions and the following disclaimer.
27

    
28
     2. Redistributions in binary form must reproduce the above copyright
29
        notice, this list of conditions and the following disclaimer in the
30
        documentation and/or other materials provided with the distribution.
31

    
32
    THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES,
33
    INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY
34
    AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
35
    AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY,
36
    OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
37
    SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
38
    INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
39
    CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
40
    ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
41
    POSSIBILITY OF SUCH DAMAGE.
42
                                                                              */
43
/* ========================================================================== */
44
        ]]>
45
        </copyright>
46
    <description>Describe your package here</description>
47
    <requirements>Describe your package requirements here</requirements>
48
    <faq>Currently there are no FAQ items provided.</faq>
49
	<name>bindzone</name>
50
	<version>none</version>
51
	<title>BIND: Zones Settings</title>
52
	<include_file>/usr/local/pkg/bind.inc</include_file>
53
	<menu>
54
		<name>BIND Server</name>
55
		<tooltiptext></tooltiptext>
56
		<section>Services</section>
57
		<configfile>bind.xml</configfile>
58
	</menu>
59
        <tabs>
60
                <tab>
61
                        <text>Settings</text>
62
                        <url>/pkg_edit.php?xml=bind.xml</url>
63
                </tab>
64
                <tab>
65
                        <text>ACLs</text>
66
                        <url>/pkg.php?xml=bind_acls.xml</url>
67
                </tab>
68
                <tab>
69
                        <text>Views</text>
70
                        <url>/pkg.php?xml=bind_views.xml</url>
71
                </tab>
72
                <tab>
73
                        <text>Zones</text>
74
                        <url>/pkg.php?xml=bind_zones.xml&amp;id=0</url>
75
                        <active/>
76
                </tab>
77
                <tab>
78
                        <text>Sync</text>
79
                         <url>/pkg_edit.php?xml=bind_sync.xml</url>
80
                </tab>
81
        </tabs>
82
	<configpath>['installedpackages']['bindzone']['config']</configpath>
83
	<adddeleteeditpagefields>
84
		<columnitem>
85
			<fielddescr>status</fielddescr>
86
			<fieldname>disabled</fieldname>
87
			<listmodeon>Disabled</listmodeon>
88
			<listmodeoff>Enabled</listmodeoff>
89
		</columnitem>
90
		<columnitem>
91
			<fielddescr>Zone Name</fielddescr>
92
			<fieldname>name</fieldname>
93
		</columnitem>
94
		<columnitem>
95
			<fielddescr>Zone Type</fielddescr>
96
			<fieldname>type</fieldname>
97
		</columnitem>
98
		<columnitem>
99
			<fielddescr>View Name</fielddescr>
100
			<fieldname>view</fieldname>
101
		</columnitem>
102
		<columnitem>
103
			<fielddescr>Serial</fielddescr>
104
			<fieldname>serial</fieldname>
105
		</columnitem>
106
		<columnitem>
107
			<fielddescr>Description</fielddescr>
108
			<fieldname>description</fieldname>
109
		</columnitem>
110
		<movable>on</movable>
111
	</adddeleteeditpagefields>
112
	<fields>
113
		<field>
114
		        <type>listtopic</type>
115
                        <name>Domain Zone Configuration</name>
116
                        <fieldname>temp01</fieldname>
117
		</field>
118
		<field>
119
			<fielddescr>Disable this zone</fielddescr>
120
			<fieldname>disabled</fieldname>
121
			<description><![CDATA[Do not include this zone in BIND config files.]]></description>
122
			<type>checkbox</type>
123
		</field>
124
		<field>
125
			<fielddescr>Zone Name</fielddescr>
126
			<fieldname>name</fieldname>
127
			<description><![CDATA[Enter the name for zone (e.g. example.com)<br>
128
						For reverse zones, include zone IP in reverse order. (e.g. 1.168.192)<br>
129
						IN-ADDR.ARPA will be automaticaly included in config files when reverse zone option is checked.]]></description>
130
			<type>input</type>
131
			<required/>
132
		</field>
133
		<field>
134
			<fielddescr>Description</fielddescr>
135
			<fieldname>description</fieldname>
136
			<description>Enter a description for this zone.</description>
137
			<type>input</type>
138
			<size>70</size>
139
		</field>
140
		<field>
141
			<fielddescr>Zone Type</fielddescr>
142
			<fieldname>type</fieldname>
143
			<description><![CDATA[Select zone type.]]></description>
144
		        <type>select</type>
145
					<options>
146
						<option><name>Master</name><value>master</value><enablefields>description</enablefields></option>
147
						<option><name>Slave</name><value>slave</value><enablefields>ttl</enablefields></option>
148
						<option><name>Forward</name><value>forward</value><enablefields>forward</enablefields></option>
149
						<option><name>Redirect</name><value>redirect</value><enablefields>redirect</enablefields></option>
150
					</options>
151
                       <onchange>on_type_zone_changed()</onchange>
152
			<required/>
153
		</field>
154
		<field>
155
			<fielddescr>View</fielddescr>
156
			<fieldname>view</fieldname>
157
			<description><![CDATA[Select the View that this area will belong.]]></description>
158
	    	<type>select_source</type>
159
			<source><![CDATA[$config['installedpackages']['bindviews']['config']]]></source>
160
			<source_name>name</source_name>
161
			<source_value>name</source_value>
162
		</field>
163
		<field>
164
			<fielddescr>Reverse Zone</fielddescr>
165
			<fieldname>reverso</fieldname>
166
			<description>Enable if this is a reverse zone.</description>
167
			<type>checkbox</type>
168
		</field>		
169
		<field>
170
			<fielddescr>IPV6 Reverse Zone</fielddescr>
171
			<fieldname>reversv6o</fieldname>
172
			<description>Enable if this is a IPV6 reverse zone. Evaluated only if Reverse Zone is also selected.</description>
173
			<type>checkbox</type>
174
		</field>
175
		<field>
176
			<fielddescr>Custom Option</fielddescr>
177
			<fieldname>custom</fieldname>
178
			<description>You can put your own custom options here.</description>
179
			<type>textarea</type>
180
			<cols>75</cols>
181
			<rows>5</rows>
182
			<encoding>base64</encoding>
183
		</field>
184
		<field>
185
			<type>listtopic</type>
186
			<name>DNSSEC</name>
187
			<fieldname>temp04</fieldname>
188
		</field>
189
		<field>
190
			<fielddescr>Inline Signing</fielddescr>
191
			<fieldname>dnssec</fieldname>
192
			<enablefields>backupkeys</enablefields>
193
			<description><![CDATA[<a target=_new href='https://kb.isc.org/article/AA-00626/109/Inline-Signing-in-ISC-BIND-9.9.0-Examples.html'>Enable inline DNSSEC signing</a> for this zone.]]></description>
194
			<type>checkbox</type>
195
		</field>
196
		<field>
197
			<fielddescr>backup keys</fielddescr>
198
			<fieldname>backupkeys</fieldname>
199
			<description><![CDATA[Enable this option to include all DNSSEC key files on XML.]]></description>
200
			<type>checkbox</type>
201
		</field>
202
		<field>
203
			<fielddescr>DSSET</fielddescr>
204
			<fieldname>dsset</fieldname>
205
			<description><![CDATA[Digest fingerprint of the Key Signing Key for this zone.<br>
206
						Upload this DSSET to your domain root server.]]></description>
207
			<type>textarea</type>
208
			<cols>75</cols>
209
			<rows>3</rows>
210
			<encoding>base64</encoding>
211
		</field>
212
		<field>
213
		        <type>listtopic</type>
214
                        <name>Slave Zone Configuration </name>
215
                        <fieldname>temp04</fieldname>
216
		</field>
217
		<field>
218
			<fielddescr>Master Zone IP</fielddescr>
219
			<fieldname>slaveip</fieldname>
220
			<description>If this is a slave zone, enter the IP address of the master DNS server.</description>
221
			<type>input</type>
222
		</field>
223
		<field>
224
		        <type>listtopic</type>
225
                        <name>Forward Zone Configuration </name>
226
                        <fieldname>temp04</fieldname>
227
		</field>
228
		<field>
229
			<fielddescr>Forwarders</fielddescr>
230
			<fieldname>forwarders</fieldname>
231
			<description>Enter forwarder IPs for this domain. Separate by semicolons (;).</description>
232
			<type>input</type>
233
			<size>70</size>
234
		</field>
235

    
236
		<field>
237
		        <type>listtopic</type>
238
                        <name>Master Zone Configuration </name>
239
                        <fieldname>temp03</fieldname>
240
		</field>
241
		<field>
242
			<fielddescr>TLL</fielddescr>
243
			<fieldname>tll</fieldname>
244
			<description>Default expiration time of all resource records without their own TTL value</description>
245
			<type>input</type>
246
		</field>
247
		<field>
248
			<fielddescr>Name Server</fielddescr>
249
			<fieldname>nameserver</fieldname>
250
			<description>Enter nameserver for this zone</description>
251
			<type>input</type>
252
		</field>
253
		<field>
254
			<fielddescr>Base Domain IP</fielddescr>
255
			<fieldname>ipns</fieldname>
256
			<description>Enter IP address for base domain lookup. Ex: nslookup mydomain.com</description>
257
			<type>input</type>
258
		</field>
259
		<field>
260
			<fielddescr>Mail Admin Zone</fielddescr>
261
			<fieldname>mail</fieldname>
262
			<description>Enter mail admin zone.</description>
263
			<type>input</type>
264
		</field>
265
		<field>
266
			<fielddescr>Serial</fielddescr>
267
			<fieldname>serial</fieldname>
268
			<description>Parsed value for the slave to update the DNS zone</description>
269
			<type>input</type>
270
		</field>
271
		<field>
272
			<fielddescr>Refresh</fielddescr>
273
			<fieldname>refresh</fieldname>
274
			<description>Slave refresh (1 day)</description>
275
			<type>input</type>
276
	                	<default_value>1d</default_value>
277
		</field>
278
		<field>
279
			<fielddescr>Retry</fielddescr>
280
			<fieldname>retry</fieldname>
281
			<description>Slave retry time in case of a problem (2 hours)</description>
282
			<type>input</type>
283
	                	<default_value>2h</default_value>
284
		</field>
285
		<field>
286
			<fielddescr>Expire</fielddescr>
287
			<fieldname>expire</fieldname>
288
			<description>Slave expiration time (4 weeks)</description>
289
			<type>input</type>
290
	                	<default_value>4w</default_value>
291
		</field>
292
		<field>
293
			<fielddescr>Minimum</fielddescr>
294
			<fieldname>minimum</fieldname>
295
			<description>Maximum caching time in case of failed lookups (1 hour)</description>
296
			<type>input</type>
297
	                	<default_value>1h</default_value>
298
		</field>
299
		<field>
300
			<fielddescr>Allow-update</fielddescr>
301
			<fieldname>allowupdate</fieldname>
302
			<description><![CDATA[Select(CTRL+click) who are allowed to send updates to this zone.<br>
303
						Allow-update defines a match list eg IP address(es) that are allowed to submit dynamic updates for 'master' zones ie it enables Dynamic DNS (DDNS).]]></description>
304
	    	<type>select_source</type>
305
			<source><![CDATA[$config['installedpackages']['bindacls']['config']]]></source>
306
			<source_name>name</source_name>
307
			<source_value>name</source_value>
308
			<multiple/>
309
			<size>03</size>
310
		</field>
311
		<field>
312
			<fielddescr>Allow-query</fielddescr>
313
			<fieldname>allowquery</fieldname>
314
			<description><![CDATA[Select(CTRL+click) who are allowed to query this zone.<br>
315
			Allow-query defines an match list of IP address(es) which are allowed to issue queries to the server.]]></description>
316
			<type>select_source</type>
317
			<source><![CDATA[$config['installedpackages']['bindacls']['config']]]></source>
318
			<source_name>name</source_name>
319
			<source_value>name</source_value>
320
			<multiple/>
321
			<size>03</size>
322
		</field>
323
		<field>
324
			<fielddescr>Allow-transfer</fielddescr>
325
			<fieldname>allowtransfer</fieldname>
326
			<description><![CDATA[Select(CTRL+click) who are allowed to copy this zone.<br>
327
						Allow-transfer defines a match list eg IP address(es) that are allowed to transfer (copy) the zone information from the server (master or slave for the zone). While on its face this may seem an excessively friendly default, DNS data is essentially public (that's why its there) and the bad guys can get all of it anyway. However if the thought of anyone being able to transfer your precious zone file is repugnant, or (and this is far more significant) you are concerned about possible DoS attack initiated by XFER requests, then use the following policy.]]></description>
328
				    	<type>select_source</type>
329
			<source><![CDATA[$config['installedpackages']['bindacls']['config']]]></source>
330
			<source_name>name</source_name>
331
			<source_value>name</source_value>
332
			<multiple/>
333
			<size>03</size>
334
		</field>
335
		<field>
336
		        <type>listtopic</type>
337
                        <name>Zone Domain records</name>
338
                        <fieldname>temp02</fieldname>
339
		</field>
340
                <field>
341
                        <fielddescr>Enter Domain records.</fielddescr>
342
                        <description><![CDATA[<b>"Record"</b> is the name or last octet of IP. Example: www or pop<br>
343
                        		 <b>"Type"</b> is the type of the record Sample: A CNAME MX NS<br>
344
                        		 <b>"Priority"</b> in used only in mx records to define its priority<br>
345
                        		 <b>"Alias or IP address"</b> is the destination host or ip address.<br><br>
346
                        		 You can order elements on this list with drag and drop between columns.]]></description>
347
                        <fieldname>none</fieldname>
348
                    <type>rowhelper</type>
349
                    <rowhelper>
350
                        <rowhelperfield>
351
                            <fielddescr>Record</fielddescr>
352
                            <fieldname>hostname</fieldname>
353
                            <description>Enter the Host Name (ex: www)</description>
354
                            <type>input</type>
355
                            <size>10</size>
356
                        </rowhelperfield>
357
                        <rowhelperfield>
358
			<fielddescr>Type</fielddescr>
359
			<fieldname>hosttype</fieldname>
360
			<description>Select Type Host</description>
361
		        <type>select</type>
362
                        	<options>
363
                                <option><name>A</name><value>A</value></option>
364
                                <option><name>AAAA</name><value>AAAA</value></option>
365
                                <option><name>DNAME</name><value>DNAME</value></option>
366
                                <option><name>MX</name><value>MX</value></option>
367
                                <option><name>CNAME</name><value>CNAME</value></option>
368
                                <option><name>NS</name><value>NS</value></option>
369
                                <option><name>LOC</name><value>LOC</value></option>
370
                                <option><name>SRV</name><value>SRV</value></option>
371
                                <option><name>PTR</name><value>PTR</value></option>
372
                                <option><name>TXT</name><value>TXT</value></option>
373
                                <option><name>SPF</name><value>SPF</value></option>
374
                        </options>
375
                        </rowhelperfield>
376
                        <rowhelperfield>
377
                            <fielddescr>Priority</fielddescr>
378
                            <fieldname>hostvalue</fieldname>
379
                            <description>MX 10 or 20</description>
380
                            <type>input</type>
381
                            <size>3</size>
382
                        </rowhelperfield>
383
                        <rowhelperfield>
384
                            <fielddescr>Alias or IP address</fielddescr>
385
                            <fieldname>hostdst</fieldname>
386
                            <description>Enter the IP address or FQDN destination for domain MX (ex: 10.31.11.1 or mail.example.com)</description>
387
                            <type>input</type>
388
                            <size>35</size>
389
                        </rowhelperfield>
390
                        <movable>on</movable>
391
                    </rowhelper>
392
                </field>
393
		<field>
394
			<fieldname>regdhcpstatic</fieldname>
395
			<fielddescr>Register DHCP static mappings</fielddescr>
396
			<description>If this option is set, then DHCP static mappings will be registered in DNS, so that their name can be resolved.</description>
397
			<type>checkbox</type>
398
        </field>
399
		<field>
400
			<type>listtopic</type>
401
			<name>Custom Zone Domain records</name>
402
			<fieldname>temp02</fieldname>
403
		</field>
404
		<field>
405
			<fielddescr></fielddescr>
406
			<fieldname>customzonerecords</fieldname>
407
			<description><![CDATA[Paste any custom zone records to include in this zone.<br>
408
							This can be used for a fast migration setup.]]></description>
409
	                <type>textarea</type>
410
                        <cols>84</cols>
411
                        <rows>10</rows>
412
		<encoding>base64</encoding>
413
		<dontdisplayname/>
414
		<usecolspan2/>
415
		</field>
416
		<field>
417
			<type>listtopic</type>
418
			<name>Resulting zone config file</name>
419
		</field>
420
		<field>
421
			<fielddescr></fielddescr>
422
			<fieldname>resultconfig</fieldname>
423
			<description>Resulting BIND config file for this zone.</description>
424
	                <type>textarea</type>
425
                        <cols>84</cols>
426
                        <rows>15</rows>
427
		<encoding>base64</encoding>
428
		<dontdisplayname/>
429
		<usecolspan2/>
430
		</field>
431
	</fields>
432
        <custom_php_after_form_command>
433
                bind_print_javascript_type_zone2();
434
        </custom_php_after_form_command>
435
        <custom_php_after_head_command>
436
                bind_print_javascript_type_zone();
437
        </custom_php_after_head_command>
438
        <custom_php_command_before_form>
439
        </custom_php_command_before_form>
440
	<custom_php_validation_command>
441
		if ($_POST['type']=="master" and $_POST['serial']=="")
442
			$_POST['serial']=(date("U")+ 1000000000);
443
		bind_zone_validate($_POST, $input_errors);
444
	</custom_php_validation_command>
445
	<custom_delete_php_command>
446
	        bind_sync();
447
	</custom_delete_php_command>	
448
        <custom_php_resync_config_command>
449
	        bind_sync();
450
        </custom_php_resync_config_command>
451
</packagegui>
(2-2/2)