From 58b7eff0138769bd10d717c1ce465f3882bfbf9c Mon Sep 17 00:00:00 2001 From: cajus Date: Fri, 5 Oct 2007 07:27:05 +0000 Subject: [PATCH] Fixed saving of reverse records git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7447 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_dns.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 -- 2.30.2