[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 03-09-2008, 02:28 PM   #1 (permalink)
NamePros Member
 
Join Date: Mar 2007
Posts: 130
3,268.00 NP$ (Donate)

STDomains is on a distinguished road


Question Question on Whois info extraction

Hi All,

Anyone have any ideas on programmable whois info extraction given a specific domain name?

What we are trying to accomplish, is to be able to extract whois info for a number of domains that we own and get it into a database.

We found a couple of good threads at NP (http://www.namepros.com/code/280961-...ity-check.html and one or 2 other threads linked from that one).. but not sure if the threads are doing exactly what we need.

Is there a "format" that all automated whois servers are supposed to conform to on their responses?

Any thoughts/direction would be much appreciated!

Thanks,

ST Domains
__________________
Domains for Sale @ Sedo
STDomains is offline  
Old 03-09-2008, 04:37 PM   #2 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
No there is no set format returned from whois. Different registries return data slightly different.

What precise information are you after?

There should be code within the code section that does what you want as I know several people have written classes and functions for whois.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 03-09-2008, 08:32 PM   #3 (permalink)
NamePros Regular
 
monaco's Avatar
 
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 695
314.80 NP$ (Donate)

monaco will become famous soon enough


Certain items are pretty constant, like the Administrative Contact and Technical / Tech contact fields. Maybe some simplistic regex parsing could get the most vital information out of the whois data.
__________________
My Website | My Blog
monaco is offline  
Old 03-12-2008, 06:45 AM   #4 (permalink)
NamePros Member
 
Join Date: Mar 2007
Posts: 130
3,268.00 NP$ (Donate)

STDomains is on a distinguished road


Thanks for your responses Peter and Monaco.

Its unfortunate that there is no standard. Seems that this would be a great place for standardization!

Do most whois severs permit automated queries though ? Pretty sure the response to this will be that there is no standard (which seems to be the standard with whois servers ), but just asking for your thoughts based on your past experience ..

We are looking to extract reg date, expiry, contacts, name servers, and anything else we can "automate".
__________________
Domains for Sale @ Sedo
STDomains is offline  
Old 03-12-2008, 01:14 PM   #5 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
whois servers would find it hard to know if a request is an automated 1 or not. Unless of course you hammer the server. To combat this they only allow x amount of requests per hour or so.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 03-15-2008, 08:44 PM   #6 (permalink)
NamePros Member
 
Join Date: Mar 2007
Posts: 130
3,268.00 NP$ (Donate)

STDomains is on a distinguished road


Makes sense.. Thx Peter.
__________________
Domains for Sale @ Sedo
STDomains is offline  
Old 03-15-2008, 08:48 PM   #7 (permalink)
I'll do it

Technical Services

 
-Nick-'s Avatar
 
Join Date: Dec 2005
Location: India
Posts: 6,434
5,169.80 NP$ (Donate)

-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute

Adoption
I think cURL would do the trick in PHP.

For a nice automation I would put the script as a function on some site of mine where there is little bit of traffic

So whenever someone visits my site the code part executes and it checks the availability.

If it is available then it goes to available.txt file and if not available then it dumps the stuff into the database

After all the data is extracted like this. You just need to find and replace junk stuff within the database like: Name etc.
-Nick- is offline  
Old 03-16-2008, 01:16 AM   #8 (permalink)
NamePros Regular
 
monaco's Avatar
 
Join Date: Jul 2005
Location: Tucson, AZ
Posts: 695
314.80 NP$ (Donate)

monaco will become famous soon enough


Quote:
Originally Posted by -Nick-
So whenever someone visits my site the code part executes and it checks the availability.
I wonder if you could screw with the x-forwarded-for header to confuse the site and buy you more time before you got banned...maybe they'd think you were the endpoint for an entire org...
__________________
My Website | My Blog
monaco is offline  
Old 03-16-2008, 05:08 AM   #9 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
i doubt it. I should imagine they are actively looking for proxies as well.
__________________
Manage your portfolio using my new Domain Portfolio Management script.
Securing Your Domain Name From Theft
Peter is offline  
Old 03-16-2008, 06:02 AM   #10 (permalink)
I'll do it

Technical Services

 
-Nick-'s Avatar
 
Join Date: Dec 2005
Location: India
Posts: 6,434
5,169.80 NP$ (Donate)

-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute-Nick- has a reputation beyond repute

Adoption
I am not doing it that it would get detected. I am more smarter then that.

Just trying to share some ideas.
-Nick- is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 04:40 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85