> 2. Domains on Reseller Lock, Will Not Renew
> ---------------
> Tucows has discovered that .INFO domains that are locked by the
> reseller will not be renewed by the registry. This is particularly a
> problem for domains that are set to auto-renew. The reseller will
> not be notified when these domains have passed their expiry date.
> It will then be necessary for the reseller to use the Redemption
> Process to reclaim the domain. The current work-around to this problem
> is for the Resellerto unlock the domain, renew it and then lock
> the domain. Tucows is working on resolving this issue and will
> notify resellers when this is done.
Or use some code like this in your renew cgi:
############################################
#CHECK DOMAIN LOCK AND RENEW
#
# the old way was simply this...
#
# my $res = $XML_Client->send_cmd( $xcp_req );
#
############################################
my ($lock_response, $res);
#get status of domain lock
$lock_response = $XML_Client->send_cmd(
{
action => 'get',
object => 'domain',
cookie => $cookie,
attributes => {
type => 'status',
}
}
);
#if domain is locked, unlock if domain is info|biz|us|org
if (($reg_domain =~ /(info|biz|us|org)$/i) &&
( $lock_response->{ attributes }{ lock_state } )) {
$lock_response = $XML_Client->send_cmd(
{
action => 'modify',
object => 'domain',
cookie => $cookie,
attributes => {
data => 'status',
lock_state => 0,
}
}
);
#now renew domain name...
if ( $lock_response->{is_success}) {
$res = $XML_Client->send_cmd( $xcp_req );
}
#... and lock it back
$lock_response = $XML_Client->send_cmd(
{
action => 'modify',
object => 'domain',
cookie => $cookie,
attributes => {
data => 'status',
lock_state => 1,
}
}
);
#domain is not locked, so just renew
} else {
$res = $XML_Client->send_cmd( $xcp_req );
}
############################################
Y'all have a happy Thanksgiving now!
--
John Keegan
[EMAIL PROTECTED]
http://RackShare.com