It might be worthwhile to query "." if no root-servers are available, but this is not the place or way to address that.
for(i = 2 ; i < (ssize_t)labels_count + 2; i++) {
labels[i] = ldns_dname_left_chop(labels[i - 1]);
}
- /* if no servers is given with @, start by asking local resolver */
- /* first part todo :) */
- for (i = 0; i < (ssize_t) ldns_resolver_nameserver_count(local_res); i++) {
- (void) ldns_resolver_push_nameserver(res, ldns_resolver_nameservers(local_res)[i]);
- }
/* get the nameserver for the label
* ask: dnskey and ds for the label