I now get this, for toronto.ca
 
247
Domain name is restricted to municipal government.
available
 
By printing these:
 print "$lookup_results->{response_code}\n";
 print "$lookup_results->{response_text}\n";
 print "$lookup_results->{attributes}->{status}\n";
 
It seems that the attributes->status gives the word "available" and doesn't indicate the code 247 or the other response text.
-----Original Message-----
From: Mayo [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, August 15, 2001 2:51 PM
To: dnsadmin
Subject: Re: .CA lookups are wrong?

that should be ok .. here is debug dump of XML communication between my client and server, it is essentially the same what you have sent.

Sending Data:
---------------------------------
<?xml version="1.0" encoding="UTF-8" standalone="no" ?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
<header>
<version>0.9</version>
<msg_id>1467</msg_id>
<msg_type>standard</msg_type>
</header>
<body>
<data_block>
<dt_assoc>
<item key="action">LOOKUP</item>
<item key="object">DOMAIN</item>
<item key="attributes">
<dt_assoc>
<item key="domain">toronto.ca</item>
</dt_assoc>
</item>
<item key="registrant_ip">142.179.35.194</item>
<item key="protocol">XCP</item>
</dt_assoc>
</data_block>
</body>
</OPS_envelope>
---------------------------------
Reading Data:
--------------------------- ------
<?xml version='1.0' encoding="UTF-8" standalone="no" ?>
<!DOCTYPE OPS_envelope SYSTEM "ops.dtd">
<OPS_envelope>
<header>
<version>0.9</version>
<msg_id>5.72166811888213</msg_id>
<msg_type>standard</msg_type>
</header>
<body>
<data_block>
<dt_assoc>
<item key="is_success">1</item>
<item key="protocol">XCP</item>
<item key="_OPS_msg_type"></item>
<item key="object">LOOKUP</item>
<item key="_OPS_msg_id"></item>
<item key="response_text">Domain taken</item>
<item key="attributes">
<dt_assoc>
<item key="status">taken</item>
<item key="match">
</item>
</dt_assoc>
</item>
<item key="response_code">211</item>
<item key="action">REPLY</item>
</dt_assoc>
</data_bl ock>
</body>
</OPS_envelope>
---------------------------------

dnsadmin wrote:
[EMAIL PROTECTED]" type="cite">
I am using this code:


$XML_Client = new OpenSRS::XML_Client(%OPENSRS);

my ($lookup_data, $fqdn_encoding_type, $lookup_results);

$lookup_data = {
action => "lookup",
object => "domain",
attributes => {
domain => $domain,
affiliate_id => $in{affiliate_id},
}
};

my $lookup_results = $XML_Client->send_cmd( $lookup_data );


print "$lookup_results->{attributes}->{status}\n";

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On
Behalf Of Mayo
Sent: Wednesday, August 15, 2001 2:06 PM
To: dev-list
Subject: Re: .CA lookups are wrong?


toronto.ca is restricted for municipal government use,

are you sure you are using the latest opensrs client? because if i look
the domain via opensrs client i get Domain Taken.


dnsadmin wrote:

If I lookup cbc.ca it comes back as status "taken"

If I lookup asdfasfdddddd.ca it comes back as status "available"

QUESTION:

Why does a lookup of "toronto.ca" come back as "available" when the WHOIS
says it is UNAV





Reply via email to