From: hickert Date: Tue, 3 Feb 2009 13:56:10 +0000 (+0000) Subject: Updated terminal dns. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9618961e8f214a1af2d420ca16754094e8e4aca6;p=gosa.git Updated terminal dns. -dNSTTL is now optional git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13379 594d385d-05f5-0310-b6e9-bd551577e9d8 --- 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 4aa743a60..5976e813a 100644 --- a/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc +++ b/gosa-plugins/dns/admin/systems/services/dns/class_DNS.inc @@ -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;