Prefetch Technologies // Keeping your cache lines cozy

DNS domain expiration checker

I just released version 1.0 of domain-check. domain-check queries WHOIS data and prints domain expiration dates, and works very similar to ssl-cert-check. Since seeing is believing, I will provide several examples to show just what domain-check can do.

The first example shows how domain-check can be used to print the expiration date for the domain prefetch.net:

$ domain-check -d prefetch.net
Domain Registrar Status Expires Days Left
----------------------------------- ----------------- -------- -----------
---------
prefetch.net INTERCOSMOS MEDIA Valid 13-feb-2006 64

The next example show how domain-check can be used to print the expiration date for the domains listed in the file "domains":

$ domain-check -f domains
Domain Registrar Status Expires Days Left
----------------------------------- ----------------- -------- -----------
---------
sun.com NETWORK SOLUTIONS Valid 20-mar-2010 1560
google.com EMARKMONITOR INC. Valid 14-sep-2011 2103
prefetch.net INTERCOSMOS MEDIA Valid 13-feb-2006 64
spotch.com GANDI Valid 03-dec-2006 357

And the final example shows how domain-check can be used to e-mail

<admin@prefetch.net> if a domain listed in the file "domains" will expire

in 60-days or less:

$ domain-check -a -f domains -q -x 60 -e admin@prefetch.net

Send me an E-mail if you have comments or suggestions.