Solved

Script to perform domain expiry searches

Posted on 2013-11-21
7
347 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
Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

 

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

A set of related code is known to be a Module, it helps us to organize our code logically which is much easier for us to understand and use it. Module is an object with arbitrarily named attributes which can be used in binding and referencing. …
Strings in Python are the set of characters that, once defined, cannot be changed by any other method like replace. Even if we use the replace method it still does not modify the original string that we use, but just copies the string and then modif…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

758 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now