Code

Fixed saving of reverse records
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 5 Oct 2007 07:27:05 +0000 (07:27 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Fri, 5 Oct 2007 07:27:05 +0000 (07:27 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7447 594d385d-05f5-0310-b6e9-bd551577e9d8

include/functions_dns.inc

index e83b30a1b3c6540d4790fad832ced55a00642988..e1cda20a0af871f8972d184bdf70ac72d122c6ce 100644 (file)
@@ -570,7 +570,7 @@ function getDNSHostEntriesDiff($config,$oldName,$newEntry,$newName)
      *  like pTRRecord or CNAMERecord
      */
     if($rec['type']  == "pTRRecord"){
-      $PTRdn= "relativeDomainName=".$rec['value'].",".$baseDn;
+      $PTRdn= "relativeDomainName=".FlipIP($rec['value']).",".$baseDn;
       $ptrObj = $baseObj;
       $reverseName = getNameFromMix($reverseNameMix);
       $ptrObj['zoneName']           = $reverseName;
@@ -579,7 +579,7 @@ function getDNSHostEntriesDiff($config,$oldName,$newEntry,$newName)
       }else{
         $ptrObj['pTRRecord']          = preg_replace("/\.\.$/",".",$newName.".");
       }
-      $ptrObj['relativeDomainName'] = $rec['value'];
+      $ptrObj['relativeDomainName'] = FlipIP($rec['value']);
     
       $add[$PTRdn] = $ptrObj;
     }else