Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Response time? #196

Open
edcoke opened this issue Dec 2, 2022 · 1 comment
Open

Response time? #196

edcoke opened this issue Dec 2, 2022 · 1 comment

Comments

@edcoke
Copy link

edcoke commented Dec 2, 2022

We are responsible for 70+ domains. I've built a cron job that scans these domains 2x/day to make sure nothing critical has been changed. I've got 2 problems. First, the WHOIS call takes - usually - something on the order of 2+minutes to return a result for each domain. Multiplied by 70+ domains, it takes the cron job almost 3.5 hours to run through all of the domains. Is there anything I can do to improve response time? Also the dates returned from one call to the next are almost always different. Difference can be anything from a few minutes to years. I would think those dates (created, updated, expires) should be relatively static.

For the record, doing a fairly vanilla call:
$lookup = $whois->loadDomainInfo($domainList[$d]);

...and then parsing the dates:
$created = date('Y-m-d H:i:s', $lookup->creationDate); $updated = date('Y-m-d H:i:s', $lookup->updatedDate); $expires = date('Y-m-d H:i:s', $lookup->expirationDate);

Any suggestions welcomed.

@io-developer
Copy link
Owner

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants