diff options
Diffstat (limited to 'config/bind/bind_zones.xml')
-rw-r--r-- | config/bind/bind_zones.xml | 37 |
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, &$input_errors); </custom_php_validation_command> <custom_delete_php_command> |