summaryrefslogtreecommitdiff
path: root/src/resolv
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 /src/resolv
parent4b0309363dbfb9a1409e082b3a84f17b53a751c1 (diff)
downloadsssd-09f6d093d38744fc1ba8db5e031ac0f16282210d.tar.gz
sssd-09f6d093d38744fc1ba8db5e031ac0f16282210d.tar.bz2
sssd-09f6d093d38744fc1ba8db5e031ac0f16282210d.zip
Internal DNS resolver should check /etc/hosts
https://fedorahosted.org/sssd/ticket/686
Diffstat (limited to 'src/resolv')
-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",