Code

Updated terminal dns.
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Feb 2009 13:56:10 +0000 (13:56 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 3 Feb 2009 13:56:10 +0000 (13:56 +0000)
-dNSTTL is now optional

git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13379 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc

index 4aa743a60474e2c24c63c2931f3b1d3029606cff..5976e813a1278f923eb6450a3f330709a3f46043 100644 (file)
@@ -335,7 +335,7 @@ class DNS
     $ret['RECORDS']   = array();
     $ret['dNSClass']  = "IN";
     $ret['zoneName']  = "";
-    $ret['dNSTTL']    = "7440";
+    $ret['dNSTTL']    = "";
     $ret['exists']    = false;
 
     $ldap = $config->get_ldap_link();
@@ -537,7 +537,9 @@ class DNS
      */
     $baseObj =  array();
     $baseObj['objectClass']       = array("top","dNSZone");
-    $baseObj['dNSTTL']            = $newEntry['dNSTTL'];
+    if(!empty($newEntry['dNSTTL'])){
+      $baseObj['dNSTTL']            = $newEntry['dNSTTL'];
+    }
     $baseObj['dNSClass']          = $newEntry['dNSClass'];
     $baseObj['zoneName']          = $zoneName; 
     $baseObj['relativeDomainName']= $newName;