Error by ping

Hi Fellas, i got this error, but in server only, in local cpu works whithout trouble, someone know how to fix?
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘api.binance.com’, port=443): Max retries exceeded with url: /api/v1/ping (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f3717be6df0>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution’))

seems issue from making the https connection, how about try to do curl?