aboutsummaryrefslogtreecommitdiffstats
path: root/config/bind/bind_zones.xml
diff options
context:
space:
mode:
authorMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-17 16:12:45 -0300
committerMarcello Coutinho <marcellocoutinho@gmail.com>2013-10-17 16:12:45 -0300
commitff195c7cf770dbd9385c22feb9a69289c5cfae23 (patch)
tree332533bbc74015df106ef62813011b34f8f9891e /config/bind/bind_zones.xml
parente141dd9241884c1d0321a48df58ffcd7ba07c6e6 (diff)
downloadpfsense-packages-ff195c7cf770dbd9385c22feb9a69289c5cfae23.tar.gz
pfsense-packages-ff195c7cf770dbd9385c22feb9a69289c5cfae23.tar.bz2
pfsense-packages-ff195c7cf770dbd9385c22feb9a69289c5cfae23.zip
bind - add widget, forward zone, rndc config and check slave zone dir permissions
Diffstat (limited to 'config/bind/bind_zones.xml')
-rw-r--r--config/bind/bind_zones.xml37
1 files changed, 24 insertions, 13 deletions
diff --git a/config/bind/bind_zones.xml b/config/bind/bind_zones.xml
index 11cfb0e2..508056c0 100644
--- a/config/bind/bind_zones.xml
+++ b/config/bind/bind_zones.xml
@@ -94,6 +94,10 @@
<fieldname>view</fieldname>
</columnitem>
<columnitem>
+ <fielddescr>Serial</fielddescr>
+ <fieldname>serial</fieldname>
+ </columnitem>
+ <columnitem>
<fielddescr>Description</fielddescr>
<fieldname>description</fieldname>
</columnitem>
@@ -119,18 +123,11 @@
<fieldname>type</fieldname>
<description>Select zone type</description>
<type>select</type>
- <options>
- <option>
- <name>Master</name>
- <value>master</value>
- <enablefields>description</enablefields>
- </option>
- <option>
- <name>Slave</name>
- <value>slave</value>
- <enablefields>ttl</enablefields>
- </option>
- </options>
+ <options>
+ <option><name>Master</name><value>master</value><enablefields>description</enablefields></option>
+ <option><name>Slave</name><value>slave</value><enablefields>ttl</enablefields></option>
+ <option><name>Forward</name><value>forward</value><enablefields>forward</enablefields></option>
+ </options>
<onchange>on_type_zone_changed()</onchange>
<required/>
</field>
@@ -178,6 +175,19 @@
</field>
<field>
<type>listtopic</type>
+ <name>Forward Zone Configuration </name>
+ <fieldname>temp04</fieldname>
+ </field>
+ <field>
+ <fielddescr>Forwarders</fielddescr>
+ <fieldname>forwarders</fieldname>
+ <description>Enter forwarders IPs for this domain. Separate by semi-colons (;).</description>
+ <type>input</type>
+ <size>60</size>
+ </field>
+
+ <field>
+ <type>listtopic</type>
<name>Master Zone Configuration </name>
<fieldname>temp03</fieldname>
</field>
@@ -352,7 +362,8 @@
<custom_php_command_before_form>
</custom_php_command_before_form>
<custom_php_validation_command>
- $_POST['serial']=(date("U")+ 1000000000);
+ if ($_POST['type']=="master")
+ $_POST['serial']=(date("U")+ 1000000000);
bind_zone_validate($_POST, &amp;$input_errors);
</custom_php_validation_command>
<custom_delete_php_command>