cURL error 28: Resolving timed out after 5001 milliseconds

Danesh-Ju Com picture Danesh-Ju Com · May 20, 2017 · Viewed 15.4k times · Source

I use WordPress and I recently moved my site from the cpanel host to a Linux server with directadmin panel. Right after the transfer realized that customers have the following error when downloading via EDD plugin.

cURL error 28: Resolving timed out after 5001 milliseconds

I also got this error of w3_total_cache plugin.

Server informatin: Centos 6.8 (Final) cURL 7.54.0 (Final) directadmin

Answer

PLA picture PLA · Apr 24, 2019

cURL error 28: Resolving timed out after 5001 milliseconds means DNS resolving failed.

so just change the DNS server list in /etc/resolv.conf.

or maybe we can bind the hostname and ip address in /etc/hosts.

this image shows the demo.

curl resolving timed out