Conversation
To work around the zone tree storing RRSIGs as an RRSET with a single TTL which is incorrect for RRSIGs. Note: Switches from Zone to LightWeightZone so that the zone walk behaviour can be overridden, which means we lose the more proper DNS response generation, but gain reduced memory consumption.
|
Note: If we really want the response generation logic of the domain in-memory |
Philip-NLnetLabs
left a comment
There was a problem hiding this comment.
I don't know if there is any negative effect of switching to the lightweight zone tree, but the change looks good to me.
There is a negative effect, but for Cascade today it is not a regression compared to what we aim to provide, namely that AXFR queries and simple queries like SOA still work as intended, but queries that maybe should result in a nuanced DNS response e.g. should it be NODATA or NXDOMAIN etc may not be answered per the RFCs, as the Also, The other effect is reduced memory usage. I'll update this PR with examples of the differing query responses and impact on memory usage. |
|
I suspect we could make LWZ even more lightweight if we only want to respond to SOA and AXFR queries... |
|
I think we can leave it like this and see how we want to solve it properly. |
A bit more regarding this: we already use |
|
Also, regarding the slow down introduced by using |
|
I removed the |


To work around the zone tree storing RRSIGs as an RRSET with a single TTL which is incorrect for RRSIGs.
Note: Switches from
ApexZonetoLightWeightZonefor signed zones so that the zone walk behaviour (used when serving the zone via XFR) can be overridden, which means we lose the more proper DNS response generation, but gain reduced memory consumption.This PR is an alternative to NLnetLabs/domain#577 to address the same problem without having to hack on
domain.