Solved

Script to perform domain expiry searches

Posted on 2013-11-21
7
351 Views
Last Modified: 2013-11-24
Hi - I'm interested in a script to use to monitor domains expiration.  The script to perform a lookup and return whois status, and expiry date etc.

This is basically to allow me to keep an eye on some domains that I'd like to register if and when they become available.

This is not to pipe a single domain, but a long list, >50domains.

Are there any free scripts out there already?


If not how easy is it to do this?
0
Comment
Question by:TheDadCoder
  • 4
  • 3
7 Comments
 
LVL 39

Accepted Solution

by:
Eoin OSullivan earned 500 total points
ID: 39665582
Different domains .com, .co.uk, .ca etc have different registry authorities and it can be quite complex to parse the different responses to extract the expiry dates.

Personally I prefer the Domain Name Analyzer program by Softnik - http://www.softnik.com/download/

The free version is great but if you're managing lots of names look at their Watch My Domains Pro application.  I've also used Domainer by Rage SW which is quite good too - http://www.ragesw.com/products/domainer.html
0
 

Author Comment

by:TheDadCoder
ID: 39666157
Hi , thanks for the response.

the first one looked promising, but doesn't seem to correctly report on pending delete domains.

fonze.info for example, (just a random domain that expired on 8 Sept 13, and apparantly is scheduled for deletion on 23 Nov 13, two days from now).  The software doesn't report that it's pending delete, hmmm.

The other costs fifty dollars so not up my street.

Thanks anyway.
0
 
LVL 39

Expert Comment

by:Eoin OSullivan
ID: 39666213
In the DNA app you can choose what whois server to use for each domain name such as .info

When i tested the fonze.info in DNA it does identify that it is pending deletion but nowhere in the returned record does it show the deletion date.  It shows an expiry of 8 Sept 2014.
Where are you getting the DELETION Date as this is not a standard field in the whois record?

http://info.info/find-domain/fonze.info
0
MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

 

Author Comment

by:TheDadCoder
ID: 39666226
That's curious!   Whois says it expired sept 14, but http://www.pool.com/viewlist.aspx says it's due to be deleted in a few days.

This is just a random domain i used to test the app.  So don't know if that website works!
0
 
LVL 39

Expert Comment

by:Eoin OSullivan
ID: 39666275
Welcome to the shady world of domain name registration and management!!  It can be very hard to determine if expired domains are truly unlocked and available or if the registrar has suspended it and registrant is behind on payments or one of a hundred other reasons.  

There are also unscrupulous registrars who reserve thousands of domain names but don't pay for them and try and sell them on at inflated prices as "expired".  Often the master database is not accurate as the registrar hasn't forwarded the details as they are holding onto the domain in case they can re-sell it or the original registrar returns.
0
 

Author Comment

by:TheDadCoder
ID: 39666291
Thanks, but surely this is possible using a script.

I use a mac and it has a whois script built in.

Any able to parse the whois output?
0
 
LVL 39

Expert Comment

by:Eoin OSullivan
ID: 39666376
You could probably do something with PERL and put an applescript wrapper around it
https://metacpan.org/pod/Net::Whois::Parser

You can create an appleScript to call the shell command whois with a domain name .. and return the results ...
https://discussions.apple.com/thread/2499327
but you'll then have to parse the results and look for the specific fields you want (which will change depending on the domain registrar server) and extract the fields and store in some form of text file.
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The purpose of this article is to demonstrate how we can use conditional statements using Python.
When we want to run, execute or repeat a statement multiple times, a loop is necessary. This article covers the two types of loops in Python: the while loop and the for loop.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question