in-bailiwick check ; feature or bug ?
I found that in-bailwick check is not doing what I expected. So I changed lib/layer/iterate.c as the patch follows: What do you think?
*** /home/tmaeno/desk/iterate.c 2016-04-16 19:58:10.240860212 +0900
--- iterate.c 2016-04-16 17:35:20.905353675 +0900
***************
*** 253,259 ****
}
kr_zonecut_add(cut, ns_name, NULL);
/* Use glue only in permissive mode or when in bailiwick. */
! if ((qry->flags & QUERY_PERMISSIVE) || knot_dname_in(current_cut, ns_name)) {
fetch_glue(pkt, ns_name, qry);
}
}
--- 253,260 ----
}
kr_zonecut_add(cut, ns_name, NULL);
/* Use glue only in permissive mode or when in bailiwick. */
! if (knot_dname_in(cut->name, ns_name)) {
! DEBUG_MSG("fetching glue for cut %s, %s\n", cut->name, ns_name);
fetch_glue(pkt, ns_name, qry);
}
}