From 5e4c4ad11c52b25d84459ab85ed7e014925a1296 Mon Sep 17 00:00:00 2001 From: hickert Date: Mon, 31 Mar 2008 06:00:38 +0000 Subject: [PATCH] closes #382 - Fixed DNS nSRecord problem. Server->Service->Zones->Edit->Global-Settings: nSRecords were not kept. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10071 594d385d-05f5-0310-b6e9-bd551577e9d8 --- .../dns/admin/systems/services/dns/class_servDNSeditZone.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc index 16ce887e8..315771c39 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc @@ -91,7 +91,7 @@ class servdnseditZone extends plugin $tmp2[$tmp[0]] = $rec; unset($this->Records[$key]); } - if($rec['type'] == "nSRecord"){ + if($rec['type'] == "nSRecord" && preg_match("/".normalizePreg($this->sOAprimary)."/",$rec['value'])){ unset($this->Records[$key]); } } -- 2.30.2