Question

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

Posted September 9, 2018 650 views
PHP WordPress 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?

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.

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

Submit an Answer