Hi Newell, On 14-09-17 13:52, Newell Zhu via Unbound-users wrote: > > What does it mean? > > I want to find NS for www.example.com <http://www.example.com>, It it > result to ab.example.com <http://ab.example.com> instead of example.com > <http://example.com>. > > > Am I make mistakes or it’s designed to?
You are right that ab.example.com will be the result from rbtree_find_less_equal(). However, when there is no exact match, forwards_lookup() will continue to go up until the qname is a subdomain of the forward zone. See iterator/iter_fwd.c:360. -- Ralph
