| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Regular Join Date: Oct 2004 Location: IL
Posts: 657
![]() ![]() | 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. |
| | |
| | #3 (permalink) |
| NamePros Regular Join Date: Jul 2007 Location: UK
Posts: 395
![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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 Join Date: May 2004
Posts: 5,040
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() | 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. |
| | |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Liquidation Auction: Many With Starting Bids Less Than $3 -- 24 Hour Auctions! | Archangel | Domains For Sale - Auctions | 14 | 12-18-2008 01:26 AM |
| whois lookup + pagerank check script | Maurizio1230 | Programming | 6 | 04-25-2008 06:01 PM |
| Convenient access to Whois data - new beta available | Hexillion | For Sale / Advertising Board | 5 | 07-11-2003 09:39 AM |
| The lowdown on .ORG's new WHOIS | RJ | Industry News | 5 | 05-26-2003 10:40 PM |