From 211295040f0b8b0d754ae268132b5db659fe8c42 Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 13 Jul 2011 13:26:44 +0200 Subject: Use ares_search instead of ares_query for hostname resolution ares_query does not take search or domain directives from /etc/resolv.conf into account https://fedorahosted.org/sssd/ticket/922 --- src/resolv/async_resolv.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index 9b9b0538e..9c32aa7cd 100644 --- a/src/resolv/async_resolv.c +++ b/src/resolv/async_resolv.c @@ -778,7 +778,7 @@ resolv_gethostbyname_dns_query(struct tevent_req *req, DEBUG(4, ("Trying to resolve %s record of '%s' in DNS\n", state->family == AF_INET ? "A" : "AAAA", state->name)); - ares_query(state->resolv_ctx->channel, + ares_search(state->resolv_ctx->channel, state->name, ns_c_in, (state->family == AF_INET) ? ns_t_a : ns_t_aaaa, resolv_gethostbyname_dns_query_done, req); -- cgit