From: cajus Date: Fri, 5 Oct 2007 07:27:05 +0000 (+0000) Subject: Fixed saving of reverse records X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=58b7eff0138769bd10d717c1ce465f3882bfbf9c;p=gosa.git Fixed saving of reverse records git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7447 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_dns.inc b/include/functions_dns.inc index e83b30a1b..e1cda20a0 100644 --- a/include/functions_dns.inc +++ b/include/functions_dns.inc @@ -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