Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

whois.nic.cd is no longer returning a domain status

  • Loading branch information...
commit 31f7343e7edd8aa4dd3e2554396c125397c96e58 1 parent be57b9e
@weppos authored
View
2  CHANGELOG.md
@@ -9,6 +9,8 @@
- FIXED: kero.yachay.pe crashes when the status is `suspended`.
+- FIXED: whois.nic.cd crashes because the registry is no longer returning a status.
+
## Release 3.4.4
View
7 lib/whois/record/parser/whois.nic.cd.rb
@@ -22,8 +22,11 @@ class Parser
class WhoisNicCd < BaseCocca2
property_supported :status do
- list = Array.wrap(node("Domain Status")).map(&:downcase)
- list.include?("available") ? :available : super()
+ if node("Domain ID")
+ :registered
+ else
+ :available
+ end
end
end
View
8 spec/fixtures/responses/whois.nic.cd/status_available.txt
@@ -1,9 +1,9 @@
Domain Name: u34jedzcq.cd
Domain Status: Available
-TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of electronic processes that are high-volume and automated. This WHOIS database is provided by CDnic as a service to the internet community on behalf of Congo, the Democratic Republic (La Republique Democratique du Congo ? RDC).
+TERMS OF USE: You are not authorized to access or query our WHOIS database through the use of electronic processes that are high-volume and automated. This WHOIS database is provided by CDnic as a service to the internet community on behalf of Congo, the Democratic Republic (La Republique Democratique du Congo ? RDC).
+
+The data is for information purposes only. CDnic does not guarantee its accuracy. By submitting a WHOIS query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to CDnic it's members (or CDnic or member computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited.
-The data is for information purposes only. CDnic does not guarantee its accuracy. By submitting a WHOIS query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to CDnic it's members (or CDnic or member computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited.
-
->>> Last update of WHOIS database: 2014-01-22T15:37:38.641Z <<<
+>>> Last update of WHOIS database: 2014-02-18T11:46:50.985Z <<<
View
7 spec/fixtures/responses/whois.nic.cd/status_registered.txt
@@ -2,11 +2,6 @@ Domain Name: google.cd
Domain ID: 5758-CD
Sponsoring Registrar: MARKMONITOR
Sponsoring Registrar IANA ID:
-Domain Status: clientDeleteProhibited
-Domain Status: clientRenewProhibited
-Domain Status: ok
-Domain Status: clientUpdateProhibited
-Domain Status: clientTransferProhibited
@@ -21,4 +16,4 @@ TERMS OF USE: You are not authorized to access or query our WHOIS database throu
The data is for information purposes only. CDnic does not guarantee its accuracy. By submitting a WHOIS query, you agree to abide by the following terms of use: You agree that you may use this Data only for lawful purposes and that under no circumstances will you use this Data to: (1) allow, enable, or otherwise support the transmission of mass unsolicited, commercial advertising or solicitations via e-mail, telephone, or facsimile; or (2) enable high volume, automated, electronic processes that apply to CDnic it's members (or CDnic or member computer systems). The compilation, repackaging, dissemination or other use of this Data is expressly prohibited.
->>> Last update of WHOIS database: 2013-12-18T09:55:01.025Z <<<
+>>> Last update of WHOIS database: 2014-02-18T11:46:50.985Z <<<
Please sign in to comment.
Something went wrong with that request. Please try again.