-->

how enable curl's AsynchDNS?

2019-01-26 17:29发布

问题:

I want enable curl's AsynchDNS ( find in phpinfo() ) . What do i must do ? This is screenshot :

I found out install http://c-ares.haxx.se/

c-ares is a C library that performs DNS requests and name resolves asynchronously

http://curl.haxx.se/dev/readme-ares.html But i still stuck at how install on curl exist.

回答1:

libcurl needs to have been compiled and built for it. For Linux and other *nix systems, you can build with c-ares or the threaded-resolver to make it use asynchronous resolves.



标签: php curl c-ares