ldns icon indicating copy to clipboard operation
ldns copied to clipboard

Updates to ldns_is_rrset()

Open tgreenx opened this issue 1 year ago • 1 comments

This PR proposes two updates to ldns_is_rrset():

  • to take into account TTL --> see RFC2181, Section 5.2 and RFC9499, Section 5
  • do case insensitive comparison of owner names, using function ldns_dname_compare() --> I couldn't find a proper reference from the same RFCs regarding RRsets specifically, but from a practical point on view it seems appropriate. Also see RFC4343.

PS: I couldn't find any unitary test for this method in the test directory, so this PR is untested at the moment. Please feel free to provide additional changes in that regard.

tgreenx avatar Sep 04 '24 13:09 tgreenx

@wtoorop have you had time to review this PR? what do you think of this proposal?

tgreenx avatar Oct 08 '24 14:10 tgreenx

Bump :) could this be reviewed?

tgreenx avatar Feb 26 '25 16:02 tgreenx

Okay @tgreenx , I reviewed, and I really like the case insensitive dname compare. I'm a bit less enthusiastic about making equal TTLs a requirement, because that would be a backwards compatibility breaking change. Maybe we could introduce a new function bool ldns_is_rrset_strict(const ldns_rr_list *rr_list) that also takes along the TTL? WDYT?

wtoorop avatar Feb 27 '25 11:02 wtoorop

Okay @tgreenx , I reviewed, and I really like the case insensitive dname compare. I'm a bit less enthusiastic about making equal TTLs a requirement, because that would be a backwards compatibility breaking change. Maybe we could introduce a new function bool ldns_is_rrset_strict(const ldns_rr_list *rr_list) that also takes along the TTL? WDYT?

Hi Willem, thanks for the review. Sure we can do that, I've just pushed commit https://github.com/NLnetLabs/ldns/pull/251/commits/0fd9031e2e34f291de0687739acf23469d4744a9 in that regard. I was not sure if I needed to update any doc/ file, please tell me if that is required.

tgreenx avatar Mar 20 '25 09:03 tgreenx

Bump!

tgreenx avatar May 06 '25 15:05 tgreenx