NLnetLabs / ldns

LDNS is a DNS library that facilitates DNS tool programming
https://nlnetlabs.nl/ldns
BSD 3-Clause "New" or "Revised" License
299 stars 99 forks source link

improve 'next-label' algorithm in ldns-walk #206

Closed tjeb closed 2 months ago

tjeb commented 1 year ago

Rather than adding \000 to an existing label, add a new label "\000." to the start of the domain name, to find the closes next possible domain name.

This makes ldns-walk not fail on zones where there are more than 2 nsecs between the current label and label+\000.