Commit 8a46bee9 authored by Florian Schaal's avatar Florian Schaal
Browse files

allow multiple master-server for a bind-slave

parent dad304a4
......@@ -421,6 +421,7 @@ if($_POST['create'] == 1) {
"dnssec_wanted" => $enable_dnssec
);
$dns_soa_id = $app->db->datalogInsert('dns_soa', $insert_data, 'id');
if($dns_soa_id > 0) $app->plugin->raiseEvent('dns:wizard:on_after_insert', $dns_soa_id);
// Insert the dns_rr records
if(is_array($dns_rr) && $dns_soa_id > 0) {
......
......@@ -108,10 +108,16 @@ $form["tabs"]['dns_slave'] = array (
'ns' => array (
'datatype' => 'VARCHAR',
'formtype' => 'TEXT',
/*
'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9\.]{1,255}$/',
'errmsg'=> 'ns_error_regex'),
),
*/
'validators' => array ( 0 => array ( 'type' => 'ISIP',
'separator' => ',',
'errmsg'=> 'ns_error_regex'),
),
'default' => '',
'value' => '',
'width' => '30',
......
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'There is already a record for this zone.';
$wb['origin_error_regex'] = 'Zone has a invalid format.';
$wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Вече има запис за тази зона.
$wb['origin_error_regex'] = 'Името на зоната е в грешен формат.';
$wb['ns_error_regex'] = 'NS е в грешен формат.';
$wb['eg_domain_tld'] = 'примерно domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 формата изглейда така: 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Já existe um registro igual para esta zona.';
$wb['origin_error_regex'] = 'Zona inválida.';
$wb['ns_error_regex'] = 'Registro NS inválido.';
$wb['eg_domain_tld'] = 'ex.: dominio.com.';
$wb['ipv4_form_txt'] = 'Formato IPv4 - ex.: 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Zona dns secundária';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Il y a déjà un enregistrement pour cette zone.';
$wb['origin_error_regex'] = 'Le format de la zone est invalide.';
$wb['ns_error_regex'] = 'Le format de l\'enregistrement NS est invalide.';
$wb['eg_domain_tld'] = 'ex. domain.tld.';
$wb['ipv4_form_txt'] = 'Format IPv4 - ex. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Zone DNS secondaire';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Pro tuto zónu již existuje záznam.';
$wb['origin_error_regex'] = 'Zóna má neplatný formát.';
$wb['ns_error_regex'] = 'NS má neplatný formát.';
$wb['eg_domain_tld'] = 'např. domena.cz';
$wb['ipv4_form_txt'] = 'IPV4 formát, např. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Sekundární DNS zóna';
?>
......@@ -13,5 +13,5 @@ $wb['origin_error_unique'] = 'Es existiert bereits ein Eintrag für diese Zone.'
$wb['origin_error_regex'] = 'Zone hat ein ungültiges Format.';
$wb['ns_error_regex'] = 'NS hat ein ungültiges Format.';
$wb['eg_domain_tld'] = 'Format: domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 Format: 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
?>
......@@ -13,5 +13,5 @@ $wb['origin_error_unique'] = 'Der findes allerede en post for denne zone.';
$wb['origin_error_regex'] = 'Zone har et ugyldigt format.';
$wb['ns_error_regex'] = 'NS har et ugyldigt format.';
$wb['eg_domain_tld'] = 'f.eks. domæne.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - f.eks. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Υπάρχει ήδη μια εγγραφή για
$wb['origin_error_regex'] = 'Η ζώνη δεν έχει έγκυρη μορφοποίηση.';
$wb['ns_error_regex'] = 'Ο NS δεν έχει έγκυρη μορφοποίηση.';
$wb['eg_domain_tld'] = 'π.χ. domain.tld.';
$wb['ipv4_form_txt'] = 'μορφή IPv4 - π.χ. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -13,5 +13,5 @@ $wb["origin_error_unique"] = 'There is already a record for this zone.';
$wb["origin_error_regex"] = 'Zone has a invalid format.';
$wb["ns_error_regex"] = 'NS has a invalid format.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
?>
......@@ -2,7 +2,7 @@
$wb['active_txt'] = 'Habilitado';
$wb['client_txt'] = 'Cliente';
$wb['eg_domain_tld'] = 'eje. dominio.tld.';
$wb['ipv4_form_txt'] = 'Formato IPv4 - eje. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['ns_error_regex'] = 'El registro NS contiene un formato inválido.';
$wb['ns_txt'] = 'NS (Dirección IP)';
$wb['origin_error_empty'] = 'Zona vacía.';
......
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'There is already a record for this zone.';
$wb['origin_error_regex'] = 'Zone has a invalid format.';
$wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Il y a déjà un enregistrement pour cette zone.';
$wb['origin_error_regex'] = 'Le format de la zone est invalide.';
$wb['ns_error_regex'] = 'Le format de l’enregistrement NS est invalide.';
$wb['eg_domain_tld'] = 'ex. domain.tld.';
$wb['ipv4_form_txt'] = 'Format IPv4 - ex. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Zone DNS secondaire';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Već postoji zapis za ovu zonu.';
$wb['origin_error_regex'] = 'Zona je u pogrešnom formatu.';
$wb['ns_error_regex'] = 'NS je u pogrešnom formatu.';
$wb['eg_domain_tld'] = 'npr. domena.tld.';
$wb['ipv4_form_txt'] = 'IPv4 forma - npr. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Sekundarne DNS zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'There is already a record for this zone.';
$wb['origin_error_regex'] = 'Zone has a invalid format.';
$wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Sudah ada record untuk zona ini.';
$wb['origin_error_regex'] = 'Zona memiliki format yang tidak valid.';
$wb['ns_error_regex'] = 'NS memiliki format yang tidak valid.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'There is already a record for this zone.';
$wb['origin_error_regex'] = 'Zone has a invalid format.';
$wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'There is already a record for this zone.';
$wb['origin_error_regex'] = 'Zone has a invalid format.';
$wb['ns_error_regex'] = 'NS has a invalid format.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
......@@ -12,6 +12,6 @@ $wb['origin_error_unique'] = 'Er is al een record for deze zone.';
$wb['origin_error_regex'] = 'Zone heeft een ongeldig formaat.';
$wb['ns_error_regex'] = 'NS heeft een ongeldig formaat.';
$wb['eg_domain_tld'] = 'e.g. domain.tld.';
$wb['ipv4_form_txt'] = 'IPv4 form - e.g. 1.2.3.4';
$wb['ipv4_form_txt'] = 'Separate multiple IPs with commas';
$wb['secondary_zone_txt'] = 'Secondary DNS Zone';
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment