summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: dac5509)
raw | patch | inline | side by side (parent: dac5509)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Sep 2008 06:33:31 +0000 (06:33 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Thu, 11 Sep 2008 06:33:31 +0000 (06:33 +0000) |
-Fixed problem with DNS Host settings detection.
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12410 594d385d-05f5-0310-b6e9-bd551577e9d8
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@12410 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc | patch | blob | history |
diff --git a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc
index bc31985908beb9a88cf3a5012e3fbeab1985ab73..c3b17f671af56d44eb802ab0322dbbeb59e8cce7 100644 (file)
*/
$zN = trim($attrs['zoneName'][0],".");
$nN = trim($name,".");
-
$testname = $attrs['relativeDomainName'][0].".".$zN;
-
+
/* Check given host name with zone settings
*/
- if(preg_match("/".normalizePreg($testname)."[\.]*$/",$nN)){
+ if(preg_match("/".normalizePreg($testname)."[\.]*$/",$nN) || $attrs['relativeDomainName'][0] == $name){
$ret['exists'] = true;
$ret['zoneName'] = $id_tmp;
foreach(array("dNSClass","dNSTTL") as $atr){