I’ve tried the suggestions of the devs who answered the question but the domain still outputs offline even if they’re online.

The domains are from an uploaded csv file which will be listed on the database then output an online or offline status depending on the live status of the domain.

This post is also available on DEV.