From: cajus Date: Fri, 5 Oct 2007 07:27:26 +0000 (+0000) Subject: Fixed DNS X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=0436b800d6a242cff7dc2a694c8ed0b6ae668005;p=gosa.git Fixed DNS git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7448 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_dns.inc b/include/functions_dns.inc index 4365eb7d4..7ce7c33ef 100644 --- a/include/functions_dns.inc +++ b/include/functions_dns.inc @@ -567,7 +567,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; @@ -576,7 +576,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