unbound: Implementation of query method of unbound_resolver_t