Ticket #147 (closed defect: fixed)

Opened 1 year ago

Last modified 7 months ago

pdns_recursor.cc parseAuthAndForwards function does not take TTLs in Zonefile into account

Reported by: anon Assigned to: somebody
Priority: normal Milestone:
Component: component1 Version:
Severity: normal Keywords:
Cc: zaphodb@zaphods.net

Description

I noticed that when specifying a local authorative Zone via the auth-zones directive in the recursors configuration i was not able to get anything else than 3600 as a TTL for any records despite of whatever i specified in the zonefile.

I found that the while loop that runs through the zonefile in the parseAuthAndForwards function did specify a hardcoded value of 3600 for the TTL for every record.

The patch i will attach looks really straightforward and did fix the problem for me.

Stefan

Attachments

pdns_recursor.cc.patch (0.5 kB) - added by anon on 06/05/07 15:12:30.
rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl);

Change History

06/05/07 15:12:30 changed by anon

  • attachment pdns_recursor.cc.patch added.

rr=String2DNSRR(rr.qname, rr.qtype, tmp, rr.ttl);

(in reply to: ↑ description ) 06/05/07 15:21:06 changed by anon

Ah i forgot to state the pdns recursor version to run this patch against: v 3.1.4 (aka the 2 bugs version)

03/22/08 16:38:09 changed by ahu

  • status changed from new to closed.
  • resolution set to fixed.

Applied in commit 1164