Code

Updated arpa mapping
authorcajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 7 Dec 2009 12:43:28 +0000 (12:43 +0000)
committercajus <cajus@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 7 Dec 2009 12:43:28 +0000 (12:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@14872 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dns/admin/systems/services/dns/class_servDNS.inc
gosa-plugins/dns/admin/systems/services/dns/class_servDNSeditZone.inc

index c436a0708f014999dd9893a480cc5cde0361f04b..b1a2f38b63a6ebe2a2fda82a364c1219442148ed 100644 (file)
@@ -308,8 +308,8 @@ class servdns extends goService
 
     /* Add Records which uses this reverse zone
      */
-    if(isset($zones[$rev.".in-addr.arpa"])){
-      $used = array_merge($used,$zones[$rev.".in-addr.arpa"]);
+    if(isset($zones[$rev.".in-addr.arpa."])){
+      $used = array_merge($used,$zones[$rev.".in-addr.arpa."]);
     } 
 
     /* There are still entries using this configuration
@@ -452,7 +452,7 @@ class servdns extends goService
     foreach($tmp['del'] as $dn => $del){
 
       $for = $del['InitialzoneName'];
-      $rev = DNS::FlipIp($del['InitialReverseZone']).".in-addr.arpa";
+      $rev = DNS::FlipIp($del['InitialReverseZone']).".in-addr.arpa.";
 
       $ldap->cd($dn);
       $ldap->rmdir_recursive($dn);
index cc1daff377d33244e30bcc1e052ac14e65bf73e4..d31bedd0e53a4be734c923e6ba03fa2fcec5f237 100644 (file)
@@ -115,7 +115,7 @@ class servdnseditZone extends plugin
       /* Check if this used, in this case disable forward and reverse configuration */
       $tmp = $this->getUsedZoneNames();
       $this->Zone_is_used = FALSE;
-      if(isset($tmp[DNS::FlipIp($this->InitialReverseZone).".in-addr.arpa"])){
+      if(isset($tmp[DNS::FlipIp($this->InitialReverseZone).".in-addr.arpa."])){
         $this->Zone_is_used = TRUE;
       }
     }