NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page WHOIS Lookup Data

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Reply
 
LinkBack Thread Tools
Old 06-17-2009, 09:35 PM THREAD STARTER               #1 (permalink)
NamePros Regular
Join Date: Oct 2004
Location: IL
Posts: 657
Unknown will become famous soon enoughUnknown will become famous soon enough
 



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.
Unknown is offline   Reply With Quote
Old 06-18-2009, 12:57 AM   #2 (permalink)
Senior Member
 
Barrucadu's Avatar
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,689
Barrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to beholdBarrucadu is a splendid one to behold
 




It's just text. And what's more, the format it is sent in depends on the server.
Barrucadu is offline   Reply With Quote
Old 06-18-2009, 03:07 AM   #3 (permalink)
NamePros Regular
 
qbert220's Avatar
Join Date: Jul 2007
Location: UK
Posts: 395
qbert220 is a splendid one to beholdqbert220 is a splendid one to beholdqbert220 is a splendid one to beholdqbert220 is a splendid one to beholdqbert220 is a splendid one to beholdqbert220 is a splendid one to beholdqbert220 is a splendid one to behold
 


Protect Our Planet
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.
qbert220 is offline   Reply With Quote
Old 06-18-2009, 08:26 AM   #4 (permalink)
DNOA Member
Join Date: May 2004
Posts: 5,040
mholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant futuremholt has a brilliant future
 


Autism Marrow Donor Program 9/11/01 :: Never Forget Multiple Sclerosis Adoption Alzheimer's Lou Gehrig's Disease (ALS)
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.
mholt is offline   Reply With Quote
Reply


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

Liquid Web Smart Servers  
All times are GMT -7. The time now is 11:06 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger