From 464a7bacf4ff02d50021b9847bebb5c7623f5da1 Mon Sep 17 00:00:00 2001 From: Miek Gieben Date: Thu, 13 Dec 2012 15:11:22 +0100 Subject: [PATCH] For ommited ttls fall back to $TTL or 3600 As per RFC 2308 --- zscan.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/zscan.go b/zscan.go index 903b806b..3f942b5a 100644 --- a/zscan.go +++ b/zscan.go @@ -227,7 +227,8 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) { return } else { h.Ttl = ttl - defttl = ttl + // Don't about the defttl, we should take the $TTL value + // defttl = ttl } st = _EXPECT_ANY_NOTTL_BL @@ -371,7 +372,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) { return } else { h.Ttl = ttl - defttl = ttl + // defttl = ttl // don't set the defttl here } st = _EXPECT_ANY_NOTTL_BL default: @@ -410,7 +411,7 @@ func parseZone(r io.Reader, origin, f string, t chan Token, include int) { return } else { h.Ttl = ttl - defttl = ttl + // defttl = ttl // don't set the def ttl anymore } st = _EXPECT_RRTYPE_BL case _RRTYPE: