From 55a89b86267239fc4a8bd62a2496ddbc36d9a024 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(-) (limited to 'src/resolv') diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c index ef76f171..936fd802 100644 --- a/src/resolv/async_resolv.c +++ b/src/resolv/async_resolv.c @@ -819,7 +819,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