| | |||||||
| |||||||
| New! Use your Facebook, Google, AIM & Yahoo accounts to securely log into this site, click logo to login | |
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Regular | WHOIS Lookup Data When someone queries a WHOIS server for a domain name, is the data sent back strictly text or is it organized into fields (eg Expiration Date, Namservers, REgistrar). I'm trying to implement a script that queries a WHOIS server and reports back only the expiration date and registrar and was wondering if I had to use regex to clean out the text or if there is an easier method.
__________________ JivenWho.com - WHOIS Protection Reselling! My Domain Listing: dnListing.com/unknown |
| | |
| | #3 (permalink) |
| Forum Moderator Forum Moderator | If you query the TLD whois server (with recursive lookup disabled), then you should get consistent results for any domain within that TLD. Each TLD (usually) has a separate whois server. This means they you may need a different regexp for each TLD that you want to support.
__________________ |
| | |
| | #4 (permalink) |
| DNOA Member | You can probably write some sort of parser. I've been looking to write one actually. Maybe I will this month and I'll post it when I release it. I'm sick of seeing different formats of WHOIS text, but since generally the expiration date is preceeded by "Expire", etc, it shouldn't be terribly difficult. |
| | |