From 74df312505d81f22b3205409b682e41fa71a4838 Mon Sep 17 00:00:00 2001
From: Florian Schaal <florian@schaal-24.de>
Date: Wed, 21 Jan 2015 06:37:16 -0500
Subject: [PATCH] set ttl > 0 for dkim-records

---
 interface/web/dns/dns_dkim_edit.php |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/interface/web/dns/dns_dkim_edit.php b/interface/web/dns/dns_dkim_edit.php
old mode 100755
new mode 100644
index eac7cb6..1a01463
--- a/interface/web/dns/dns_dkim_edit.php
+++ b/interface/web/dns/dns_dkim_edit.php
@@ -108,6 +108,7 @@
 		if (!empty($this->dataRecord['data'])) {
 			$this->dataRecord['data']='v=DKIM1; t=s; p='.$this->dataRecord['data'];
 			$this->dataRecord['name']=$this->dataRecord['selector'].'._domainkey.'.$this->dataRecord['name'];
+			$this->dataRecord['ttl']=60;
 		}
 			// Update the serial number  and timestamp of the RR record
 			$soa = $app->db->queryOneRecord("SELECT serial FROM dns_rr WHERE id = ?", $this->id);

--
Gitblit v1.9.1