diff --git a/src/cares_wrap.cc b/src/cares_wrap.cc index 79dafe1e460..8dce800b43e 100644 --- a/src/cares_wrap.cc +++ b/src/cares_wrap.cc @@ -886,11 +886,15 @@ static void Initialize(Handle target) { assert(r == ARES_SUCCESS); struct ares_options options; + memset(&options, 0, sizeof(options)); + options.flags = ARES_FLAG_NOCHECKRESP; options.sock_state_cb = ares_sockstate_cb; options.sock_state_cb_data = uv_default_loop(); /* We do the call to ares_init_option for caller. */ - r = ares_init_options(&ares_channel, &options, ARES_OPT_SOCK_STATE_CB); + r = ares_init_options(&ares_channel, + &options, + ARES_OPT_FLAGS | ARES_OPT_SOCK_STATE_CB); assert(r == ARES_SUCCESS); /* Initialize the timeout timer. The timer won't be started until the */