summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJakub Hrozek <jhrozek@redhat.com>2010-11-24 09:58:34 +0100
committerStephen Gallagher <sgallagh@redhat.com>2010-11-24 10:09:16 -0500
commit09f6d093d38744fc1ba8db5e031ac0f16282210d (patch)
tree619af9c3403bfd6e0144a9f1025ad252128ac2c0
parent4b0309363dbfb9a1409e082b3a84f17b53a751c1 (diff)
downloadsssd_unused-09f6d093d38744fc1ba8db5e031ac0f16282210d.tar.gz
sssd_unused-09f6d093d38744fc1ba8db5e031ac0f16282210d.tar.xz
sssd_unused-09f6d093d38744fc1ba8db5e031ac0f16282210d.zip
Internal DNS resolver should check /etc/hosts
https://fedorahosted.org/sssd/ticket/686
-rw-r--r--src/resolv/async_resolv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolv/async_resolv.c b/src/resolv/async_resolv.c
index 363141b4..cc57d8e3 100644
--- a/src/resolv/async_resolv.c
+++ b/src/resolv/async_resolv.c
@@ -330,10 +330,12 @@ recreate_ares_channel(struct resolv_ctx *ctx)
options.sock_state_cb = fd_event;
options.sock_state_cb_data = ctx;
options.timeout = ctx->timeout * 1000;
+ options.lookups = discard_const("fb");
options.tries = 1;
ret = ares_init_options(&new_channel, &options,
ARES_OPT_SOCK_STATE_CB |
ARES_OPT_TIMEOUTMS |
+ ARES_OPT_LOOKUPS |
ARES_OPT_TRIES);
if (ret != ARES_SUCCESS) {
DEBUG(1, ("Failed to initialize ares channel: %s\n",