如何启用curl的AsynchDNS?

meo*_*hia 5 php curl c-ares

我想启用curl的AsynchDNS(在phpinfo()中找到)。我必须做什么?这是截图: 在此输入图像描述

我发现安装http://c-ares.haxx.se/

c-ares is a C library that performs DNS requests and name resolves asynchronously
Run Code Online (Sandbox Code Playgroud)

http://curl.haxx.se/dev/readme-ares.html 但我仍然坚持在curl上安装如何存在。

Dan*_*erg 4

需要为其编译和构建 libcurl。对于 Linux 和其他 *nix 系统,您可以使用 c-ares 或 threaded-resolver 进行构建,以使其使用异步解析。