Need to make a script as easy as the one below, but to check if a domain is available or unavailable.
In other words I want the status of the domain, if it's pending delete, locked, or available. I only need it for .com and .net domains.
#!/usr/bin/perl
# checks the expire date of a domain
use Net::Domain::ExpireDate;
$host = "awebsite.com";
$exp = expire_date( $host, '%m-%d-%Y' );
print "Content-Type: text/html \n\n";
print $exp;
Thank you very much for any help.
Best regards,
Dr34m3r
Start Free Trial