whois 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. data/lib/whois/record/parser/whois.dns.be.rb +15 -17
  2. data/lib/whois/record/parser/whois.domainregistry.ie.rb +7 -3
  3. data/lib/whois/record/parser/whois.enom.com.rb +1 -1
  4. data/lib/whois/record/parser/whois.nic.uk.rb +15 -13
  5. data/lib/whois/record/scanners/whois.cnnic.cn.rb +7 -0
  6. data/lib/whois/record/scanners/whois.domainregistry.ie.rb +8 -0
  7. data/lib/whois/version.rb +1 -1
  8. data/spec/fixtures/responses/whois.cnnic.cn/status_reserved_list.expected +12 -0
  9. data/spec/fixtures/responses/whois.cnnic.cn/status_reserved_list.txt +1 -0
  10. data/spec/fixtures/responses/whois.dns.be/property_status_available.expected +8 -0
  11. data/spec/fixtures/responses/whois.dns.be/property_status_available.txt +39 -0
  12. data/spec/fixtures/responses/whois.dns.be/property_status_free.expected +8 -0
  13. data/spec/fixtures/responses/whois.dns.be/property_status_free.txt +41 -0
  14. data/spec/fixtures/responses/whois.dns.be/property_status_not_available.expected +8 -0
  15. data/spec/fixtures/responses/whois.dns.be/property_status_not_available.txt +63 -0
  16. data/spec/fixtures/responses/whois.dns.be/property_status_registered.expected +8 -0
  17. data/spec/fixtures/responses/whois.dns.be/property_status_registered.txt +66 -0
  18. data/spec/fixtures/responses/whois.dns.be/status_available.txt +39 -41
  19. data/spec/fixtures/responses/whois.dns.be/status_registered.txt +65 -66
  20. data/spec/fixtures/responses/whois.domainregistry.ie/property_contacts_multiple.expected +19 -0
  21. data/spec/fixtures/responses/whois.domainregistry.ie/property_contacts_multiple.txt +29 -0
  22. data/spec/fixtures/responses/whois.domainregistry.ie/token_application_pending.expected +2 -0
  23. data/spec/fixtures/responses/whois.domainregistry.ie/token_application_pending.txt +10 -0
  24. data/spec/fixtures/responses/whois.enom.com/property_contacts_empty_name.expected +15 -0
  25. data/spec/fixtures/responses/whois.enom.com/property_contacts_empty_name.txt +65 -0
  26. data/spec/fixtures/responses/whois.nic.uk/property_status_registered_until_expiry_date.expected +8 -0
  27. data/spec/fixtures/responses/whois.nic.uk/property_status_registered_until_expiry_date.txt +45 -0
  28. data/spec/whois/record/parser/responses/whois.cnnic.cn/status_reserved_list_spec.rb +44 -0
  29. data/spec/whois/record/parser/responses/whois.dns.be/property_status_available_spec.rb +39 -0
  30. data/spec/whois/record/parser/responses/whois.dns.be/property_status_free_spec.rb +39 -0
  31. data/spec/whois/record/parser/responses/whois.dns.be/property_status_not_available_spec.rb +39 -0
  32. data/spec/whois/record/parser/responses/whois.dns.be/property_status_registered_spec.rb +39 -0
  33. data/spec/whois/record/parser/responses/whois.domainregistry.ie/property_contacts_multiple_spec.rb +48 -0
  34. data/spec/whois/record/parser/responses/whois.domainregistry.ie/token_application_pending_spec.rb +29 -0
  35. data/spec/whois/record/parser/responses/whois.enom.com/property_contacts_empty_name_spec.rb +42 -0
  36. data/spec/whois/record/parser/responses/whois.nic.uk/property_status_registered_until_expiry_date_spec.rb +39 -0
  37. data/whois.gemspec +4 -4
  38. metadata +30 -3
