From: hickert Date: Mon, 31 Mar 2008 06:00:38 +0000 (+0000) Subject: closes #382 - Fixed DNS nSRecord problem. Server->Service->Zones->Edit->Global-Settin... X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=5e4c4ad11c52b25d84459ab85ed7e014925a1296;p=gosa.git 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 --- 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]); } }