Thursday, January 17, 2008

HowTo: Determine Domain's Expiration Date From Linux Terminal

Determining domain expiration is also part of an IT web-enabled infrastructure. There are a lot of window softwares that queries the internet for the domain's expiration date.

Here's an easy way on how to display your domain's expiration date using linux terminal command in a single shot.

Check Domain Expiration Date

# whois yourdomain.com

The result is too long, I agree with you. Knowing the expiration date is the only line we need at this point.

So, here's a generic shortcut of retrieving your domain's expiration date from linux command line terminal.

# whois yourdomain.com| grep -i "expir\|renewal date:"

The above command gives the domain's expiration date when executed, well mostly.

Additionally, expanding this command inside a shell script and sending you an email alert N days before domain expiration is also possible. However, you need to adapt or adjust your shell script from the different format results produced by various domain registrar around the web.

Enjoy.

0 comments:

Sign up for PayPal and start accepting credit card payments instantly.
ILoveTux - howtos and news | About | Contact | TOS | Policy