Welcome to the largest and most talked about domain name forum in the World!

We are NamePros, the award-winning free community for domain name owners, buyers and website developers. Once registered, you can:
  • Post your domains for sale or for free appraisals.
  • Private message and conduct business with other domain owners.
  • View member-only forums such as 'Legal Issues' and 'Expired Domains' (NOT visible to search engines)
  • Free access our archives of posts
Join now for free


Go Back   NamePros.com > Discussion > Web Design & Development > Programming
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.



Reply
 
LinkBack Thread Tools
Old 06-17-2009, 09:35 PM   #1 (permalink)
NamePros Regular
 
Unknown's Avatar
 
Join Date: Oct 2004
Location: IL
Posts: 657
56.95 NP$ (Donate)

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)
Barru.
 
Barrucadu's Avatar
 
Join Date: Aug 2005
Location: East Yorkshire, England
Posts: 2,767
253.50 NP$ (Donate)

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
Send a message via MSN to Barrucadu



It's just text. And what's more, the format it is sent in depends on the server.
__________________
Website | Blog

The Arch Hurd Project
Barrucadu is offline   Reply With Quote
Old 06-18-2009, 03:07 AM   #3 (permalink)
Forum Moderator

Forum Moderator

 
qbert220's Avatar
 
Join Date: Jul 2007
Location: UK
Posts: 328
214.85 NP$ (Donate)

qbert220 is a name known to allqbert220 is a name known to allqbert220 is a name known to allqbert220 is a name known to allqbert220 is a name known to allqbert220 is a name known to all



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,046
18.01 NP$ (Donate)

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


All times are GMT -7. The time now is 12:49 PM.

Contact Us - NamePros.com - Privacy Statement - Top
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2