summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2011-07-13 13:26:44 +0200
committerStephen Gallagher <sgallagh@redhat.com>2011-07-13 08:24:08 -0400
commit55a89b86267239fc4a8bd62a2496ddbc36d9a024 (patch)
treef8ff16c86206be403e286f25d2edd123c7484e4d /src
parent3ae08cdd894f777aff604a906a61fb76a310b27f (diff)
downloadsssd-55a89b86267239fc4a8bd62a2496ddbc36d9a024.tar.gz
sssd-55a89b86267239fc4a8bd62a2496ddbc36d9a024.tar.xz
sssd-55a89b86267239fc4a8bd62a2496ddbc36d9a024.zip
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
Diffstat (limited to 'src')
-rw-r--r--src/resolv/async_resolv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index ef76f1711..936fd8026 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);