From 9618961e8f214a1af2d420ca16754094e8e4aca6 Mon Sep 17 00:00:00 2001 From: hickert Date: Tue, 3 Feb 2009 13:56:10 +0000 Subject: [PATCH] Updated terminal dns. -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 | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; -- 2.30.2