From 09f6d093d38744fc1ba8db5e031ac0f16282210d Mon Sep 17 00:00:00 2001 From: Jakub Hrozek Date: Wed, 24 Nov 2010 09:58:34 +0100 Subject: Internal DNS resolver should check /etc/hosts https://fedorahosted.org/sssd/ticket/686 --- src/resolv/async_resolv.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/resolv') 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", -- cgit