Portal Home > Knowledgebase > Articles Database > PHP - Query whois for domain expiry date
PHP - Query whois for domain expiry date
Posted by user_204207, 04-24-2009, 08:37 AM |
Hi,
Struggling with this, I've figured out an easy way which is to use someone elses whois query script, such as internics and then use explode to strip out what I don't need, but this is bandwidth stealing.
All I need is the date of domain expiry, nothing else, I've tried simply querying the whois servers and I don't get the expiry, only the registrar, what am I doing wrong?
How do I query whois for a specific piece of info relating to a domain? Thanks!
|
Posted by mioot, 04-26-2009, 06:16 AM |
Can you post the php code and we will check it.
Check this url http://www.nott.org/blog/php-whois-script.html
|
Posted by HivelocityDD, 04-28-2009, 11:26 AM |
If you have an account with a registrar like Enom or Reseller Club, you can use their API to get all the domain specific details.
|
Posted by AaliyahRoma, 05-01-2009, 02:34 PM |
You could write your own whois-parser, clear all parts but expire-date.
|
Posted by cselzer, 05-01-2009, 02:57 PM |
I'm working on an engine myself, some of these may not work, but it wouldn't be hard to parse this list and check which ones are alright, and which ones need to be fixed.
But this list will help you get started... this is half the battle, trying to support every extension
And sending these servers queries is nothing, they are made for it. Just dont query them continuously... that could result in an IP ban.
whois servers:
ip servers (get ip info)
|
Posted by W00dyW00d, 06-04-2009, 07:54 PM |
Here is a nice bash script that I use to check expire date of my domains. It only works with the main ones but you can mod for your needs.
http://www.cyberciti.biz/tips/domain-check-script.html
|
Add to Favourites Print this Article
Also Read