]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
comment for explanation of bit toggle.
authorWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 1 Mar 2012 13:38:28 +0000 (13:38 +0000)
committerWouter Wijngaards <wouter@nlnetlabs.nl>
Thu, 1 Mar 2012 13:38:28 +0000 (13:38 +0000)
git-svn-id: file:///svn/unbound/trunk@2638 be551aaa-1e26-0410-a405-d3ace91eadb9

iterator/iter_hints.c

index 577ae50b4f8db53fc3c6530b36d32ded8a6956aa..36ed999f29c478a3091228ca5bd0f000054b190b 100644 (file)
@@ -257,6 +257,9 @@ read_stubs(struct iter_hints* hints, struct config_file* cfg)
                        !read_stubs_host(s, dp) ||
                        !read_stubs_addr(s, dp))
                        return 0;
+               /* the flag is turned off for 'stub-first' so that the
+                * last resort will ask for parent-side NS record and thus
+                * fallback to the internet name servers on a failure */
                dp->has_parent_side_NS = !s->isfirst;
                if(!hints_insert(hints, LDNS_RR_CLASS_IN, dp, !s->isprime))
                        return 0;