From: hickert Date: Fri, 31 Aug 2007 09:45:24 +0000 (+0000) Subject: Updated client dns handling X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=8fa60d0f7204729194891c44b6f9941e6bd4aee4;p=gosa.git Updated client dns handling git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7177 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/include/functions_dns.inc b/include/functions_dns.inc index 42f051964..c1ef6fbd7 100644 --- a/include/functions_dns.inc +++ b/include/functions_dns.inc @@ -571,7 +571,11 @@ function getDNSHostEntriesDiff($config,$oldName,$newEntry,$newName) $ptrObj = $baseObj; $reverseName = getNameFromMix($reverseNameMix); $ptrObj['zoneName'] = $reverseName; - $ptrObj['pTRRecord'] = preg_replace("/\.\.$/",".",$newName.".".$zoneName."."); + if(!preg_match("/\.$/",$newName)){ + $ptrObj['pTRRecord'] = preg_replace("/\.\.$/",".",$newName.".".$zoneName."."); + }else{ + $ptrObj['pTRRecord'] = preg_replace("/\.\.$/",".",$newName."."); + .} $ptrObj['relativeDomainName'] = $rec['value']; $add[$PTRdn] = $ptrObj;