cURL error 28: Operation timed out

Tonight I started getting CURL errors when accessing endpoints. At the same time, an error may occur with each request, or it may disappear for some time.
Everything worked perfectly until this night

ERROR: cURL error 28: Resolving timed out after 2000 milliseconds (see libcurl - Error Codes) for

When accessing other api resources, there are no problems. Only with Binance

Ubuntu 20.04 LTS
PHP 8.0

Connectivity issues may arise from different situations. It is hard to pinpoint where it went wrong. I suggest having some redundancy connections and also retries strategies to cope with this issue.

I understand it. But it bothers me that I started getting this error all of a sudden. And it can disappear for one hour, and then all requests return this error within a few minutes. Then silence again…

I thought there was a problem with the file /etc/resolv.conf. I added DNS to it, but the error did not disappear.
I added a proxy request, but the result is the same. The error disappears, then reappears. I can’t get it locally, only on the server.