From d42160ef005f3912ac1d9335bfb81c7a39ce50de Mon Sep 17 00:00:00 2001 From: hickert Date: Fri, 31 Aug 2007 09:45:06 +0000 Subject: [PATCH] Updated dns handling for full qualified domain names, used for hosts. git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7176 594d385d-05f5-0310-b6e9-bd551577e9d8 --- include/functions_dns.inc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/include/functions_dns.inc b/include/functions_dns.inc index 6fb7a5bb3..694961da0 100644 --- a/include/functions_dns.inc +++ b/include/functions_dns.inc @@ -574,7 +574,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; -- 2.30.2