Skip to content
Browse files

Sync definitions with Debian whois 5.0.20.

  • Loading branch information...
1 parent 2afaa8d commit ceafb8d372645e99a43b3bf0eb353d7aa96af020 @weppos committed Nov 11, 2012
View
6 CHANGELOG.md
@@ -3,11 +3,11 @@
## master
-- SERVER: Updated .HN TLD server.
+- SERVER: Updated .AZ, .FM, .MC, .HN, .PH, .PW, .RW, .TD, .COM.UY, .VN TLD definitions.
-- SERVER: Added .XN--MGBX4CD0AB (.مليسيا, Malaysia) IDN TLD server.
+- SERVER: Added .XN--MGBX4CD0AB (.مليسيا, Malaysia) IDN TLD definition.
-- SERVER: Updated .PW TLD server.
+- SERVER: Removed .XN--MGBA3A4F16A IDN TLD definition.
- NEW: ruby-whois learned the -h option to pass whois hostname on the fly
View
19 lib/whois/definitions/tlds.rb
@@ -67,7 +67,7 @@
Whois::Server.define :tld, ".au", "whois.audns.net.au"
Whois::Server.define :tld, ".aw", nil, { :adapter => :none }
Whois::Server.define :tld, ".ax", nil, { :adapter => :none }
-Whois::Server.define :tld, ".az", nil, { :adapter => :web, :url => "http://www.nic.az/AzCheck.htm" }
+Whois::Server.define :tld, ".az", nil, { :adapter => :web, :url => "http://www.nic.az/" }
Whois::Server.define :tld, ".ba", nil, { :adapter => :web, :url => "http://www.nic.ba/stream/whois/" }
Whois::Server.define :tld, ".bb", nil, { :adapter => :web, :url => "http://whois.telecoms.gov.bb/search_domain.php" }
Whois::Server.define :tld, ".bd", nil, { :adapter => :web, :url => "http://whois.btcl.net.bd/"}
@@ -84,7 +84,7 @@
Whois::Server.define :tld, ".bs", nil, { :adapter => :web, :url => "http://www.nic.bs/cgi-bin/search.pl" }
Whois::Server.define :tld, ".bt", nil, { :adapter => :web, :url => "http://www.nic.bt/" }
Whois::Server.define :tld, ".bv", nil, { :adapter => :none }
-Whois::Server.define :tld, ".by", 'whois.cctld.by'
+Whois::Server.define :tld, ".by", "whois.cctld.by"
Whois::Server.define :tld, ".bw", nil, { :adapter => :none }
Whois::Server.define :tld, ".bz", "whois.afilias-grs.info", { :adapter => :afilias }
Whois::Server.define :tld, ".co.ca", "whois.co.ca"
@@ -124,7 +124,7 @@
Whois::Server.define :tld, ".fi", "whois.fi"
Whois::Server.define :tld, ".fj", "whois.usp.ac.fj"
Whois::Server.define :tld, ".fk", nil, { :adapter => :none }
-Whois::Server.define :tld, ".fm", nil, { :adapter => :web, :url => "http://www.dot.fm/whois.html" }
+Whois::Server.define :tld, ".fm", nil, { :adapter => :web, :url => "http://dot.fm/whois.html" }
Whois::Server.define :tld, ".fo", "whois.nic.fo"
Whois::Server.define :tld, ".aeroport.fr", "whois.smallregistry.net"
Whois::Server.define :tld, ".avocat.fr", "whois.smallregistry.net"
@@ -200,7 +200,7 @@
Whois::Server.define :tld, ".lv", "whois.nic.lv"
Whois::Server.define :tld, ".ly", "whois.nic.ly"
Whois::Server.define :tld, ".ma", "whois.iam.net.ma"
-Whois::Server.define :tld, ".mc", "whois.ripe.net"
+Whois::Server.define :tld, ".mc", nil, { :adapter => :none }
Whois::Server.define :tld, ".md", "whois.nic.md"
Whois::Server.define :tld, ".me", "whois.meregistry.net"
Whois::Server.define :tld, ".mg", "whois.nic.mg"
@@ -238,7 +238,7 @@
Whois::Server.define :tld, ".pe", "kero.yachay.pe"
Whois::Server.define :tld, ".pf", nil, { :adapter => :none }
Whois::Server.define :tld, ".pg", nil, { :adapter => :none }
-Whois::Server.define :tld, ".ph", nil, { :adapter => :web, :url => "http://www.dot.ph/" }
+Whois::Server.define :tld, ".ph", nil, { :adapter => :web, :url => "http://www.dot.ph/whois" }
Whois::Server.define :tld, ".pk", nil, { :adapter => :web, :url => "http://www.pknic.net.pk/" }
Whois::Server.define :tld, ".co.pl", "whois.co.pl"
Whois::Server.define :tld, ".pl", "whois.dns.pl"
@@ -255,7 +255,7 @@
Whois::Server.define :tld, ".rs", "whois.rnids.rs"
Whois::Server.define :tld, ".edu.ru", "whois.informika.ru"
Whois::Server.define :tld, ".ru", "whois.tcinet.ru"
-Whois::Server.define :tld, ".rw", nil, { :adapter => :web, :url => "http://www.nic.rw/cgi-bin/whois.pl"}
+Whois::Server.define :tld, ".rw", nil, { :adapter => :none }
Whois::Server.define :tld, ".sa", "saudinic.net.sa"
Whois::Server.define :tld, ".sb", "whois.nic.net.sb"
Whois::Server.define :tld, ".sc", "whois.afilias-grs.info", { :adapter => :afilias }
@@ -278,7 +278,7 @@
Whois::Server.define :tld, ".sy", nil, { :adapter => :none }
Whois::Server.define :tld, ".sz", nil, { :adapter => :none }
Whois::Server.define :tld, ".tc", "whois.adamsnames.tc"
-Whois::Server.define :tld, ".td", nil, { :adapter => :none }
+Whois::Server.define :tld, ".td", nil, { :adapter => :web, :url => "http://www.nic.td/" }
Whois::Server.define :tld, ".tf", "whois.nic.fr"
Whois::Server.define :tld, ".tg", nil, { :adapter => :web, :url => "http://www.nic.tg/" }
Whois::Server.define :tld, ".th", "whois.thnic.co.th"
@@ -310,15 +310,15 @@
Whois::Server.define :tld, ".police.uk", nil, { :adapter => :none }
Whois::Server.define :tld, ".uk", "whois.nic.uk"
Whois::Server.define :tld, ".us", "whois.nic.us"
-Whois::Server.define :tld, ".com.uy", nil, { :adapter => :web, :url => "https://nic.anteldata.com.uy/dns/" }
+Whois::Server.define :tld, ".com.uy", nil, { :adapter => :web, :url => "https://nic.anteldata.com.uy/dns/consultaWhois/whois.action" }
Whois::Server.define :tld, ".uy", "whois.nic.org.uy"
Whois::Server.define :tld, ".uz", "whois.cctld.uz"
Whois::Server.define :tld, ".va", nil, { :adapter => :none }
Whois::Server.define :tld, ".vc", "whois.afilias-grs.info", { :adapter => :afilias }
Whois::Server.define :tld, ".ve", "whois.nic.ve"
Whois::Server.define :tld, ".vg", "whois.adamsnames.tc"
Whois::Server.define :tld, ".vi", nil, { :adapter => :web, :url => "http://www.nic.vi/whoisform.htm" }
-Whois::Server.define :tld, ".vn", nil, { :adapter => :web, :url => "http://www.vnnic.vn/english/" }
+Whois::Server.define :tld, ".vn", nil, { :adapter => :web, :url => "http://en.vnnic.vn/" }
Whois::Server.define :tld, ".vu", nil, { :adapter => :web, :url => "http://www.vunic.vu/whois.html" }
Whois::Server.define :tld, ".wf", "whois.nic.fr"
Whois::Server.define :tld, ".ws", "whois.samoanic.ws"
@@ -348,7 +348,6 @@
Whois::Server.define :tld, ".xn--kpry57d", "whois.twnic.net.tw"
Whois::Server.define :tld, ".xn--lgbbat1ad8j", "whois.nic.dz"
Whois::Server.define :tld, ".xn--mgb9awbf", "whois.registry.om"
-Whois::Server.define :tld, ".xn--mgba3a4f16a", "whois.nic.ir"
Whois::Server.define :tld, ".xn--mgbaam7a8h", "whois.aeda.net.ae"
Whois::Server.define :tld, ".xn--mgbayh7gpa", nil, { :adapter => :web, :url => "http://idn.jo/whois_a.aspx" }
Whois::Server.define :tld, ".xn--mgbbh1a71e", nil, { :adapter => :none }
View
23 spec/fixtures/responses/whois.ripe.net/mc/status_available.expected
@@ -1,23 +0,0 @@
-#status
- should: %s == :available
-
-#available?
- should: %s == true
-
-#registered?
- should: %s == false
-
-
-#created_on
- should: %s raise_error(Whois::PropertyNotSupported)
-
-#updated_on
- should: %s raise_error(Whois::PropertyNotSupported)
-
-#expires_on
- should: %s raise_error(Whois::PropertyNotSupported)
-
-
-#nameservers
- should: %s CLASS(array)
- should: %s == []
View
11 spec/fixtures/responses/whois.ripe.net/mc/status_available.txt
@@ -1,11 +0,0 @@
-% This is the RIPE Database query service.
-% The objects are in RPSL format.
-%
-% The RIPE Database is subject to Terms and Conditions.
-% See http://www.ripe.net/db/support/db-terms-conditions.pdf
-
-%ERROR:101: no entries found
-%
-% No entries found in the selected source(s).
-
-
View
32 spec/fixtures/responses/whois.ripe.net/mc/status_registered.expected
@@ -1,32 +0,0 @@
-#status
- should: %s == :registered
-
-#available?
- should: %s == false
-
-#registered?
- should: %s == true
-
-
-#created_on
- should: %s raise_error(Whois::PropertyNotSupported)
-
-#updated_on
- should: %s raise_error(Whois::PropertyNotSupported)
-
-#expires_on
- should: %s raise_error(Whois::PropertyNotSupported)
-
-
-#nameservers
- should: %s CLASS(array)
- should: %s SIZE(3)
- should: %s[0] CLASS(nameserver)
- should: %s[0].name == "ns.nic.mc"
- should: %s[0].ipv4 == "195.78.6.131"
- should: %s[1] CLASS(nameserver)
- should: %s[1].name == "bow.rain.fr"
- should: %s[1].ipv4 == "194.51.3.49"
- should: %s[2] CLASS(nameserver)
- should: %s[2].name == "ns.ripe.net"
- should: %s[2].ipv4 == "193.0.0.194"
View
36 spec/fixtures/responses/whois.ripe.net/mc/status_registered.txt
@@ -1,36 +0,0 @@
-% This is the RIPE Database query service.
-% The objects are in RPSL format.
-%
-% The RIPE Database is subject to Terms and Conditions.
-% See http://www.ripe.net/db/support/db-terms-conditions.pdf
-
-% Note: This output has been filtered.
-% To receive output for a database update, use the "-B" flag.
-
-% Information related to 'nic.mc'
-
-domain: nic.mc
-descr: Ministère d'Etat
-descr: Direction des Télécommunications
-admin-c: CP621-RIPE
-tech-c: CP621-RIPE
-zone-c: CP621-RIPE
-nserver: ns.nic.mc 195.78.6.131
-nserver: bow.rain.fr 194.51.3.49
-nserver: ns.ripe.net 193.0.0.194
-mnt-by: MC-NIC-MNT
-source: RIPE # Filtered
-
-person: Christian Palmaro
-address: Ministère d'Etat
-address: Direction des Télécommunications
-address: 23, avenue Prince Héréditaire Albert
-address: 98000 Monaco
-phone: +377 93 15 88 00
-fax-no: +377 97 98 56 57
-e-mail: nic@nic.mc
-nic-hdl: CP621-RIPE
-mnt-by: MC-NIC-MNT
-source: RIPE # Filtered
-
-
View
60 spec/whois/record/parser/responses/whois.ripe.net/mc/status_available_spec.rb
@@ -1,60 +0,0 @@
-# encoding: utf-8
-
-# This file is autogenerated. Do not edit it manually.
-# If you want change the content of this file, edit
-#
-# /spec/fixtures/responses/whois.ripe.net/mc/status_available.expected
-#
-# and regenerate the tests with the following rake task
-#
-# $ rake spec:generate
-#
-
-require 'spec_helper'
-require 'whois/record/parser/whois.ripe.net.rb'
-
-describe Whois::Record::Parser::WhoisRipeNet, "status_available.expected" do
-
- subject do
- file = fixture("responses", "whois.ripe.net/mc/status_available.txt")
- part = Whois::Record::Part.new(:body => File.read(file))
- described_class.new(part)
- end
-
- describe "#status" do
- it do
- subject.status.should == :available
- end
- end
- describe "#available?" do
- it do
- subject.available?.should == true
- end
- end
- describe "#registered?" do
- it do
- subject.registered?.should == false
- end
- end
- describe "#created_on" do
- it do
- lambda { subject.created_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#updated_on" do
- it do
- lambda { subject.updated_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#expires_on" do
- it do
- lambda { subject.expires_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#nameservers" do
- it do
- subject.nameservers.should be_a(Array)
- subject.nameservers.should == []
- end
- end
-end
View
69 spec/whois/record/parser/responses/whois.ripe.net/mc/status_registered_spec.rb
@@ -1,69 +0,0 @@
-# encoding: utf-8
-
-# This file is autogenerated. Do not edit it manually.
-# If you want change the content of this file, edit
-#
-# /spec/fixtures/responses/whois.ripe.net/mc/status_registered.expected
-#
-# and regenerate the tests with the following rake task
-#
-# $ rake spec:generate
-#
-
-require 'spec_helper'
-require 'whois/record/parser/whois.ripe.net.rb'
-
-describe Whois::Record::Parser::WhoisRipeNet, "status_registered.expected" do
-
- subject do
- file = fixture("responses", "whois.ripe.net/mc/status_registered.txt")
- part = Whois::Record::Part.new(:body => File.read(file))
- described_class.new(part)
- end
-
- describe "#status" do
- it do
- subject.status.should == :registered
- end
- end
- describe "#available?" do
- it do
- subject.available?.should == false
- end
- end
- describe "#registered?" do
- it do
- subject.registered?.should == true
- end
- end
- describe "#created_on" do
- it do
- lambda { subject.created_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#updated_on" do
- it do
- lambda { subject.updated_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#expires_on" do
- it do
- lambda { subject.expires_on }.should raise_error(Whois::PropertyNotSupported)
- end
- end
- describe "#nameservers" do
- it do
- subject.nameservers.should be_a(Array)
- subject.nameservers.should have(3).items
- subject.nameservers[0].should be_a(Whois::Record::Nameserver)
- subject.nameservers[0].name.should == "ns.nic.mc"
- subject.nameservers[0].ipv4.should == "195.78.6.131"
- subject.nameservers[1].should be_a(Whois::Record::Nameserver)
- subject.nameservers[1].name.should == "bow.rain.fr"
- subject.nameservers[1].ipv4.should == "194.51.3.49"
- subject.nameservers[2].should be_a(Whois::Record::Nameserver)
- subject.nameservers[2].name.should == "ns.ripe.net"
- subject.nameservers[2].ipv4.should == "193.0.0.194"
- end
- end
-end

0 comments on commit ceafb8d

Please sign in to comment.
Something went wrong with that request. Please try again.