domain-check update


I received a few emails about domain-check not producing correct output for some domains. After some poking around, it looks like a few registrars don’t publish expiration data. To address this, I added an if statement to domain-check to print “Unknown” if it is unable to locate expiration data:

$ cat domains
prefetch.net ickfoo.org spotch.com

$ domain-check -f domains -h whois.internic.org

Domain Registrar Status Expires Days Left
----------------------------------- ----------------- -------- ----------- ---------
prefetch.net INTERCOSMOS MEDIA Valid 13-feb-2007 313
ickfoo.org Unknown Unknown Unknown Unknown
spotch.com GANDI Valid 03-dec-2006 241

I wish I could get domain-check to work with all domains, but unfortunately it wasn’t meant to be.

This article was posted by Matty on 2006-04-08 11:16:00 -0400 -0400