@@ -1,66 +1,65 @@
1
- % .be Whois Server 4.0
2
- %
3
- % (c) dns.be 2001-2004 (http://www.dns.be)
4
- %
5
- %- The WHOIS service offered by DNS and the access to the records in the DNS
6
- %- WHOIS database are provided for information purposes only. It allows
7
- %- persons to check whether a specific domain name is still available or not
8
- %- and to obtain information related to the registration records of
9
- %- existing domain names.
10
- %-
11
- %- DNS cannot, under any circumstances, be held liable where the stored
12
- %- information would prove to be incomplete or inaccurate in any sense.
13
- %-
14
- %- By submitting a query you agree not to use the information made available
15
- %- to:
16
- %- - allow, enable or otherwise support the transmission of unsolicited,
17
- %- commercial advertising or other solicitations whether via email or otherwise;
18
- %- - target advertising in any possible way;
19
- %- - to cause nuisance in any possible way to the domain name holders by sending
20
- %- messages to them (whether by automated, electronic processes capable of
21
- %- enabling high volumes or other possible means).
22
- %-
23
- %- Without prejudice to the above, it is explicitly forbidden to extract, copy
24
- %- and/or use or re-utilise in any form and by any means (electronically or
25
- %- not) the whole or a quantitatively or qualitatively substantial part
26
- %- of the contents of the WHOIS database without prior and explicit permission
27
- %- by DNS, nor in any attempt thereof, to apply automated, electronic
28
- %- processes to DNS (or its systems).
29
- %-
30
- %- You agree that any reproduction and/or transmission of data for commercial
31
- %- purposes will always be considered as the extraction of a substantial
32
- %- part of the content of the WHOIS database.
33
- %-
34
- %- By submitting the query you agree to abide by this policy and accept that
35
- %- DNS can take measures to limit the use of its whois services in order to
36
- %- protect the privacy of its registrants or the integrity of the database.
37
- %-
38
- % WHOIS google
39
- Domain: google
40
- Status: REGISTERED
41
- Registered: Tue Dec 12 2000
42
-
43
- Licensee:
44
- Not shown, please visit www.dns.be for webbased whois.
45
-
46
- Agent Technical Contacts:
47
- Last Name: CCOPS
48
- Company Name: MarkMonitor
49
- Language: en
50
- Street: 10400 Overland Road PMB 155
51
- Location: ID 83709-1433 Boise
52
- Country: US
53
- Phone: +1.2083895740
54
- Fax: +1.2083895799
55
- Email: ccops@markmonitor.com
56
-
57
- Agent:
58
- Name: MarkMonitor
59
- Website: http://www.markmonitor.com
60
-
61
- Nameservers:
62
- ns1.google.com
63
- ns2.google.com
64
- ns3.google.com
65
- ns4.google.com
66
-
1
+ % .be Whois Server 5.0
2
+ %
3
+ % The WHOIS service offered by DNS.be and the access to the records in the DNS.be
4
+ % WHOIS database are provided for information purposes only. It allows
5
+ % persons to check whether a specific domain name is still available or not
6
+ % and to obtain information related to the registration records of
7
+ % existing domain names.
8
+ %
9
+ % DNS.be cannot, under any circumstances, be held liable where the stored
10
+ % information would prove to be incomplete or inaccurate in any sense.
11
+ %
12
+ % By submitting a query you agree not to use the information made available
13
+ % to:
14
+ % - allow, enable or otherwise support the transmission of unsolicited,
15
+ % commercial advertising or other solicitations whether via email or otherwise;
16
+ % - target advertising in any possible way;
17
+ % - to cause nuisance in any possible way to the domain name holders by sending
18
+ % messages to them (whether by automated, electronic processes capable of
19
+ % enabling high volumes or other possible means).
20
+ %
21
+ % Without prejudice to the above, it is explicitly forbidden to extract, copy
22
+ % and/or use or re-utilise in any form and by any means (electronically or
23
+ % not) the whole or a quantitatively or qualitatively substantial part
24
+ % of the contents of the WHOIS database without prior and explicit permission
25
+ % by DNS.be, nor in any attempt thereof, to apply automated, electronic
26
+ % processes to DNS.be (or its systems).
27
+ %
28
+ % You agree that any reproduction and/or transmission of data for commercial
29
+ % purposes will always be considered as the extraction of a substantial
30
+ % part of the content of the WHOIS database.
31
+ %
32
+ % By submitting the query you agree to abide by this policy and accept that
33
+ % DNS.be can take measures to limit the use of its whois services in order to
34
+ % protect the privacy of its registrants or the integrity of the database.
35
+ %
36
+
37
+ Domain: google.be
38
+ Status: NOT AVAILABLE
39
+ Registered: Tue Dec 12 2000
40
+
41
+ Registrant:
42
+ Not shown, please visit www.dns.be for webbased whois.
43
+
44
+ Registrar Technical Contacts:
45
+ Name: CCOPS
46
+ Organisation: MarkMonitor
47
+ Language: en
48
+ Phone: +1.2083895740
49
+ Fax: +1.2083895799
50
+ Email: ccops@markmonitor.com
51
+
52
+
53
+ Registrar:
54
+ Name: MarkMonitor
55
+ Website: http://www.markmonitor.com
56
+
57
+ Nameservers:
58
+ ns1.google.com
59
+ ns2.google.com
60
+ ns3.google.com
61
+ ns4.google.com
62
+
63
+ Keys:
64
+
65
+ Please visit www.dns.be for more info.
@@ -0,0 +1,19 @@
1
+ #admin_contacts
2
+ should: %s CLASS(array)
3
+ should: %s SIZE(2)
4
+ should: %s[0] CLASS(contact)
5
+ should: %s[0].type == Whois::Record::Contact::TYPE_ADMIN
6
+ should: %s[0].id == "JL241-IEDR"
7
+ should: %s[0].name == "Jonathan Lundberg"
8
+ should: %s[1] CLASS(contact)
9
+ should: %s[1].type == Whois::Record::Contact::TYPE_ADMIN
10
+ should: %s[1].id == "JM474-IEDR"
11
+ should: %s[1].name == "John Moylan"
12
+
13
+ #technical_contacts
14
+ should: %s CLASS(array)
15
+ should: %s SIZE(1)
16
+ should: %s[0] CLASS(contact)
17
+ should: %s[0].type == Whois::Record::Contact::TYPE_TECHNICAL
18
+ should: %s[0].id == "JM474-IEDR"
19
+ should: %s[0].name == "John Moylan"
@@ -0,0 +1,29 @@
1
+
2
+ % Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96
3
+ % Do not remove this notice
4
+
5
+ domain: rte.ie
6
+ descr: RTE Commercial Enterprises Limited
7
+ descr: Body Corporate (Ltd,PLC,Company)
8
+ descr: Corporate Name
9
+ admin-c: JL241-IEDR
10
+ admin-c: JM474-IEDR
11
+ tech-c: JM474-IEDR
12
+ renewal: 31-March-2012
13
+ status: Active
14
+ nserver: NS3.RTE.IE 89.207.56.71
15
+ nserver: NS4.RTE.IE 89.207.56.70
16
+ source: IEDR
17
+
18
+ person: Jonathan Lundberg
19
+ nic-hdl: JL241-IEDR
20
+ source: IEDR
21
+
22
+ person: John Moylan
23
+ nic-hdl: JM474-IEDR
24
+ source: IEDR
25
+
26
+ person: John Moylan
27
+ nic-hdl: JM474-IEDR
28
+ source: IEDR
29
+
@@ -0,0 +1,10 @@
1
+
2
+ % Rights restricted by copyright; http://iedr.ie/index.php/mnudomregs/mnudnssearch/96
3
+ % Do not remove this notice
4
+
5
+ domain: peter.ie
6
+ expiry: 17 April 2012
7
+
8
+ % Application Pending - There is currently an application being processed for
9
+ % the domain name you have requested. If unsuccessful, the application would
10
+ % expire on the above date.
@@ -0,0 +1,15 @@
1
+ #registrant_contacts
2
+ should: %s CLASS(array)
3
+ should: %s SIZE(1)
4
+ should: %s[0] CLASS(contact)
5
+ should: %s[0].type == Whois::Record::Contact::TYPE_REGISTRANT
6
+ should: %s[0].name == ""
7
+ should: %s[0].organization == "Ben Cohen"
8
+ should: %s[0].address == "9 Carolyn Ct."
9
+ should: %s[0].city == "Owings Mills"
10
+ should: %s[0].zip == "21117"
11
+ should: %s[0].state == "MD"
12
+ should: %s[0].country_code == "US"
13
+ should: %s[0].phone == ""
14
+ should: %s[0].fax == ""
15
+ should: %s[0].email == ""
@@ -0,0 +1,65 @@
1
+ =-=-=-=
2
+
3
+ Registration Service Provided By: Namecheap.com
4
+ Contact: support@namecheap.com
5
+ Visit: http://namecheap.com
6
+
7
+ Domain name: meantimetofailure.com
8
+
9
+ Registrant Contact:
10
+ Ben Cohen
11
+ ()
12
+
13
+ Fax:
14
+ 9 Carolyn Ct.
15
+ Owings Mills, MD 21117
16
+ US
17
+
18
+ Administrative Contact:
19
+
20
+ Ben Cohen (heliostatic@gmail.com)
21
+ +41.405982572
22
+ Fax: +1.4105982572
23
+ 9 Carolyn Ct.
24
+ Owings Mills, MD 21117
25
+ US
26
+
27
+ Technical Contact:
28
+
29
+ Ben Cohen (heliostatic@gmail.com)
30
+ +41.405982572
31
+ Fax: +1.4105982572
32
+ 9 Carolyn Ct.
33
+ Owings Mills, MD 21117
34
+ US
35
+
36
+ Status: Locked
37
+
38
+ Name Servers:
39
+ NS1.MEDIATEMPLE.NET
40
+ NS2.MEDIATEMPLE.NET
41
+
42
+ Creation date: 16 Jan 2008 18:54:00
43
+ Expiration date: 16 Jan 2013 18:54:00
44
+
45
+
46
+
47
+
48
+ =-=-=-=
49
+ The data in this whois database is provided to you for information
50
+ purposes only, that is, to assist you in obtaining information about or
51
+ related to a domain name registration record. We make this information
52
+ available "as is," and do not guarantee its accuracy. By submitting a
53
+ whois query, you agree that you will use this data only for lawful
54
+ purposes and that, under no circumstances will you use this data to: (1)
55
+ enable high volume, automated, electronic processes that stress or load
56
+ this whois database system providing you this information; or (2) allow,
57
+ enable, or otherwise support the transmission of mass unsolicited,
58
+ commercial advertising or solicitations via direct mail, electronic
59
+ mail, or by telephone. The compilation, repackaging, dissemination or
60
+ other use of this data is expressly prohibited without prior written
61
+ consent from us.
62
+
63
+ We reserve the right to modify these terms at any time. By submitting
64
+ this query, you agree to abide by these terms.
65
+ Version 6.3 4/3/2002
@@ -0,0 +1,8 @@
1
+ #status
2
+ should: %s == :registered
3
+
4
+ #available?
5
+ should: %s == false
6
+
7
+ #registered?
8
+ should: %s == true
@@ -0,0 +1,45 @@
1
+
2
+ Domain name:
3
+ bedandbreakfastsearcher.co.uk
4
+
5
+ Registrant:
6
+ Mike Peacock
7
+
8
+ Registrant type:
9
+ UK Individual
10
+
11
+ Registrant's address:
12
+ The registrant is a non-trading individual who has opted to have their
13
+ address omitted from the WHOIS service.
14
+
15
+ Registrar:
16
+ Webfusion Ltd t/a 123-reg [Tag = 123-REG]
17
+ URL: http://www.123-reg.co.uk
18
+
19
+ Relevant dates:
20
+ Registered on: 16-Apr-2006
21
+ Expiry date: 16-Apr-2014
22
+ Last updated: 11-Apr-2012
23
+
24
+ Registration status:
25
+ Registered until expiry date.
26
+
27
+ Name servers:
28
+ ns1.rapidswitch.com
29
+ ns2.rapidswitch.com
30
+
31
+ WHOIS lookup made at 11:40:44 01-May-2012
32
+
33
+ --
34
+ This WHOIS information is provided for free by Nominet UK the central registry
35
+ for .uk domain names. This information and the .uk WHOIS are:
36
+
37
+ Copyright Nominet UK 1996 - 2012.
38
+
39
+ You may not access the .uk WHOIS or use any data from it except as permitted
40
+ by the terms of use available in full at http://www.nominet.org.uk/whois, which
41
+ includes restrictions on: (A) use of the data for advertising, or its
42
+ repackaging, recompilation, redistribution or reuse (B) obscuring, removing
43
+ or hiding any or all of this notice and (C) exceeding query rate or volume
44
+ limits. The data is provided on an 'as-is' basis and may lag behind the
45
+ register. Access may be withdrawn or restricted at any time.
@@ -0,0 +1,44 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.cnnic.cn/status_reserved_list.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake spec:generate
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.cnnic.cn.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisCnnicCn, "status_reserved_list.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.cnnic.cn/status_reserved_list.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#status" do
25
+ it do
26
+ @parser.status.should == []
27
+ end
28
+ end
29
+ describe "#available?" do
30
+ it do
31
+ @parser.available?.should == false
32
+ end
33
+ end
34
+ describe "#registered?" do
35
+ it do
36
+ @parser.registered?.should == true
37
+ end
38
+ end
39
+ describe "#reserved?" do
40
+ it do
41
+ @parser.reserved?.should == true
42
+ end
43
+ end
44
+ end
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.dns.be/property_status_available.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake spec:generate
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.dns.be.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisDnsBe, "property_status_available.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.dns.be/property_status_available.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#status" do
25
+ it do
26
+ @parser.status.should == :available
27
+ end
28
+ end
29
+ describe "#available?" do
30
+ it do
31
+ @parser.available?.should == true
32
+ end
33
+ end
34
+ describe "#registered?" do
35
+ it do
36
+ @parser.registered?.should == false
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,39 @@
1
+ # encoding: utf-8
2
+
3
+ # This file is autogenerated. Do not edit it manually.
4
+ # If you want change the content of this file, edit
5
+ #
6
+ # /spec/fixtures/responses/whois.dns.be/property_status_free.expected
7
+ #
8
+ # and regenerate the tests with the following rake task
9
+ #
10
+ # $ rake spec:generate
11
+ #
12
+
13
+ require 'spec_helper'
14
+ require 'whois/record/parser/whois.dns.be.rb'
15
+
16
+ describe Whois::Record::Parser::WhoisDnsBe, "property_status_free.expected" do
17
+
18
+ before(:each) do
19
+ file = fixture("responses", "whois.dns.be/property_status_free.txt")
20
+ part = Whois::Record::Part.new(:body => File.read(file))
21
+ @parser = klass.new(part)
22
+ end
23
+
24
+ describe "#status" do
25
+ it do
26
+ @parser.status.should == :available
27
+ end
28
+ end
29
+ describe "#available?" do
30
+ it do
31
+ @parser.available?.should == true
32
+ end
33
+ end
34
+ describe "#registered?" do
35
+ it do
36
+ @parser.registered?.should == false
37
+ end
38
+ end
39
+ end