Randomly cannot Curl or ping subdomain for a 30 minute block out of the day?

September 9, 2018 550 views
WordPress PHP PHP Frameworks Ubuntu 18.04

Hello, I have a site built upon the Laravel framework. We have a shop on our site and it is pulling products via the Woocommerce API using an install of a wordpress I've placed on a subdomain. So the shop pages pulls products via the endpoint shop.mydomain.com. Almost every day for a few minutes, and up to 1 hour I cannot pull from the API. If I SSH into the server and try and ping my subdomain it says "No address associated with hostname". Why is it that this randomly happens through ought the day?

1 Answer

Hey friend!

The "No address associated with hostname" sounds like a DNS resolution issue. If you call it by IP instead of hostname, does it then work?

Jarland

Have another answer? Share your knowledge.