nicinfo 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/bin/nicinfo +22 -0
- data/lib/autnum.rb +90 -0
- data/lib/bootstrap.rb +198 -0
- data/lib/bsfiles/asn.json +2326 -0
- data/lib/bsfiles/dns.json +25 -0
- data/lib/bsfiles/entity.json +52 -0
- data/lib/bsfiles/ipv4.json +244 -0
- data/lib/bsfiles/ipv6.json +97 -0
- data/lib/cache.rb +141 -0
- data/lib/common_json.rb +263 -0
- data/lib/common_names.rb +49 -0
- data/lib/config.rb +260 -0
- data/lib/constants.rb +113 -0
- data/lib/data_tree.rb +205 -0
- data/lib/demo/autnum.json +228 -0
- data/lib/demo/domain-dnr.json +695 -0
- data/lib/demo/domain-rir.json +569 -0
- data/lib/demo/domains.json +625 -0
- data/lib/demo/entities.json +545 -0
- data/lib/demo/entity-dnr.json +143 -0
- data/lib/demo/entity-rir.json +394 -0
- data/lib/demo/error-code.json +31 -0
- data/lib/demo/help.json +58 -0
- data/lib/demo/ip.json +306 -0
- data/lib/demo/nameservers.json +434 -0
- data/lib/demo/ns-simple.json +210 -0
- data/lib/demo/ns-very-simple.json +41 -0
- data/lib/demo/ns.json +63 -0
- data/lib/demo/simple-ip.json +41 -0
- data/lib/demo/simple.json +13 -0
- data/lib/domain.rb +203 -0
- data/lib/ds_data.rb +70 -0
- data/lib/entity.rb +372 -0
- data/lib/enum.rb +47 -0
- data/lib/error_code.rb +56 -0
- data/lib/female-first-names.txt +4275 -0
- data/lib/ip.rb +86 -0
- data/lib/key_data.rb +70 -0
- data/lib/last-names.txt +88799 -0
- data/lib/male-first-names.txt +1219 -0
- data/lib/nicinfo_logger.rb +370 -0
- data/lib/nicinfo_main.rb +1013 -0
- data/lib/notices.rb +110 -0
- data/lib/ns.rb +108 -0
- data/lib/utils.rb +189 -0
- metadata +90 -0
data/lib/demo/ip.json
ADDED
@@ -0,0 +1,306 @@
|
|
1
|
+
{
|
2
|
+
"nicInfo_demoUrl":"https://rdap.apnic.net/ip/2001:db8::0",
|
3
|
+
"nicInfo_demoHint":"nicinfo 2001:db8::0",
|
4
|
+
"rdapConformance":[
|
5
|
+
"rdap_level_0"
|
6
|
+
],
|
7
|
+
"notices":[
|
8
|
+
{
|
9
|
+
"title":"ARIN's RDAP Service",
|
10
|
+
"description":[
|
11
|
+
"ARIN has been a leader in RESTful Whois technologies and is proud to offer the Registration Data Access Protocol service.",
|
12
|
+
"ARIN's RDAP server is complaint with RDAP Level 0."
|
13
|
+
]
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"title":"Terms of Use",
|
17
|
+
"description":[
|
18
|
+
"ARIN WHOIS data and services are subject to the Terms of Use available at: https://www.arin.net/whois_tou.html"
|
19
|
+
],
|
20
|
+
"links":[
|
21
|
+
{
|
22
|
+
"value":"http://whois.apnic.net/ip/2001:db8::0",
|
23
|
+
"rel":"terms-of-service",
|
24
|
+
"type":"text/html",
|
25
|
+
"href":"https://www.arin.net/whois_tou.html"
|
26
|
+
}
|
27
|
+
]
|
28
|
+
}
|
29
|
+
],
|
30
|
+
"handle":"NET6-2001-0DB8-0-1",
|
31
|
+
"objectClassName":"ip network",
|
32
|
+
"startAddress":"2001:db8::0",
|
33
|
+
"endAddress":"2001:db8::0:FFFF:FFFF:FFFF:FFFF:FFFF",
|
34
|
+
"ipVersion":"v6",
|
35
|
+
"name":"NET-RTR-1",
|
36
|
+
"description":[ "A network used for routing" ],
|
37
|
+
"type":"DIRECT ALLOCATION",
|
38
|
+
"country":"AU",
|
39
|
+
"parentHandle":"NET6-2001-0-0-1",
|
40
|
+
"status":[ "allocated" ],
|
41
|
+
"remarks":[
|
42
|
+
{
|
43
|
+
"title": "Registration Description",
|
44
|
+
"description":[
|
45
|
+
"Used for infrastructure and routing."
|
46
|
+
]
|
47
|
+
}
|
48
|
+
],
|
49
|
+
"links":[
|
50
|
+
{
|
51
|
+
"value":"http://testwhois.apnic.net/ip/2001:db8::0",
|
52
|
+
"rel":"self",
|
53
|
+
"href":"http://testwhois.apnic.net/ip/2001:db8::0"
|
54
|
+
},
|
55
|
+
{
|
56
|
+
"value":"http://example.net/ip/2001:db8::/48",
|
57
|
+
"rel":"up",
|
58
|
+
"href":"http://example.net/ip/2001:C00::/23"
|
59
|
+
}
|
60
|
+
],
|
61
|
+
"events":[
|
62
|
+
{
|
63
|
+
"eventAction":"registration",
|
64
|
+
"eventDate":"1990-12-31T23:59:60Z"
|
65
|
+
}
|
66
|
+
],
|
67
|
+
"entities":[
|
68
|
+
{
|
69
|
+
"handle":"ARIN-OPS",
|
70
|
+
"objectClassName":"entity",
|
71
|
+
"vcardArray":[
|
72
|
+
"vcard",
|
73
|
+
[
|
74
|
+
["version", {}, "text", "4.0"],
|
75
|
+
["fn", {}, "text", "ARIN Operations"],
|
76
|
+
["kind", {}, "text", "org"],
|
77
|
+
["org", {
|
78
|
+
"type":"work"
|
79
|
+
}, "text", "American Registry for Internet Numbers"],
|
80
|
+
["adr",
|
81
|
+
{
|
82
|
+
"type":"work"
|
83
|
+
},
|
84
|
+
"text",
|
85
|
+
[
|
86
|
+
"",
|
87
|
+
"Suite 200",
|
88
|
+
"3635 Concorde Parkway",
|
89
|
+
"Chantilly",
|
90
|
+
"VA",
|
91
|
+
"20151",
|
92
|
+
"United States"
|
93
|
+
]
|
94
|
+
]
|
95
|
+
]
|
96
|
+
],
|
97
|
+
"roles":[ "registrant" ],
|
98
|
+
"remarks":[
|
99
|
+
{
|
100
|
+
"title": "No Solicitations",
|
101
|
+
"description":[
|
102
|
+
"Absolutely no solicitations are accepted at by this contact. If you wish to offer services or products to the American Registry for Internet Numbers, contact Pete Toscano at +1-703-227-9840."
|
103
|
+
]
|
104
|
+
}
|
105
|
+
],
|
106
|
+
"links":[
|
107
|
+
{
|
108
|
+
"value":"http://example.net/entity/ARIN-OPS",
|
109
|
+
"rel":"self",
|
110
|
+
"href":"http://example.net/entity/ARIN-OPS"
|
111
|
+
}
|
112
|
+
],
|
113
|
+
"events":[
|
114
|
+
{
|
115
|
+
"eventAction":"registration",
|
116
|
+
"eventDate":"2012-12-31T23:59:60Z",
|
117
|
+
"eventActor": "mattr@arin.net"
|
118
|
+
},
|
119
|
+
{
|
120
|
+
"eventAction":"last changed",
|
121
|
+
"eventDate":"2013-12-31T23:59:60Z",
|
122
|
+
"eventActor": "mattr@arin.net"
|
123
|
+
}
|
124
|
+
],
|
125
|
+
"entities":[
|
126
|
+
{
|
127
|
+
"handle":"MATTR-ARIN",
|
128
|
+
"objectClassName":"entity",
|
129
|
+
"vcardArray":[
|
130
|
+
"vcard",
|
131
|
+
[
|
132
|
+
["version", {}, "text", "4.0"],
|
133
|
+
["fn", {}, "text", "Matt Rowley"],
|
134
|
+
["kind", {}, "text", "individual"],
|
135
|
+
["org", {
|
136
|
+
"type":"work"
|
137
|
+
}, "text", "American Registry for Internet Numbers"],
|
138
|
+
["title", {}, "text", "Operations Manager"],
|
139
|
+
["role", {}, "text", "Project Lead"],
|
140
|
+
["adr",
|
141
|
+
{
|
142
|
+
"type":"work"
|
143
|
+
},
|
144
|
+
"text",
|
145
|
+
[
|
146
|
+
"",
|
147
|
+
"Suite 200",
|
148
|
+
"3635 Concorde Parkway",
|
149
|
+
"Chantilly",
|
150
|
+
"VA",
|
151
|
+
"20151",
|
152
|
+
"United States"
|
153
|
+
]
|
154
|
+
],
|
155
|
+
["tel",
|
156
|
+
{
|
157
|
+
"type":["work", "voice"],
|
158
|
+
"pref":"1"
|
159
|
+
},
|
160
|
+
"uri",
|
161
|
+
"tel:+1-703-227-9840"
|
162
|
+
],
|
163
|
+
["email",
|
164
|
+
{
|
165
|
+
"type":"work"
|
166
|
+
},
|
167
|
+
"text",
|
168
|
+
"info@arin.net"
|
169
|
+
]
|
170
|
+
]
|
171
|
+
],
|
172
|
+
"roles":[ "administrative" ],
|
173
|
+
"remarks":[
|
174
|
+
{
|
175
|
+
"title": "No Solicitations",
|
176
|
+
"description":[
|
177
|
+
"Absolutely no solicitations are accepted at by this contact. If you wish to offer services or products to the American Registry for Internet Numbers, contact Pete Toscano at +1-703-227-9840."
|
178
|
+
]
|
179
|
+
}
|
180
|
+
],
|
181
|
+
"links":[
|
182
|
+
{
|
183
|
+
"value":"http://example.net/entity/MATTR-ARIN",
|
184
|
+
"rel":"self",
|
185
|
+
"href":"http://example.net/entity/MATTR-ARIN"
|
186
|
+
}
|
187
|
+
],
|
188
|
+
"events":[
|
189
|
+
{
|
190
|
+
"eventAction":"registration",
|
191
|
+
"eventDate":"2012-12-31T23:59:60Z",
|
192
|
+
"eventActor": "mattr@arin.net"
|
193
|
+
},
|
194
|
+
{
|
195
|
+
"eventAction":"last changed",
|
196
|
+
"eventDate":"2013-12-31T23:59:60Z",
|
197
|
+
"eventActor": "mattr@arin.net"
|
198
|
+
}
|
199
|
+
],
|
200
|
+
"asEventActor":[
|
201
|
+
{
|
202
|
+
"links":[
|
203
|
+
{
|
204
|
+
"value":"http://example.ent/ip/2001:db8::/48",
|
205
|
+
"rel":"related",
|
206
|
+
"href":"http://example.net/ip/2001:db8::/48"
|
207
|
+
}
|
208
|
+
],
|
209
|
+
"eventAction":"last changed",
|
210
|
+
"eventDate":"2013-12-31T23:59:60Z"
|
211
|
+
}
|
212
|
+
]
|
213
|
+
},
|
214
|
+
{
|
215
|
+
"handle":"MAK21-ARIN",
|
216
|
+
"objectClassName":"entity",
|
217
|
+
"vcardArray":[
|
218
|
+
"vcard",
|
219
|
+
[
|
220
|
+
["version", {}, "text", "4.0"],
|
221
|
+
["fn", {}, "text", "Mark Kosters"],
|
222
|
+
["kind", {}, "text", "individual"],
|
223
|
+
["org", {
|
224
|
+
"type":"work"
|
225
|
+
}, "text", "American Registry for Internet Numbers"],
|
226
|
+
["title", {}, "text", "Chief Technical Officer"],
|
227
|
+
["role", {}, "text", "Pointy Haired Boss"],
|
228
|
+
["adr",
|
229
|
+
{
|
230
|
+
"type":"work",
|
231
|
+
"label" : "3635 Concorde Parkway\nSuite200\nChantilly\nVA\n20151"
|
232
|
+
},
|
233
|
+
"text",
|
234
|
+
[
|
235
|
+
"",
|
236
|
+
"",
|
237
|
+
"",
|
238
|
+
"",
|
239
|
+
"",
|
240
|
+
"",
|
241
|
+
""
|
242
|
+
]
|
243
|
+
],
|
244
|
+
["tel",
|
245
|
+
{
|
246
|
+
"type":["work", "voice"],
|
247
|
+
"pref":"1"
|
248
|
+
},
|
249
|
+
"uri",
|
250
|
+
"tel:+1-703-227-9840"
|
251
|
+
],
|
252
|
+
["email",
|
253
|
+
{
|
254
|
+
"type":"work"
|
255
|
+
},
|
256
|
+
"text",
|
257
|
+
"info@arin.net"
|
258
|
+
]
|
259
|
+
]
|
260
|
+
],
|
261
|
+
"roles":[ "technical" ],
|
262
|
+
"remarks":[
|
263
|
+
{
|
264
|
+
"title": "No Solicitations",
|
265
|
+
"description":[
|
266
|
+
"Absolutely no solicitations are accepted at by this contact. If you wish to offer services or products to the American Registry for Internet Numbers, contact Pete Toscano at +1-703-227-9840."
|
267
|
+
]
|
268
|
+
}
|
269
|
+
],
|
270
|
+
"links":[
|
271
|
+
{
|
272
|
+
"value":"http://example.net/entity/MAK21-ARIN",
|
273
|
+
"rel":"self",
|
274
|
+
"href":"http://example.net/entity/MAK21-ARIN"
|
275
|
+
}
|
276
|
+
],
|
277
|
+
"events":[
|
278
|
+
{
|
279
|
+
"eventAction":"registration",
|
280
|
+
"eventDate":"2012-12-31T23:59:60Z",
|
281
|
+
"eventActor": "markk@arin.net"
|
282
|
+
},
|
283
|
+
{
|
284
|
+
"eventAction":"last changed",
|
285
|
+
"eventDate":"2013-12-31T23:59:60Z",
|
286
|
+
"eventActor": "markkb@arin.net"
|
287
|
+
}
|
288
|
+
],
|
289
|
+
"asEventActor":[
|
290
|
+
{
|
291
|
+
"links":[
|
292
|
+
{
|
293
|
+
"value":"http://example.ent/ip/2001:db8::/48",
|
294
|
+
"rel":"related",
|
295
|
+
"href":"http://example.net/ip/2001:db8::/48"
|
296
|
+
}
|
297
|
+
],
|
298
|
+
"eventAction":"reregistration",
|
299
|
+
"eventDate":"2012-12-31T23:59:60Z"
|
300
|
+
}
|
301
|
+
]
|
302
|
+
}
|
303
|
+
]
|
304
|
+
}
|
305
|
+
]
|
306
|
+
}
|