Code

Updated DNS
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 06:33:31 +0000 (06:33 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 11 Sep 2008 06:33:31 +0000 (06:33 +0000)
-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

index bc31985908beb9a88cf3a5012e3fbeab1985ab73..c3b17f671af56d44eb802ab0322dbbeb59e8cce7 100644 (file)
@@ -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){