cURL error 6: Could not resolve host

I am trying to enter an API key for my Mailchimp plugin for my WordPress website and I get this error: cURL error 6: Could not resolve host

Plugin: Mailchimp for Woocommerce Settings Error: Mailchimp says: API Request Error - cURL error 6: Could not resolve host:

Is there a fix for this? Running the latest Apache, PHP, Woocommerce and WordPress versions.

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Hello @pjha , I also have the same problem with my droplet. I have followed all the steps that @romeobraindead and @thepouringarts did.

Can you suggest, how to make it permanent. I need that it work please.

Hey there!

The resolvers are having issues. The resolvers are specified in the /etc/resolv.conf file and are set based on the network configuration scripts on the Droplet. You can try rebooting the Droplet once and if the issue still persists, you can try to manually specifying nameserver IP entries in the /etc/resolv.conf file to any of the following for testing. the format looks like this:

nameserver IP.AD.DR.ESS

Google public name servers: nameserver nameserver

OpenDNS nameserver nameserver

Let me know how it goes.

Regards, Prakash Jha Developer Support