I am facing Curl 6 error in CI Project Ubuntu Server

Viewed 27

I am trying to integrate razor pay in my CI project but it give me error of "cURL error 6: Could not resolve host: api.razorpay.com" and i have ubuntu server with Enable cURL, cURL Information : 7.68.0 what is the issue i didn't find it.

1 Answers

Step 1 : Please check /etc/hosts file on server and see if any record found for api.razorpay.com

remove that record so it can fetch from DNS service provider.

Step 2: if not work you can add your record into your hosts file but it's not a permanent solution as Server IP can be change

13.234.70.181   api.razorpay.com
Related