From: bert hubert Date: Tue, 28 Feb 2017 16:22:16 +0000 (+0100) Subject: make our zone parser adhere to RFC2308 wrt implicit TTLs and add test X-Git-Tag: rec-4.1.0-alpha1~239^2~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7fd6c67e3c64033724e5f260976f4ca638db0875;p=thirdparty%2Fpdns.git make our zone parser adhere to RFC2308 wrt implicit TTLs and add test --- diff --git a/pdns/zoneparser-tng.cc b/pdns/zoneparser-tng.cc index 21b09edefa..36777795cc 100644 --- a/pdns/zoneparser-tng.cc +++ b/pdns/zoneparser-tng.cc @@ -368,6 +368,8 @@ bool ZoneParserTNG::get(DNSResourceRecord& rr, std::string* comment) } if(!haveTTL && !haveQTYPE && isTimeSpec(nextpart)) { rr.ttl=makeTTLFromZone(nextpart); + if(!d_havedollarttl) + d_defaultttl = rr.ttl; haveTTL=true; // cout<<"ttl is probably: "<