How do we get code 246 or 247 via the OpenSRS API?
I don't want to build a system that relies on whois.cira.ca (which has
downtime every now and then)
> -----Original Message-----
> From: epirogov [mailto:epirogov]On Behalf Of Evgeniy Pirogov
> Sent: Wednesday, August 15, 2001 1:47 PM
> To: dnsadmin
> Cc: [EMAIL PROTECTED]
> Subject: Re: .CA lookups are wrong?
>
>
>
> if you look at XML interface of CIRA whois
>
> http://www.cira.ca/cira/public/?XML=Y&transac_type=WHOIS&LANGUE=en
> &SUBDOMAIN=toronto.
> <result>
> <error>
> <code>01282</code>
> <description>Domain name is restricted to municipal
> government.</description>
> </error>
> <subdomain>toronto.ca</subdomain>
> </result>
>
> http://www.cira.ca/cira/public/?XML=Y&transac_type=WHOIS&LANGUE=en
&SUBDOMAIN=toronto.bc.ca
<result>
<error>
<code>01282</code>
<description>Domain name is restricted to municipal
government.</description>
</error>
<subdomain>toronto.bc.ca</subdomain>
</result>
We don't nave a full list of all cities, towns etc... in Canada to check -
we
ask CIRA
Cira responses the same code and for us it means that
domain must look like
(town|city|police|.....).toronto.(provice).ca
in a lookup response from OpenSRS there is a response_code and for
domains with "Domain name is restricted to municipal government." (CIRA
code
01282 or 02001) it equals 247
if you do a lookup for conflicting name then you can get a code 246 - what
means
that you can register this domain through blocker.
(Example - joy.ca)
there are two names of other level (3rd level)
and regular whois shows UNAV
but an owner of joy.on.ca or joy.qc.ca or any other person can register
joy.ca
(if other owner(s) agree to give him joy.ca).
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
--
Evgeniy
OpenSRS developer