whois 0.9.0 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +161 -21
- data/LICENSE.rdoc +1 -1
- data/Manifest +184 -13
- data/README.rdoc +24 -31
- data/Rakefile +7 -7
- data/bin/ruby-whois +9 -3
- data/data/ip_del_list +2 -0
- data/data/make_servers_charset.pl +21 -0
- data/data/make_tld_serv.pl +8 -7
- data/data/servers_charset_list +37 -0
- data/data/tld_serv_list +32 -30
- data/lib/whois.rb +0 -1
- data/lib/whois/answer.rb +24 -13
- data/lib/whois/answer/parser.rb +27 -16
- data/lib/whois/answer/parser/NOTES.txt +3 -0
- data/lib/whois/answer/parser/base.rb +140 -101
- data/lib/whois/answer/parser/jobswhois.verisign-grs.com.rb +99 -0
- data/lib/whois/answer/parser/whois.adamsnames.tc.rb +64 -0
- data/lib/whois/answer/parser/whois.aeda.net.ae.rb +65 -0
- data/lib/whois/answer/parser/whois.aero.rb +6 -6
- data/lib/whois/answer/parser/whois.afilias-grs.info.rb +6 -6
- data/lib/whois/answer/parser/whois.afilias.info.rb +12 -12
- data/lib/whois/answer/parser/whois.biz.rb +72 -0
- data/lib/whois/answer/parser/whois.cat.rb +74 -0
- data/lib/whois/answer/parser/whois.cira.ca.rb +77 -0
- data/lib/whois/answer/parser/whois.crsnic.net.rb +16 -13
- data/lib/whois/answer/parser/whois.denic.de.rb +14 -18
- data/lib/whois/answer/parser/whois.dk-hostmaster.dk.rb +75 -0
- data/lib/whois/answer/parser/whois.domain-registry.nl.rb +72 -0
- data/lib/whois/answer/parser/whois.domainregistry.ie.rb +7 -13
- data/lib/whois/answer/parser/whois.dotmobiregistry.net.rb +72 -0
- data/lib/whois/answer/parser/whois.educause.edu.rb +8 -8
- data/lib/whois/answer/parser/whois.eu.org.rb +8 -17
- data/lib/whois/answer/parser/whois.eu.rb +64 -0
- data/lib/whois/answer/parser/whois.iana.org.rb +6 -9
- data/lib/whois/answer/parser/whois.isnic.is.rb +72 -0
- data/lib/whois/answer/parser/whois.meregistry.net.rb +72 -0
- data/lib/whois/answer/parser/whois.museum.rb +76 -0
- data/lib/whois/answer/parser/whois.nic-se.se.rb +77 -0
- data/lib/whois/answer/parser/whois.nic.ac.rb +92 -0
- data/lib/whois/answer/parser/whois.nic.asia.rb +12 -12
- data/lib/whois/answer/parser/whois.nic.cc.rb +99 -0
- data/lib/whois/answer/parser/whois.nic.cd.rb +68 -0
- data/lib/whois/answer/parser/whois.nic.ch.rb +64 -0
- data/lib/whois/answer/parser/whois.nic.coop.rb +74 -0
- data/lib/whois/answer/parser/whois.nic.fr.rb +8 -11
- data/lib/whois/answer/parser/whois.nic.gl.rb +77 -0
- data/lib/whois/answer/parser/whois.nic.gov.rb +8 -17
- data/lib/whois/answer/parser/whois.nic.hu.rb +21 -19
- data/lib/whois/answer/parser/whois.nic.im.rb +68 -0
- data/lib/whois/answer/parser/whois.nic.io.rb +64 -0
- data/lib/whois/answer/parser/whois.nic.it.rb +16 -16
- data/lib/whois/answer/parser/whois.nic.ly.rb +76 -0
- data/lib/whois/answer/parser/whois.nic.mu.rb +77 -0
- data/lib/whois/answer/parser/whois.nic.name.rb +8 -17
- data/lib/whois/answer/parser/whois.nic.nu.rb +84 -0
- data/lib/whois/answer/parser/whois.nic.tel.rb +76 -0
- data/lib/whois/answer/parser/whois.nic.tl.rb +76 -0
- data/lib/whois/answer/parser/whois.nic.travel.rb +72 -0
- data/lib/whois/answer/parser/whois.nic.tv.rb +16 -13
- data/lib/whois/answer/parser/whois.nic.uk.rb +82 -0
- data/lib/whois/answer/parser/whois.nic.us.rb +72 -0
- data/lib/whois/answer/parser/whois.norid.no.rb +72 -0
- data/lib/whois/answer/parser/whois.publicinterestregistry.net.rb +16 -16
- data/lib/whois/answer/parser/whois.register.bg.rb +74 -0
- data/lib/whois/answer/parser/whois.registro.br.rb +64 -0
- data/lib/whois/answer/parser/whois.registrypro.pro.rb +77 -0
- data/lib/whois/answer/parser/whois.ripe.net.rb +64 -0
- data/lib/whois/answer/parser/whois.ripn.net.rb +72 -0
- data/lib/whois/answer/parser/whois.rotld.ro.rb +64 -0
- data/lib/whois/answer/parser/whois.samoanic.ws.rb +76 -0
- data/lib/whois/answer/parser/whois.za.net.rb +8 -11
- data/lib/whois/answer/parser/whois.za.org.rb +7 -10
- data/lib/whois/answer/super_struct.rb +1 -1
- data/lib/whois/client.rb +4 -4
- data/lib/whois/definitions/NOTES.txt +12 -0
- data/lib/whois/definitions/ipv4.rb +2 -0
- data/lib/whois/definitions/tlds.rb +27 -27
- data/lib/whois/errors.rb +11 -1
- data/lib/whois/server.rb +1 -0
- data/lib/whois/server/adapters/web.rb +1 -2
- data/lib/whois/version.rb +4 -4
- data/test/answer/parser/base_test.rb +16 -29
- data/test/answer/parser/jobswhois.verisign-grs.com_test.rb +122 -0
- data/test/answer/parser/whois.adamsnames.tc_test.rb +122 -0
- data/test/answer/parser/whois.aeda.net.ae_test.rb +63 -0
- data/test/answer/parser/whois.afilias-grs.info_test.rb +274 -13
- data/test/answer/parser/whois.afilias.info_test.rb +1 -1
- data/test/answer/parser/whois.biz_test.rb +51 -0
- data/test/answer/parser/whois.cat_test.rb +51 -0
- data/test/answer/parser/whois.cira.ca_test.rb +51 -0
- data/test/answer/parser/whois.crsnic.net_test.rb +8 -3
- data/test/answer/parser/whois.denic.de_test.rb +11 -18
- data/test/answer/parser/whois.dk-hostmaster.dk_test.rb +57 -0
- data/test/answer/parser/whois.domain-registry.nl_test.rb +49 -0
- data/test/answer/parser/whois.domainregistry.ie_test.rb +7 -11
- data/test/answer/parser/whois.dotmobiregistry.net_test.rb +51 -0
- data/test/answer/parser/whois.educause.edu_test.rb +3 -3
- data/test/answer/parser/whois.eu.org_test.rb +6 -12
- data/test/answer/parser/whois.eu_test.rb +45 -0
- data/test/answer/parser/whois.iana.org_test.rb +2 -4
- data/test/answer/parser/whois.isnic.is_test.rb +49 -0
- data/test/answer/parser/whois.meregistry.net_test.rb +51 -0
- data/test/answer/parser/whois.museum_test.rb +51 -0
- data/test/answer/parser/whois.nic-se.se_test.rb +58 -0
- data/test/answer/parser/whois.nic.ac_test.rb +126 -0
- data/test/answer/parser/whois.nic.asia_test.rb +1 -1
- data/test/answer/parser/whois.nic.cc_test.rb +122 -0
- data/test/answer/parser/whois.nic.cd_test.rb +49 -0
- data/test/answer/parser/whois.nic.ch_test.rb +45 -0
- data/test/answer/parser/whois.nic.coop_test.rb +51 -0
- data/test/answer/parser/whois.nic.fr_test.rb +178 -13
- data/test/answer/parser/whois.nic.gl_test.rb +51 -0
- data/test/answer/parser/whois.nic.gov_test.rb +6 -12
- data/test/answer/parser/whois.nic.hu_test.rb +9 -7
- data/test/answer/parser/whois.nic.im_test.rb +47 -0
- data/test/answer/parser/whois.nic.io_test.rb +45 -0
- data/test/answer/parser/whois.nic.it_test.rb +6 -3
- data/test/answer/parser/whois.nic.ly_test.rb +51 -0
- data/test/answer/parser/whois.nic.mu_test.rb +97 -0
- data/test/answer/parser/whois.nic.name_test.rb +6 -12
- data/test/answer/parser/whois.nic.nu_test.rb +59 -0
- data/test/answer/parser/whois.nic.tel_test.rb +51 -0
- data/test/answer/parser/whois.nic.tl_test.rb +51 -0
- data/test/answer/parser/whois.nic.travel_test.rb +51 -0
- data/test/answer/parser/whois.nic.tv_test.rb +9 -5
- data/test/answer/parser/whois.nic.uk_test.rb +63 -0
- data/test/answer/parser/whois.nic.us_test.rb +51 -0
- data/test/answer/parser/whois.norid.no_test.rb +49 -0
- data/test/answer/parser/whois.register.bg_test.rb +49 -0
- data/test/answer/parser/whois.registro.br_test.rb +45 -0
- data/test/answer/parser/whois.registrypro.pro_test.rb +84 -0
- data/test/answer/parser/whois.ripe.net_test.rb +203 -0
- data/test/answer/parser/whois.ripn.net_test.rb +94 -0
- data/test/answer/parser/whois.rotld.ro_test.rb +45 -0
- data/test/answer/parser/whois.samoanic.ws_test.rb +51 -0
- data/test/answer/parser/whois.za.net_test.rb +2 -4
- data/test/answer/parser/whois.za.org_test.rb +2 -4
- data/test/answer/parser_test.rb +71 -48
- data/test/answer_test.rb +57 -21
- data/test/client_test.rb +5 -2
- data/test/errors_test.rb +23 -0
- data/test/list_tld +74 -76
- data/test/testcases/responses/jobswhois.verisign-grs.com/available.txt +44 -0
- data/test/testcases/responses/jobswhois.verisign-grs.com/registered.txt +54 -0
- data/test/testcases/responses/super_struct_test.rb +3 -4
- data/test/testcases/responses/whois.adamsnames.tc/gd/available.txt +2 -0
- data/test/testcases/responses/whois.adamsnames.tc/gd/registered.txt +26 -0
- data/test/testcases/responses/whois.adamsnames.tc/tc/available.txt +2 -0
- data/test/testcases/responses/whois.adamsnames.tc/tc/registered.txt +28 -0
- data/test/testcases/responses/whois.adamsnames.tc/vg/available.txt +2 -0
- data/test/testcases/responses/whois.adamsnames.tc/vg/registered.txt +28 -0
- data/test/testcases/responses/whois.aeda.net.ae/available.txt +1 -0
- data/test/testcases/responses/whois.aeda.net.ae/registered.txt +15 -0
- data/test/testcases/responses/whois.biz/available.txt +25 -0
- data/test/testcases/responses/whois.biz/registered.txt +89 -0
- data/test/testcases/responses/whois.cat/available.txt +18 -0
- data/test/testcases/responses/whois.cat/registered.txt +83 -0
- data/test/testcases/responses/whois.cira.ca/available.txt +9 -0
- data/test/testcases/responses/whois.cira.ca/registered.txt +47 -0
- data/test/testcases/responses/whois.dk-hostmaster.dk/available.txt +15 -0
- data/test/testcases/responses/whois.dk-hostmaster.dk/registered.txt +47 -0
- data/test/testcases/responses/whois.domain-registry.nl/available.txt +21 -0
- data/test/testcases/responses/whois.domain-registry.nl/registered.txt +67 -0
- data/test/testcases/responses/whois.dotmobiregistry.net/available.txt +25 -0
- data/test/testcases/responses/whois.dotmobiregistry.net/registered.txt +81 -0
- data/test/testcases/responses/whois.eu/available.txt +47 -0
- data/test/testcases/responses/whois.eu/registered.txt +63 -0
- data/test/testcases/responses/whois.isnic.is/available.txt +7 -0
- data/test/testcases/responses/whois.isnic.is/registered.txt +57 -0
- data/test/testcases/responses/{whois.afilias-grs.info → whois.meregistry.net}/available.txt +0 -0
- data/test/testcases/responses/whois.meregistry.net/registered.txt +94 -0
- data/test/testcases/responses/whois.museum/available.txt +18 -0
- data/test/testcases/responses/whois.museum/registered.txt +92 -0
- data/test/testcases/responses/whois.nic-se.se/available.txt +21 -0
- data/test/testcases/responses/whois.nic-se.se/registered.txt +37 -0
- data/test/testcases/responses/whois.nic.ac/available.txt +2 -0
- data/test/testcases/responses/whois.nic.ac/registered.txt +2 -0
- data/test/testcases/responses/whois.nic.cc/available.txt +44 -0
- data/test/testcases/responses/whois.nic.cc/registered.txt +58 -0
- data/test/testcases/responses/whois.nic.cd/available.txt +1 -0
- data/test/testcases/responses/whois.nic.cd/registered.txt +85 -0
- data/test/testcases/responses/whois.nic.ch/available.txt +2 -0
- data/test/testcases/responses/whois.nic.ch/registered.txt +28 -0
- data/test/testcases/responses/whois.nic.coop/available.txt +33 -0
- data/test/testcases/responses/whois.nic.coop/registered.txt +123 -0
- data/test/testcases/responses/whois.nic.fr/{available.txt → fr/available.txt} +0 -0
- data/test/testcases/responses/whois.nic.fr/{registered.txt → fr/registered.txt} +0 -0
- data/test/testcases/responses/whois.nic.fr/pm/available.txt +19 -0
- data/test/testcases/responses/whois.nic.fr/pm/registered.txt +88 -0
- data/test/testcases/responses/whois.nic.fr/re/available.txt +19 -0
- data/test/testcases/responses/whois.nic.fr/re/registered.txt +83 -0
- data/test/testcases/responses/whois.nic.fr/wf/available.txt +19 -0
- data/test/testcases/responses/whois.nic.fr/wf/registered.txt +88 -0
- data/test/testcases/responses/whois.nic.fr/yt/available.txt +19 -0
- data/test/testcases/responses/whois.nic.fr/yt/registered.txt +88 -0
- data/test/testcases/responses/whois.nic.gl/available.txt +23 -0
- data/test/testcases/responses/whois.nic.gl/registered.txt +40 -0
- data/test/testcases/responses/whois.nic.hu/available.txt +5 -5
- data/test/testcases/responses/whois.nic.hu/in_progress.txt +5 -5
- data/test/testcases/responses/whois.nic.hu/registered.txt +6 -6
- data/test/testcases/responses/whois.nic.im/available.txt +2 -0
- data/test/testcases/responses/whois.nic.im/registered.txt +45 -0
- data/test/testcases/responses/whois.nic.io/available.txt +2 -0
- data/test/testcases/responses/whois.nic.io/registered.txt +2 -0
- data/test/testcases/responses/whois.nic.ly/available.txt +1 -0
- data/test/testcases/responses/whois.nic.ly/registered.txt +65 -0
- data/test/testcases/responses/whois.nic.mu/ki/available.txt +20 -0
- data/test/testcases/responses/whois.nic.mu/ki/registered.txt +30 -0
- data/test/testcases/responses/whois.nic.mu/mu/available.txt +9 -0
- data/test/testcases/responses/whois.nic.mu/mu/registered.txt +22 -0
- data/test/testcases/responses/whois.nic.nu/available.txt +19 -0
- data/test/testcases/responses/whois.nic.nu/registered.txt +35 -0
- data/test/testcases/responses/whois.nic.tel/available.txt +59 -0
- data/test/testcases/responses/whois.nic.tel/registered.txt +111 -0
- data/test/testcases/responses/whois.nic.tl/available.txt +21 -0
- data/test/testcases/responses/whois.nic.tl/registered.txt +29 -0
- data/test/testcases/responses/whois.nic.travel/available.txt +25 -0
- data/test/testcases/responses/whois.nic.travel/registered.txt +75 -0
- data/test/testcases/responses/whois.nic.uk/available.txt +20 -0
- data/test/testcases/responses/whois.nic.uk/invalid.txt +22 -0
- data/test/testcases/responses/whois.nic.uk/registered.txt +50 -0
- data/test/testcases/responses/whois.nic.us/available.txt +29 -0
- data/test/testcases/responses/whois.nic.us/registered.txt +99 -0
- data/test/testcases/responses/whois.norid.no/available.txt +5 -0
- data/test/testcases/responses/whois.norid.no/registered.txt +34 -0
- data/test/testcases/responses/whois.register.bg/available.txt +1 -0
- data/test/testcases/responses/whois.register.bg/registered.txt +44 -0
- data/test/testcases/responses/whois.registro.br/available.txt +22 -0
- data/test/testcases/responses/whois.registro.br/registered.txt +23 -0
- data/test/testcases/responses/whois.registrypro.pro/available.txt +20 -0
- data/test/testcases/responses/whois.registrypro.pro/registered.txt +62 -0
- data/test/testcases/responses/whois.ripe.net/fo/available.txt +11 -0
- data/test/testcases/responses/whois.ripe.net/fo/registered.txt +45 -0
- data/test/testcases/responses/whois.ripe.net/gm/available.txt +11 -0
- data/test/testcases/responses/whois.ripe.net/gm/registered.txt +37 -0
- data/test/testcases/responses/whois.ripe.net/mc/available.txt +11 -0
- data/test/testcases/responses/whois.ripe.net/mc/registered.txt +36 -0
- data/test/testcases/responses/whois.ripe.net/sm/available.txt +11 -0
- data/test/testcases/responses/whois.ripe.net/sm/registered.txt +60 -0
- data/test/testcases/responses/whois.ripe.net/va/available.txt +11 -0
- data/test/testcases/responses/whois.ripe.net/va/registered.txt +48 -0
- data/test/testcases/responses/whois.ripn.net/ru/available.txt +9 -0
- data/test/testcases/responses/whois.ripn.net/ru/registered.txt +24 -0
- data/test/testcases/responses/whois.ripn.net/su/available.txt +9 -0
- data/test/testcases/responses/whois.ripn.net/su/registered.txt +20 -0
- data/test/testcases/responses/whois.rotld.ro/available.txt +16 -0
- data/test/testcases/responses/whois.rotld.ro/registered.txt +27 -0
- data/test/testcases/responses/whois.samoanic.ws/available.txt +12 -0
- data/test/testcases/responses/whois.samoanic.ws/registered.txt +34 -0
- data/whois.gemspec +19 -19
- metadata +274 -31
- data/lib/whois/answer/parser/README.rdoc +0 -21
- data/lib/whois/definitions/ipv4.txt +0 -214
- data/lib/whois/definitions/ipv6.txt +0 -32
- data/lib/whois/definitions/tld.notes.txt +0 -1
- data/lib/whois/definitions/tlds.txt +0 -354
- data/lib/whois/whois.rb +0 -185
- data/test/testcases/responses/whois.afilias-grs.info/registered.txt +0 -122
- data/test/testcases/responses/whois.nic.fr/MULTIPLE.txt +0 -4
- data/test/whois_test.rb +0 -32
- data/utils/tlds.txt +0 -318
@@ -42,10 +42,8 @@ class AnswerParserWhoisZaNetTest < Whois::Answer::Parser::TestCase
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def test_expires_on
|
45
|
-
|
46
|
-
|
47
|
-
assert_equal nil,
|
48
|
-
@klass.new(load_part('/available.txt')).expires_on
|
45
|
+
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).expires_on }
|
46
|
+
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).expires_on }
|
49
47
|
end
|
50
48
|
|
51
49
|
end
|
@@ -42,10 +42,8 @@ class AnswerParserWhoisZaOrgTest < Whois::Answer::Parser::TestCase
|
|
42
42
|
end
|
43
43
|
|
44
44
|
def test_expires_on
|
45
|
-
|
46
|
-
|
47
|
-
assert_equal nil,
|
48
|
-
@klass.new(load_part('/available.txt')).expires_on
|
45
|
+
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/registered.txt')).expires_on }
|
46
|
+
assert_raise(Whois::PropertyNotSupported) { @klass.new(load_part('/available.txt')).expires_on }
|
49
47
|
end
|
50
48
|
|
51
49
|
end
|
data/test/answer/parser_test.rb
CHANGED
@@ -50,85 +50,98 @@ class AnswerParserTest < Test::Unit::TestCase
|
|
50
50
|
end
|
51
51
|
|
52
52
|
|
53
|
-
|
54
|
-
def test_supported_with_zero_parts
|
53
|
+
def test_property_supported_with_zero_parts
|
55
54
|
answer = Whois::Answer.new(nil, [])
|
56
55
|
parser = @klass.new(answer)
|
57
|
-
assert !parser.
|
56
|
+
assert !parser.property_supported?(:disclaimer)
|
58
57
|
end
|
59
58
|
|
60
|
-
|
61
|
-
def test_supported_with_one_part_supported
|
59
|
+
def test_property_supported_with_one_part_supported
|
62
60
|
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new(nil, "whois.nic.it")])
|
63
61
|
parser = @klass.new(answer)
|
64
|
-
assert parser.
|
62
|
+
assert parser.property_supported?(:disclaimer)
|
65
63
|
end
|
66
64
|
|
67
|
-
|
68
|
-
def test_supported_with_one_part_unsupported
|
65
|
+
def test_property_supported_with_one_part_unsupported
|
69
66
|
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new(nil, "invalid.nic.it")])
|
70
67
|
parser = @klass.new(answer)
|
71
|
-
assert !parser.
|
68
|
+
assert !parser.property_supported?(:disclaimer)
|
72
69
|
end
|
73
70
|
|
74
|
-
|
75
|
-
def test_supported_with_two_parts
|
71
|
+
def test_property_supported_with_two_parts
|
76
72
|
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new(nil, "whois.crsnic.net"), Whois::Answer::Part.new(nil, "whois.nic.it")])
|
77
73
|
parser = @klass.new(answer)
|
78
74
|
assert parser.property_supported?(:disclaimer)
|
79
75
|
end
|
80
76
|
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
77
|
+
|
78
|
+
class Whois::Answer::Parser::TestParserSupported < Whois::Answer::Parser::Base
|
79
|
+
property_supported :status do
|
80
|
+
:status_supported
|
81
|
+
end
|
82
|
+
property_supported :created_on do
|
83
|
+
:created_on_supported
|
84
|
+
end
|
85
|
+
property_supported :updated_on do
|
86
|
+
:updated_on_supported
|
87
|
+
end
|
88
|
+
property_supported :expires_on do
|
89
|
+
:expires_on_supported
|
90
|
+
end
|
91
|
+
end
|
92
|
+
class Whois::Answer::Parser::TestParserUndefined < Whois::Answer::Parser::Base
|
93
|
+
property_supported :status do
|
94
|
+
:status_undefined
|
95
|
+
end
|
96
|
+
# not defined :created_on
|
97
|
+
# not defined :updated_on
|
98
|
+
# not defined :expires_on
|
99
|
+
end
|
100
|
+
class Whois::Answer::Parser::TestParserUnsupported < Whois::Answer::Parser::Base
|
101
|
+
property_not_supported :status
|
102
|
+
property_not_supported :created_on
|
103
|
+
property_not_supported :updated_on
|
104
|
+
property_not_supported :expires_on
|
85
105
|
end
|
86
106
|
|
87
|
-
def
|
88
|
-
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new(
|
107
|
+
def test_delegate_property_to_parsers_should_delegate_to_first_with_all_supported
|
108
|
+
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "test.parser.supported"), Whois::Answer::Part.new("", "test.parser.undefined")])
|
89
109
|
parser = @klass.new(answer)
|
90
|
-
|
91
|
-
end
|
110
|
+
assert_equal :status_undefined, parser.status
|
92
111
|
|
93
|
-
|
94
|
-
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new(nil, "invalid.nic.it")])
|
112
|
+
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "test.parser.undefined"), Whois::Answer::Part.new("", "test.parser.supported")])
|
95
113
|
parser = @klass.new(answer)
|
96
|
-
|
114
|
+
assert_equal :status_supported, parser.status
|
97
115
|
end
|
98
116
|
|
99
|
-
def
|
100
|
-
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new(
|
117
|
+
def test_delegate_property_to_parsers_should_delegate_to_first_with_one_supported
|
118
|
+
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "test.parser.supported"), Whois::Answer::Part.new("", "test.parser.undefined")])
|
101
119
|
parser = @klass.new(answer)
|
102
|
-
|
120
|
+
assert_equal :created_on_supported, parser.created_on
|
121
|
+
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "test.parser.supported"), Whois::Answer::Part.new("", "test.parser.unsupported")])
|
122
|
+
parser = @klass.new(answer)
|
123
|
+
assert_equal :created_on_supported, parser.created_on
|
103
124
|
end
|
104
125
|
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
parser = @klass.new(answer)
|
110
|
-
parser.parsers.first.expects(method).returns(:value)
|
111
|
-
assert_equal :value, parser.send(method)
|
112
|
-
end
|
126
|
+
def test_delegate_property_to_parsers_should_raise_unless_supported
|
127
|
+
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "test.parser.unsupported"), Whois::Answer::Part.new("", "test.parser.unsupported")])
|
128
|
+
parser = @klass.new(answer)
|
129
|
+
assert_raise(Whois::PropertyNotSupported) { parser.created_on }
|
113
130
|
end
|
114
131
|
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
assert_raise(Whois::PropertyNotSupported) { parser.send(method) }
|
120
|
-
end
|
132
|
+
def test_delegate_property_to_parsers_should_raise_unless_available
|
133
|
+
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "test.parser.undefined"), Whois::Answer::Part.new("", "test.parser.undefined")])
|
134
|
+
parser = @klass.new(answer)
|
135
|
+
assert_raise(Whois::PropertyNotAvailable) { parser.created_on }
|
121
136
|
end
|
122
137
|
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
assert_raise(Whois::ParserError) { parser.send(method) }
|
128
|
-
end
|
138
|
+
def test_delegate_property_to_parsers_should_raise_with_zero_parts
|
139
|
+
answer = Whois::Answer.new(nil, [])
|
140
|
+
parser = @klass.new(answer)
|
141
|
+
assert_raise(Whois::ParserError) { parser.created_on }
|
129
142
|
end
|
130
143
|
|
131
|
-
def
|
144
|
+
def test_delegate_property_to_parser_should_not_delegate_unallowed_methods
|
132
145
|
answer = Whois::Answer.new(nil, [Whois::Answer::Part.new("", "whois.nic.it")])
|
133
146
|
parser = @klass.new(answer)
|
134
147
|
parser.parsers.expects("unallowed_method").never
|
@@ -136,11 +149,11 @@ class AnswerParserTest < Test::Unit::TestCase
|
|
136
149
|
end
|
137
150
|
|
138
151
|
|
139
|
-
def
|
152
|
+
def test_self_parser_klass
|
140
153
|
assert_equal "Whois::Answer::Parser::WhoisNicIt", @klass.parser_klass("whois.nic.it").name
|
141
154
|
end
|
142
155
|
|
143
|
-
def
|
156
|
+
def test_self_parser_klass_with_preloaded_class
|
144
157
|
@klass.class_eval <<-RUBY
|
145
158
|
class WhoisFooBar
|
146
159
|
end
|
@@ -148,4 +161,14 @@ class AnswerParserTest < Test::Unit::TestCase
|
|
148
161
|
assert_equal "Whois::Answer::Parser::WhoisFooBar", @klass.parser_klass("whois.foo.bar").name
|
149
162
|
end
|
150
163
|
|
164
|
+
def test_self_parser_klass_should_return_blank_class_if_parser_doesnt_exist
|
165
|
+
assert_equal "Whois::Answer::Parser::Blank", @klass.parser_klass("whois.missing").name
|
166
|
+
end
|
167
|
+
|
168
|
+
def test_self_host_to_parser
|
169
|
+
assert_equal "WhoisIt", @klass.host_to_parser("whois.it")
|
170
|
+
assert_equal "WhoisNicIt", @klass.host_to_parser("whois.nic.it")
|
171
|
+
assert_equal "WhoisDomainRegistryNl", @klass.host_to_parser("whois.domain-registry.nl")
|
172
|
+
end
|
173
|
+
|
151
174
|
end
|
data/test/answer_test.rb
CHANGED
@@ -85,34 +85,70 @@ class AnswerTest < Test::Unit::TestCase
|
|
85
85
|
assert_instance_of Whois::Answer::Parser, answer.parser
|
86
86
|
end
|
87
87
|
|
88
|
+
|
89
|
+
class Whois::Answer::Parser::WhoisParserFake < Whois::Answer::Parser::Base
|
90
|
+
property_supported :status do
|
91
|
+
nil
|
92
|
+
end
|
93
|
+
property_supported :created_on do
|
94
|
+
Date.parse("2010-10-20")
|
95
|
+
end
|
96
|
+
property_not_supported :updated_on
|
97
|
+
# property_not_defined :expires_on
|
98
|
+
end
|
99
|
+
|
100
|
+
def test_property_supported?
|
101
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
102
|
+
assert answer.property_supported?(:status)
|
103
|
+
assert answer.property_supported?(:created_on)
|
104
|
+
assert !answer.property_supported?(:updated_on)
|
105
|
+
assert !answer.property_supported?(:expires_on)
|
106
|
+
end
|
107
|
+
|
88
108
|
def test_properties
|
89
|
-
answer = @klass.new(nil, [])
|
90
|
-
answer.parser.expects(:property_supported?).with(:domain).returns(true)
|
91
|
-
answer.parser.expects(:property_supported?).with(:domain_id).returns(true)
|
92
|
-
answer.parser.expects(:property_supported?).with(Not(any_of(:domain, :domain_id))).at_least(1).returns(false)
|
93
|
-
answer.parser.expects(:domain).returns("foo.com")
|
94
|
-
answer.parser.expects(:domain_id).returns(27)
|
95
|
-
|
109
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
96
110
|
properties = answer.properties
|
97
|
-
|
98
|
-
assert_equal
|
99
|
-
assert_equal
|
111
|
+
|
112
|
+
assert_equal Whois::Answer::Parser.properties.size, properties.keys.size
|
113
|
+
assert_equal nil, properties[:status]
|
114
|
+
assert_equal Date.parse("2010-10-20"), properties[:created_on]
|
115
|
+
assert_equal nil, properties[:updated_on]
|
116
|
+
assert_equal nil, properties[:expires_on]
|
100
117
|
end
|
101
118
|
|
102
|
-
def
|
103
|
-
answer = @klass.new(nil, [])
|
104
|
-
|
105
|
-
assert_equal :value, answer.property_supported?(:disclaimer)
|
119
|
+
def test_should_return_value_with_supported_property_getter
|
120
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
121
|
+
assert_equal Date.parse("2010-10-20"), answer.created_on
|
106
122
|
end
|
107
123
|
|
124
|
+
def test_should_return_nil_with_not_supported_property_getter
|
125
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
126
|
+
assert_equal nil, answer.updated_on
|
127
|
+
end
|
108
128
|
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
129
|
+
def test_should_return_nil_with_not_implemented_property
|
130
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
131
|
+
assert_equal nil, answer.expires_on
|
132
|
+
end
|
133
|
+
|
134
|
+
def test_should_return_false_with_supported_property_getter_and_not_value
|
135
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
136
|
+
assert !answer.status?
|
137
|
+
end
|
138
|
+
|
139
|
+
def test_should_return_true_with_supported_property_getter_and_value
|
140
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
141
|
+
assert answer.created_on?
|
142
|
+
end
|
143
|
+
|
144
|
+
def test_should_return_false_with_not_supported_property_exists
|
145
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
146
|
+
assert !answer.updated_on?
|
147
|
+
end
|
148
|
+
|
149
|
+
def test_should_return_false_with_not_implemented_property_exists
|
150
|
+
answer = @klass.new(nil, [Whois::Answer::Part.new("", "whois.parser.fake")])
|
151
|
+
assert !answer.expires_on?
|
116
152
|
end
|
117
153
|
|
118
154
|
end
|
data/test/client_test.rb
CHANGED
@@ -26,8 +26,11 @@ class ClientTest < Test::Unit::TestCase
|
|
26
26
|
|
27
27
|
def test_query_should_cast_qstring_to_string
|
28
28
|
server = Object.new
|
29
|
-
|
30
|
-
|
29
|
+
# I can't use the String because Array#to_s behaves differentl
|
30
|
+
# on Ruby 1.8.7 and Ruby 1.9.1
|
31
|
+
# http://redmine.ruby-lang.org/issues/show/2617
|
32
|
+
server.expects(:query).with(instance_of(String))
|
33
|
+
Whois::Server.expects(:guess).with(instance_of(String)).returns(server)
|
31
34
|
@client.query(["google", ".", "com"])
|
32
35
|
end
|
33
36
|
|
data/test/errors_test.rb
ADDED
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class WebInterfaceErrorTest < Test::Unit::TestCase
|
4
|
+
|
5
|
+
def setup
|
6
|
+
@klass = Whois::WebInterfaceError
|
7
|
+
end
|
8
|
+
|
9
|
+
def test_url
|
10
|
+
assert_raise(ArgumentError) { @klass.new }
|
11
|
+
end
|
12
|
+
|
13
|
+
def test_url
|
14
|
+
error = @klass.new("http://example.com")
|
15
|
+
assert_equal "http://example.com", error.url
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_message
|
19
|
+
error = @klass.new("http://example.com")
|
20
|
+
assert_match %r{http://example.com}, error.message
|
21
|
+
end
|
22
|
+
|
23
|
+
end
|
data/test/list_tld
CHANGED
@@ -29,25 +29,25 @@ edu;whois.educause.edu;google.edu;u34jedzcq.edu
|
|
29
29
|
gov;whois.nic.gov;gsa.gov;u34jedzcq.gov
|
30
30
|
int;whois.iana.org;nato.int;u34jedzcq.int
|
31
31
|
mil;;;
|
32
|
-
|
33
|
-
|
32
|
+
#.e164.arpa;;;
|
33
|
+
#.in-addr.arpa;;;
|
34
34
|
arpa;whois.iana.org;ip6.arpa;u34jedzcq.arpa
|
35
35
|
aero;whois.aero;srilankan.aero;u34jedzcq.aero
|
36
36
|
asia;whois.nic.asia;srilankan.aero;u34jedzcq.asia
|
37
|
-
|
38
|
-
|
39
|
-
|
37
|
+
biz;whois.biz;google.biz;u34jedzcq.biz
|
38
|
+
cat;whois.cat;gencat.cat;u34jedzcq.cat
|
39
|
+
coop;whois.nic.coop;calgary.coop;u34jedzcq.coop
|
40
40
|
info;whois.afilias.info;google.info;u34jedzcq.info
|
41
|
-
|
42
|
-
|
43
|
-
|
41
|
+
jobs;jobswhois.verisign-grs.com;goto.jobs;u34jedzcq.jobs
|
42
|
+
mobi;whois.dotmobiregistry.net;google.mobi;u34jedzcq.mobi
|
43
|
+
museum;whois.museum;musedoma.museum;u34jedzcq.museum
|
44
44
|
name;whois.nicc.name;carletti.name;u34jedzcq.name
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
45
|
+
pro;whois.registrypro.pro;registry.pro;u34jedzcq.pro
|
46
|
+
tel;whois.nic.tel;weppos.tel;u34jedzcq.tel
|
47
|
+
travel;whois.nic.travel;travel.travel;u34jedzcq.travel
|
48
|
+
ac;whois.nic.ac;google.ac;u34jedzcq.ac
|
49
49
|
ad;;;
|
50
|
-
|
50
|
+
ae;whois.aeda.net.ae;google.ae;u34jedzcq.ae
|
51
51
|
#Whois::Server.define :tld, ".af", "whois.nic.af"
|
52
52
|
#Whois::Server.define :tld, ".ag", "whois.nic.ag"
|
53
53
|
#Whois::Server.define :tld, ".ai", "whois.ai"
|
@@ -58,24 +58,24 @@ ao;;;
|
|
58
58
|
aq;;;
|
59
59
|
ar;;;
|
60
60
|
#Whois::Server.define :tld, ".as", "whois.nic.as"
|
61
|
-
|
61
|
+
at;whois.nic.at;google.at;u34jedzcq.at
|
62
62
|
#Whois::Server.define :tld, ".au", "whois.ausregistry.net.au"
|
63
63
|
aw;;;
|
64
64
|
ax;;;
|
65
65
|
az;;;
|
66
66
|
ba;;;
|
67
67
|
bb;;;
|
68
|
-
|
69
|
-
|
68
|
+
bd;;;
|
69
|
+
be;whois.dns.be;google.be;u34jedzcq.be
|
70
70
|
bf;;;
|
71
|
-
|
71
|
+
bg;whois.register.bg;google.bg;u34jedzcq.bg
|
72
72
|
bh;;;
|
73
73
|
bi;;;
|
74
74
|
#Whois::Server.define :tld, ".bj", "whois.nic.bj"
|
75
75
|
bm;;;
|
76
76
|
bn;;;
|
77
77
|
bo;;;
|
78
|
-
|
78
|
+
br;whois.registro.br;registro.br;u34jedzcq.br
|
79
79
|
bs;;;
|
80
80
|
bt;;;
|
81
81
|
bv;;;
|
@@ -83,12 +83,12 @@ by;;;
|
|
83
83
|
bw;;;
|
84
84
|
bz;whois.afilias-grs.info;google.bz;u34jedzcq.bz
|
85
85
|
#Whois::Server.define :tld, ".co.ca", "whois.co.ca"
|
86
|
-
|
87
|
-
|
88
|
-
|
86
|
+
ca;whois.cira.ca;google.ca;u34jedzcq.ca
|
87
|
+
cc;whois.nic.cc;google.cc;u34jedzcq.cc
|
88
|
+
cd;whois.nic.cd;google.cd;u34jedzcq.cd
|
89
89
|
cf;;;
|
90
90
|
cg;;;
|
91
|
-
|
91
|
+
ch;whois.nic.ch;google.ch;u34jedzcq.ch
|
92
92
|
#Whois::Server.define :tld, ".ci", "www.nic.ci"
|
93
93
|
#Whois::Server.define :tld, ".ck", "whois.nic.ck"
|
94
94
|
#Whois::Server.define :tld, ".cl", "whois.nic.cl"
|
@@ -105,7 +105,7 @@ cy;;;
|
|
105
105
|
#Whois::Server.define :tld, ".cz", "whois.nic.cz"
|
106
106
|
de;whois.denic.de;google.de;u34jedzcq.de
|
107
107
|
#Whois::Server.define :tld, ".dj", "whois.domain.dj"
|
108
|
-
|
108
|
+
dk;whois.dk-hostmaster.dk;google.dk;u34jedzcq.dk
|
109
109
|
#Whois::Server.define :tld, ".dm", "whois.nic.dm"
|
110
110
|
do;;;
|
111
111
|
dz;;;
|
@@ -115,23 +115,23 @@ eg;;;
|
|
115
115
|
er;;;
|
116
116
|
es;;;
|
117
117
|
et;;;
|
118
|
-
|
118
|
+
eu;whois.eu;google.eu;u34jedzcq.eu
|
119
119
|
#Whois::Server.define :tld, ".fi", "whois.ficora.fi"
|
120
120
|
#Whois::Server.define :tld, ".fj", "whois.usp.ac.fj"
|
121
121
|
fk;;;
|
122
122
|
fm;;;
|
123
|
-
|
123
|
+
fo;whois.ripe.net;nic.fo;u34jedzcq.fo
|
124
124
|
fr;whois.nic.fr;google.fr;u34jedzcq.fr
|
125
125
|
ga;;;
|
126
126
|
gb;;;
|
127
|
-
|
127
|
+
gd;whois.adamsnames.tc;google.gd;u34jedzcq.gd
|
128
128
|
ge;;;
|
129
|
-
|
129
|
+
gf;;;
|
130
130
|
#Whois::Server.define :tld, ".gg", "whois.gg"
|
131
131
|
gh;;;
|
132
132
|
gi;whois.afilias-grs.info;sapphire.gi;u34jedzcq.gi
|
133
|
-
|
134
|
-
|
133
|
+
gl;whois.nic.gl;google.gl;u34jedzcq.gl
|
134
|
+
gm;whois.ripe.net;nic.gm;u34jedzcq.gm
|
135
135
|
gn;;;
|
136
136
|
#Whois::Server.define :tld, ".gp", "whois.nic.gp"
|
137
137
|
gq;;;
|
@@ -147,15 +147,15 @@ hn;whois.afilias-grs.info;google.hn;u34jedzcq.hn
|
|
147
147
|
hr;;;
|
148
148
|
#Whois::Server.define :tld, ".ht", "whois.nic.ht"
|
149
149
|
hu;whois.nic.hu;google.hu;u34jedzcq.hu
|
150
|
-
#Whois::Server.define :tld, ".id", "whois.
|
150
|
+
#Whois::Server.define :tld, ".id", "whois.pandi.or.id"
|
151
151
|
ie;whois.domainregistry.ie;google.ie;u34jedzcq.ie
|
152
152
|
#Whois::Server.define :tld, ".il", "whois.isoc.org.il"
|
153
|
-
|
153
|
+
im;whois.nic.im;google.im;u34jedzcq.im
|
154
154
|
#Whois::Server.define :tld, ".in", "whois.registry.in"
|
155
|
-
|
155
|
+
io;whois.nic.io;drop.io;u34jedzcq.io
|
156
156
|
iq;;;
|
157
157
|
#Whois::Server.define :tld, ".ir", "whois.nic.ir"
|
158
|
-
|
158
|
+
is;whois.isnic.is;google.is;u34jedzcq.is
|
159
159
|
it;whois.nic.it;google.it;u34jedzcq.it
|
160
160
|
#Whois::Server.define :tld, ".je", "whois.je"
|
161
161
|
jm;;;
|
@@ -164,7 +164,7 @@ jo;;;
|
|
164
164
|
#Whois::Server.define :tld, ".ke", "whois.kenic.or.ke"
|
165
165
|
#Whois::Server.define :tld, ".kg", "whois.domain.kg"
|
166
166
|
kh;;;
|
167
|
-
|
167
|
+
ki;whois.nic.mu;google.ki;u34jedzcq.ki
|
168
168
|
km;;;
|
169
169
|
kn;;;
|
170
170
|
#Whois::Server.define :tld, ".kp", "whois.kcce.kp"
|
@@ -175,7 +175,6 @@ ky;;;
|
|
175
175
|
#Whois::Server.define :tld, ".la", "whois.nic.la"
|
176
176
|
lb;;;
|
177
177
|
lc;whois.afilias-grs.info;nic.lc;u34jedzcq.lc
|
178
|
-
#Whois::Server.define :tld, ".lc", "whois.afilias-grs.info"
|
179
178
|
#Whois::Server.define :tld, ".li", "whois.nic.li"
|
180
179
|
#Whois::Server.define :tld, ".lk", "whois.nic.lk"
|
181
180
|
lr;;;
|
@@ -183,28 +182,28 @@ ls;;;
|
|
183
182
|
#Whois::Server.define :tld, ".lt", "whois.domreg.lt"
|
184
183
|
#Whois::Server.define :tld, ".lu", "whois.dns.lu"
|
185
184
|
#Whois::Server.define :tld, ".lv", "whois.nic.lv"
|
186
|
-
|
185
|
+
ly;whois.nic.ly;google.ly;u34jedzcq.ly
|
187
186
|
#Whois::Server.define :tld, ".ma", "whois.iam.net.ma"
|
188
|
-
|
187
|
+
mc;whois.ripe.net;nic.mc;u34jedzcq.mc
|
189
188
|
#Whois::Server.define :tld, ".md", "whois.nic.md"
|
190
|
-
|
189
|
+
me;whois.meregistry.net;google.me;u34jedzcq.me
|
191
190
|
#Whois::Server.define :tld, ".mg", "whois.nic.mg"
|
192
191
|
mh;;;
|
193
192
|
mk;;;
|
194
193
|
ml;;;
|
195
|
-
|
194
|
+
mm;;;
|
196
195
|
mn;whois.afilias-grs.info;google.mn;u34jedzcq.mn
|
197
196
|
mo;;;
|
198
|
-
|
199
|
-
|
197
|
+
mp;;;
|
198
|
+
mq;;;
|
200
199
|
mr;;;
|
201
200
|
#Whois::Server.define :tld, ".ms", "whois.nic.ms"
|
202
201
|
mt;;;
|
203
|
-
|
202
|
+
mu;whois.nic.mu;google.mu;u34jedzcq.mu
|
204
203
|
mv;;;
|
205
204
|
mw;;;
|
206
205
|
#Whois::Server.define :tld, ".mx", "whois.nic.mx"
|
207
|
-
#Whois::Server.define :tld, ".my", "whois.
|
206
|
+
#Whois::Server.define :tld, ".my", "whois.domainregistry.my"
|
208
207
|
mz;;;
|
209
208
|
#Whois::Server.define :tld, ".na", "whois.na-nic.com.na"
|
210
209
|
#Whois::Server.define :tld, ".nc", "whois.cctld.nc"
|
@@ -212,11 +211,11 @@ ne;;;
|
|
212
211
|
#Whois::Server.define :tld, ".nf", "whois.nic.nf"
|
213
212
|
#Whois::Server.define :tld, ".ng", "whois.register.net.ng"
|
214
213
|
ni;;;
|
215
|
-
|
216
|
-
|
214
|
+
nl;whois.domain-registry.nl;google.nl;u34jedzcq.nl
|
215
|
+
no;whois.norid.no;google.no;u34jedzcq.no
|
217
216
|
np;;;
|
218
217
|
nr;;;
|
219
|
-
|
218
|
+
nu;whois.nic.nu;google.nu;u34jedzcq.nu
|
220
219
|
#Whois::Server.define :tld, ".nz", "whois.srs.net.nz"
|
221
220
|
om;;;
|
222
221
|
pa;;;
|
@@ -232,18 +231,17 @@ pn;;;
|
|
232
231
|
#Whois::Server.define :tld, ".pr", "whois.nic.pr"
|
233
232
|
ps;;;
|
234
233
|
#Whois::Server.define :tld, ".pt", "whois.dns.pt"
|
235
|
-
|
234
|
+
pw;;;
|
236
235
|
py;;;
|
237
236
|
qa;;;
|
238
237
|
re;whois.nic.fr;nic.re;u34jedzcq.re
|
239
|
-
|
238
|
+
ro;whois.rotld.ro;google.ro;u34jedzcq.ro
|
240
239
|
rs;;;
|
241
240
|
#Whois::Server.define :tld, ".edu.ru", "whois.informika.ru"
|
242
|
-
|
241
|
+
ru;whois.ripn.net;google.ru;u34jedzcq.ru
|
243
242
|
rw;;;
|
244
243
|
#Whois::Server.define :tld, ".sa", "saudinic.net.sa"
|
245
|
-
#Whois::Server.define :tld, ".sb", "whois.
|
246
|
-
#Whois::Server.define :tld, ".sc", "whois.afilias-grs.info"
|
244
|
+
#Whois::Server.define :tld, ".sb", "whois.coccaregistry.net"
|
247
245
|
sc;whois.afilias-grs.info;google.sc;u34jedzcq.sc
|
248
246
|
sd;;;
|
249
247
|
#Whois::Server.define :tld, ".se", "whois.nic-se.se"
|
@@ -253,28 +251,28 @@ sd;;;
|
|
253
251
|
sj;;;
|
254
252
|
#Whois::Server.define :tld, ".sk", "whois.sk-nic.sk"
|
255
253
|
#Whois::Server.define :tld, ".sl", "whois.nic.sl"
|
256
|
-
|
254
|
+
sm;whois.ripe.net;google.sm;u34jedzcq.sm
|
257
255
|
#Whois::Server.define :tld, ".sn", "whois.nic.sn"
|
258
|
-
|
259
|
-
|
256
|
+
so;;;
|
257
|
+
sr;;;
|
260
258
|
#Whois::Server.define :tld, ".st", "whois.nic.st"
|
261
|
-
|
259
|
+
su;whois.ripn.net;google.su;u34jedzcq.su
|
262
260
|
sv;;;
|
263
261
|
sy;;;
|
264
262
|
sz;;;
|
265
|
-
|
263
|
+
tc;whois.adamsnames.tc;google.tc;u34jedzcq.tc
|
266
264
|
td;;;
|
267
265
|
#Whois::Server.define :tld, ".tf", "whois.nic.tf"
|
268
266
|
tg;;;
|
269
267
|
#Whois::Server.define :tld, ".th", "whois.thnic.net"
|
270
|
-
|
268
|
+
tj;;;
|
271
269
|
#Whois::Server.define :tld, ".tk", "whois.dot.tk"
|
272
|
-
|
270
|
+
tl;whois.nic.tl;thinkcode.tl;u34jedzcq.tl
|
273
271
|
#Whois::Server.define :tld, ".tm", "whois.nic.tm"
|
274
272
|
tn;;;
|
275
273
|
#Whois::Server.define :tld, ".to", "whois.tonic.to"
|
276
|
-
|
277
|
-
#Whois::Server.define :tld, ".tr", "whois.
|
274
|
+
tp;;;
|
275
|
+
#Whois::Server.define :tld, ".tr", "whois.nic.tr"
|
278
276
|
tt;;;
|
279
277
|
tv;whois.nic.tv;thinkcode.tv;u34jedzcq.tv
|
280
278
|
#Whois::Server.define :tld, ".tw", "whois.twnic.net"
|
@@ -282,33 +280,33 @@ tz;;;
|
|
282
280
|
#Whois::Server.define :tld, ".ua", "whois.net.ua"
|
283
281
|
#Whois::Server.define :tld, ".ug", "www.registry.co.ug"
|
284
282
|
#Whois::Server.define :tld, ".ac.uk", "whois.ja.net"
|
285
|
-
|
286
|
-
|
283
|
+
.bl.uk;;;
|
284
|
+
.british-library.uk;;;
|
287
285
|
#Whois::Server.define :tld, ".gov.uk", "whois.ja.net"
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
286
|
+
.icnet.uk;;;
|
287
|
+
.jet.uk;;;
|
288
|
+
.mod.uk;;;
|
289
|
+
.nhs.uk;;;
|
290
|
+
.nls.uk;;;
|
291
|
+
.parliament.uk;;;
|
292
|
+
.police.uk;;;
|
293
|
+
uk;whois.nic.uk;google.co.uk;u34jedzcq.co.uk
|
296
294
|
#Whois::Server.define :tld, ".fed.us", "whois.nic.gov"
|
297
|
-
|
295
|
+
us;whois.nic.us;google.us;u34jedzcq.us
|
298
296
|
#Whois::Server.define :tld, ".com.uy", nil, {:web=>"https://nic.anteldata.com.uy/dns/", :adapter=>Whois::Server::Adapters::Web}
|
299
297
|
#Whois::Server.define :tld, ".uy", "whois.nic.org.uy"
|
300
298
|
#Whois::Server.define :tld, ".uz", "whois.cctld.uz"
|
301
|
-
|
299
|
+
va;whois.ripe.net;vatican.va;u34jedzcq.va
|
302
300
|
vc;whois.afilias-grs.info;google.vc;u34jedzcq.vc
|
303
301
|
#Whois::Server.define :tld, ".ve", "whois.nic.ve"
|
304
|
-
|
302
|
+
vg;whois.adamsnames.tc;google.vg;u34jedzcq.vg
|
305
303
|
vi;;;
|
306
304
|
vn;;;
|
307
305
|
vu;;;
|
308
|
-
|
309
|
-
|
306
|
+
wf;whois.nic.fr;nic.wf;u34jedzcq.wf
|
307
|
+
ws;whois.samoanic.ws;google.ws;u34jedzcq.ws
|
310
308
|
ye;;;
|
311
|
-
|
309
|
+
yt;whois.nic.fr;nic.yt;u34jedzcq.yt
|
312
310
|
yu;;;
|
313
311
|
#Whois::Server.define :tld, ".ac.za", "whois.ac.za"
|
314
312
|
#Whois::Server.define :tld, ".co.za", "whois.coza.net.za"
|