From 9a7b09c87b3152b87ed7a37c0a1740d38ea99419 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 11 Sep 2008 06:33:31 +0000 Subject: [PATCH] Updated DNS -Fixed problem with DNS Host settings detection. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12410 594d385d-05f5-0310-b6e9-bd551577e9d8 --- gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc index bc3198590..c3b17f671 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc @@ -395,12 +395,11 @@ class DNS */ $zN = trim($attrs['zoneName'][0],"."); $nN = trim($name,"."); - $testname = $attrs['relativeDomainName'][0].".".$zN; - + /* Check given host name with zone settings */ - if(preg_match("/".normalizePreg($testname)."[\.]*$/",$nN)){ + if(preg_match("/".normalizePreg($testname)."[\.]*$/",$nN) || $attrs['relativeDomainName'][0] == $name){ $ret['exists'] = true; $ret['zoneName'] = $id_tmp; foreach(array("dNSClass","dNSTTL") as $atr){ -- 2.30.2