nicinfo 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (47) hide show
  1. checksums.yaml +7 -0
  2. data/bin/nicinfo +22 -0
  3. data/lib/autnum.rb +90 -0
  4. data/lib/bootstrap.rb +198 -0
  5. data/lib/bsfiles/asn.json +2326 -0
  6. data/lib/bsfiles/dns.json +25 -0
  7. data/lib/bsfiles/entity.json +52 -0
  8. data/lib/bsfiles/ipv4.json +244 -0
  9. data/lib/bsfiles/ipv6.json +97 -0
  10. data/lib/cache.rb +141 -0
  11. data/lib/common_json.rb +263 -0
  12. data/lib/common_names.rb +49 -0
  13. data/lib/config.rb +260 -0
  14. data/lib/constants.rb +113 -0
  15. data/lib/data_tree.rb +205 -0
  16. data/lib/demo/autnum.json +228 -0
  17. data/lib/demo/domain-dnr.json +695 -0
  18. data/lib/demo/domain-rir.json +569 -0
  19. data/lib/demo/domains.json +625 -0
  20. data/lib/demo/entities.json +545 -0
  21. data/lib/demo/entity-dnr.json +143 -0
  22. data/lib/demo/entity-rir.json +394 -0
  23. data/lib/demo/error-code.json +31 -0
  24. data/lib/demo/help.json +58 -0
  25. data/lib/demo/ip.json +306 -0
  26. data/lib/demo/nameservers.json +434 -0
  27. data/lib/demo/ns-simple.json +210 -0
  28. data/lib/demo/ns-very-simple.json +41 -0
  29. data/lib/demo/ns.json +63 -0
  30. data/lib/demo/simple-ip.json +41 -0
  31. data/lib/demo/simple.json +13 -0
  32. data/lib/domain.rb +203 -0
  33. data/lib/ds_data.rb +70 -0
  34. data/lib/entity.rb +372 -0
  35. data/lib/enum.rb +47 -0
  36. data/lib/error_code.rb +56 -0
  37. data/lib/female-first-names.txt +4275 -0
  38. data/lib/ip.rb +86 -0
  39. data/lib/key_data.rb +70 -0
  40. data/lib/last-names.txt +88799 -0
  41. data/lib/male-first-names.txt +1219 -0
  42. data/lib/nicinfo_logger.rb +370 -0
  43. data/lib/nicinfo_main.rb +1013 -0
  44. data/lib/notices.rb +110 -0
  45. data/lib/ns.rb +108 -0
  46. data/lib/utils.rb +189 -0
  47. metadata +90 -0
@@ -0,0 +1,569 @@
1
+ {
2
+ "nicInfo_demoUrl" : "http://rdappilot.arin.net/restfulwhois/rdap/domain/192.in-addr.arpa",
3
+ "nicInfo_demoHint" : "nicinfo 192.in-addr.arpa",
4
+ "rdapConformance":[
5
+ "rdap_level_0"
6
+ ],
7
+ "notices":[
8
+ {
9
+ "title":"Terms of Use",
10
+ "description":[
11
+ "ARIN WHOIS data and services are subject to the Terms of Use available at: https://www.arin.net/whois_tou.html"
12
+ ],
13
+ "links":[
14
+ {
15
+ "value":"http://whois.apnic.net/ip/2001:db8::0",
16
+ "rel":"terms-of-service",
17
+ "type":"text/html",
18
+ "href":"https://www.arin.net/whois_tou.html"
19
+ }
20
+ ]
21
+ }
22
+ ],
23
+ "handle":"192.in-addr.arpa-001",
24
+ "objectClassName":"domain",
25
+ "ldhName":"192.in-addr.arpa",
26
+ "nameServers":[
27
+ {
28
+ "ldhName":"ns1.rir.example"
29
+ },
30
+ {
31
+ "ldhName":"ns2.rir.example"
32
+ }
33
+ ],
34
+ "secureDNS":
35
+ {
36
+ "delegationSigned": true,
37
+ "dsData":
38
+ [
39
+ {
40
+ "keyTag": 12345,
41
+ "algorithm": 3,
42
+ "digestType": 1,
43
+ "digest": "49FD46E6C4B45C55D4AC"
44
+ }
45
+ ]
46
+ },
47
+ "remarks":[
48
+ {
49
+ "description":[
50
+ "She sells sea shells down by the sea shore.",
51
+ "Originally written by Terry Sullivan."
52
+ ]
53
+ }
54
+ ],
55
+ "links":[
56
+ {
57
+ "value":"http://rdappilot.arin.net/restfulwhois/rdap/domain/192.in-addr.arpa",
58
+ "rel":"self",
59
+ "href":"http://rdappilot.arin.net/restfulwhois/rdap/domain/192.in-addr.arpa"
60
+ }
61
+ ],
62
+ "events":[
63
+ {
64
+ "eventAction":"registration",
65
+ "eventDate":"1990-12-31T23:59:60Z"
66
+ },
67
+ {
68
+ "eventAction":"last changed",
69
+ "eventDate":"1991-12-31T23:59:60Z",
70
+ "eventActor":"joe@bob.com"
71
+ }
72
+ ],
73
+ "entities":[
74
+ {
75
+ "handle":"ARIN-OPS",
76
+ "objectClassName":"entity",
77
+ "vcardArray":[
78
+ "vcard",
79
+ [
80
+ ["version", {}, "text", "4.0"],
81
+ ["fn", {}, "text", "ARIN Operations"],
82
+ ["kind", {}, "text", "org"],
83
+ ["org", {
84
+ "type":"work"
85
+ }, "text", "American Registry for Internet Numbers"],
86
+ ["adr",
87
+ {
88
+ "type":"work"
89
+ },
90
+ "text",
91
+ [
92
+ "",
93
+ "Suite 200",
94
+ "3635 Concorde Parkway",
95
+ "Chantilly",
96
+ "VA",
97
+ "20151",
98
+ "United States"
99
+ ]
100
+ ]
101
+ ]
102
+ ],
103
+ "roles":[ "registrant" ],
104
+ "remarks":[
105
+ {
106
+ "title": "No Solicitations",
107
+ "description":[
108
+ "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."
109
+ ]
110
+ }
111
+ ],
112
+ "links":[
113
+ {
114
+ "value":"http://example.net/entity/ARIN-OPS",
115
+ "rel":"self",
116
+ "href":"http://example.net/entity/ARIN-OPS"
117
+ }
118
+ ],
119
+ "events":[
120
+ {
121
+ "eventAction":"registration",
122
+ "eventDate":"2012-12-31T23:59:60Z",
123
+ "eventActor": "mattr@arin.net"
124
+ },
125
+ {
126
+ "eventAction":"last changed",
127
+ "eventDate":"2013-12-31T23:59:60Z",
128
+ "eventActor": "mattr@arin.net"
129
+ }
130
+ ],
131
+ "entities":[
132
+ {
133
+ "handle":"MATTR-ARIN",
134
+ "objectClassName":"entity",
135
+ "vcardArray":[
136
+ "vcard",
137
+ [
138
+ ["version", {}, "text", "4.0"],
139
+ ["fn", {}, "text", "Matt Rowley"],
140
+ ["kind", {}, "text", "individual"],
141
+ ["org", {
142
+ "type":"work"
143
+ }, "text", "American Registry for Internet Numbers"],
144
+ ["title", {}, "text", "Operations Manager"],
145
+ ["role", {}, "text", "Project Lead"],
146
+ ["adr",
147
+ {
148
+ "type":"work"
149
+ },
150
+ "text",
151
+ [
152
+ "",
153
+ "Suite 200",
154
+ "3635 Concorde Parkway",
155
+ "Chantilly",
156
+ "VA",
157
+ "20151",
158
+ "United States"
159
+ ]
160
+ ],
161
+ ["tel",
162
+ {
163
+ "type":["work", "voice"],
164
+ "pref":"1"
165
+ },
166
+ "uri",
167
+ "tel:+1-703-227-9840"
168
+ ],
169
+ ["email",
170
+ {
171
+ "type":"work"
172
+ },
173
+ "text",
174
+ "info@arin.net"
175
+ ]
176
+ ]
177
+ ],
178
+ "roles":[ "administrative" ],
179
+ "remarks":[
180
+ {
181
+ "title": "No Solicitations",
182
+ "description":[
183
+ "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."
184
+ ]
185
+ }
186
+ ],
187
+ "links":[
188
+ {
189
+ "value":"http://example.net/entity/MATTR-ARIN",
190
+ "rel":"self",
191
+ "href":"http://example.net/entity/MATTR-ARIN"
192
+ }
193
+ ],
194
+ "events":[
195
+ {
196
+ "eventAction":"registration",
197
+ "eventDate":"2012-12-31T23:59:60Z",
198
+ "eventActor": "mattr@arin.net"
199
+ },
200
+ {
201
+ "eventAction":"last changed",
202
+ "eventDate":"2013-12-31T23:59:60Z",
203
+ "eventActor": "mattr@arin.net"
204
+ }
205
+ ],
206
+ "asEventActor":[
207
+ {
208
+ "links":[
209
+ {
210
+ "value":"http://whois.arin.net/domain/192.in-addr.arpa",
211
+ "rel":"related",
212
+ "href":"http://whois.arin.net/domain/192.in-addr.arpa"
213
+ }
214
+ ],
215
+ "eventAction":"last changed",
216
+ "eventDate":"2013-12-31T23:59:60Z"
217
+ }
218
+ ]
219
+ },
220
+ {
221
+ "handle":"MAK21-ARIN",
222
+ "objectClassName":"entity",
223
+ "vcardArray":[
224
+ "vcard",
225
+ [
226
+ ["version", {}, "text", "4.0"],
227
+ ["fn", {}, "text", "Mark Kosters"],
228
+ ["kind", {}, "text", "individual"],
229
+ ["org", {
230
+ "type":"work"
231
+ }, "text", "American Registry for Internet Numbers"],
232
+ ["title", {}, "text", "Chief Technical Officer"],
233
+ ["role", {}, "text", "Pointy Haired Boss"],
234
+ ["adr",
235
+ {
236
+ "type":"work",
237
+ "label" : "3635 Concorde Parkway\nSuite200\nChantilly\nVA\n20151"
238
+ },
239
+ "text",
240
+ [
241
+ "",
242
+ "",
243
+ "",
244
+ "",
245
+ "",
246
+ "",
247
+ ""
248
+ ]
249
+ ],
250
+ ["tel",
251
+ {
252
+ "type":["work", "voice"],
253
+ "pref":"1"
254
+ },
255
+ "uri",
256
+ "tel:+1-703-227-9840"
257
+ ],
258
+ ["email",
259
+ {
260
+ "type":"work"
261
+ },
262
+ "text",
263
+ "info@arin.net"
264
+ ]
265
+ ]
266
+ ],
267
+ "roles":[ "technical" ],
268
+ "remarks":[
269
+ {
270
+ "title": "No Solicitations",
271
+ "description":[
272
+ "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."
273
+ ]
274
+ }
275
+ ],
276
+ "links":[
277
+ {
278
+ "value":"http://example.net/entity/MAK21-ARIN",
279
+ "rel":"self",
280
+ "href":"http://example.net/entity/MAK21-ARIN"
281
+ }
282
+ ],
283
+ "events":[
284
+ {
285
+ "eventAction":"registration",
286
+ "eventDate":"2012-12-31T23:59:60Z",
287
+ "eventActor": "markk@arin.net"
288
+ },
289
+ {
290
+ "eventAction":"last changed",
291
+ "eventDate":"2013-12-31T23:59:60Z",
292
+ "eventActor": "markkb@arin.net"
293
+ }
294
+ ],
295
+ "asEventActor":[
296
+ {
297
+ "links":[
298
+ {
299
+ "value":"http://whois.arin.net/domain/192.in-addr.arpa",
300
+ "rel":"related",
301
+ "href":"http://whois.arin.net/domain/192.in-addr.arpa"
302
+ }
303
+ ],
304
+ "eventAction":"reregistration",
305
+ "eventDate":"2012-12-31T23:59:60Z"
306
+ }
307
+ ]
308
+ }
309
+ ]
310
+ }
311
+ ],
312
+ "network":{
313
+ "startAddress":"192.0.0.0",
314
+ "endAddress":"192.255.255.255",
315
+ "handle":"NET-192-0-0-0-1",
316
+ "objectClassName":"ip network",
317
+ "ipVersion":"v4",
318
+ "name":"NET-RTR-1",
319
+ "description":[ "A network used for example documentation" ],
320
+ "parentHandle":"YYYY-RIR",
321
+ "remarks":[
322
+ {
323
+ "description":[
324
+ "She sells sea shells down by the sea shore.",
325
+ "Originally written by Terry Sullivan."
326
+ ]
327
+ }
328
+ ],
329
+ "entities":[
330
+ {
331
+ "handle":"ARIN-OPS",
332
+ "objectClassName":"entity",
333
+ "vcardArray":[
334
+ "vcard",
335
+ [
336
+ ["version", {}, "text", "4.0"],
337
+ ["fn", {}, "text", "ARIN Operations"],
338
+ ["kind", {}, "text", "org"],
339
+ ["org", {
340
+ "type":"work"
341
+ }, "text", "American Registry for Internet Numbers"],
342
+ ["adr",
343
+ {
344
+ "type":"work"
345
+ },
346
+ "text",
347
+ [
348
+ "",
349
+ "Suite 200",
350
+ "3635 Concorde Parkway",
351
+ "Chantilly",
352
+ "VA",
353
+ "20151",
354
+ "United States"
355
+ ]
356
+ ]
357
+ ]
358
+ ],
359
+ "roles":[ "registrant" ],
360
+ "remarks":[
361
+ {
362
+ "title": "No Solicitations",
363
+ "description":[
364
+ "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."
365
+ ]
366
+ }
367
+ ],
368
+ "links":[
369
+ {
370
+ "value":"http://example.net/entity/ARIN-OPS",
371
+ "rel":"self",
372
+ "href":"http://example.net/entity/ARIN-OPS"
373
+ }
374
+ ],
375
+ "events":[
376
+ {
377
+ "eventAction":"registration",
378
+ "eventDate":"2012-12-31T23:59:60Z",
379
+ "eventActor": "mattr@arin.net"
380
+ },
381
+ {
382
+ "eventAction":"last changed",
383
+ "eventDate":"2013-12-31T23:59:60Z",
384
+ "eventActor": "mattr@arin.net"
385
+ }
386
+ ],
387
+ "entities":[
388
+ {
389
+ "handle":"MATTR-ARIN",
390
+ "objectClassName":"entity",
391
+ "vcardArray":[
392
+ "vcard",
393
+ [
394
+ ["version", {}, "text", "4.0"],
395
+ ["fn", {}, "text", "Matt Rowley"],
396
+ ["kind", {}, "text", "individual"],
397
+ ["org", {
398
+ "type":"work"
399
+ }, "text", "American Registry for Internet Numbers"],
400
+ ["title", {}, "text", "Operations Manager"],
401
+ ["role", {}, "text", "Project Lead"],
402
+ ["adr",
403
+ {
404
+ "type":"work"
405
+ },
406
+ "text",
407
+ [
408
+ "",
409
+ "Suite 200",
410
+ "3635 Concorde Parkway",
411
+ "Chantilly",
412
+ "VA",
413
+ "20151",
414
+ "United States"
415
+ ]
416
+ ],
417
+ ["tel",
418
+ {
419
+ "type":["work", "voice"],
420
+ "pref":"1"
421
+ },
422
+ "uri",
423
+ "tel:+1-703-227-9840"
424
+ ],
425
+ ["email",
426
+ {
427
+ "type":"work"
428
+ },
429
+ "text",
430
+ "info@arin.net"
431
+ ]
432
+ ]
433
+ ],
434
+ "roles":[ "administrative" ],
435
+ "remarks":[
436
+ {
437
+ "title": "No Solicitations",
438
+ "description":[
439
+ "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."
440
+ ]
441
+ }
442
+ ],
443
+ "links":[
444
+ {
445
+ "value":"http://example.net/entity/MATTR-ARIN",
446
+ "rel":"self",
447
+ "href":"http://example.net/entity/MATTR-ARIN"
448
+ }
449
+ ],
450
+ "events":[
451
+ {
452
+ "eventAction":"registration",
453
+ "eventDate":"2012-12-31T23:59:60Z",
454
+ "eventActor": "mattr@arin.net"
455
+ },
456
+ {
457
+ "eventAction":"last changed",
458
+ "eventDate":"2013-12-31T23:59:60Z",
459
+ "eventActor": "mattr@arin.net"
460
+ }
461
+ ],
462
+ "asEventActor":[
463
+ {
464
+ "links":[
465
+ {
466
+ "value":"http://whois.arin.net/domain/192.in-addr.arpa",
467
+ "rel":"related",
468
+ "href":"http://whois.arin.net/domain/192.in-addr.arpa"
469
+ }
470
+ ],
471
+ "eventAction":"last changed",
472
+ "eventDate":"2013-12-31T23:59:60Z"
473
+ }
474
+ ]
475
+ },
476
+ {
477
+ "handle":"MAK21-ARIN",
478
+ "objectClassName":"entity",
479
+ "vcardArray":[
480
+ "vcard",
481
+ [
482
+ ["version", {}, "text", "4.0"],
483
+ ["fn", {}, "text", "Mark Kosters"],
484
+ ["kind", {}, "text", "individual"],
485
+ ["org", {
486
+ "type":"work"
487
+ }, "text", "American Registry for Internet Numbers"],
488
+ ["title", {}, "text", "Chief Technical Officer"],
489
+ ["role", {}, "text", "Pointy Haired Boss"],
490
+ ["adr",
491
+ {
492
+ "type":"work",
493
+ "label" : "3635 Concorde Parkway\nSuite200\nChantilly\nVA\n20151"
494
+ },
495
+ "text",
496
+ [
497
+ "",
498
+ "",
499
+ "",
500
+ "",
501
+ "",
502
+ "",
503
+ ""
504
+ ]
505
+ ],
506
+ ["tel",
507
+ {
508
+ "type":["work", "voice"],
509
+ "pref":"1"
510
+ },
511
+ "uri",
512
+ "tel:+1-703-227-9840"
513
+ ],
514
+ ["email",
515
+ {
516
+ "type":"work"
517
+ },
518
+ "text",
519
+ "info@arin.net"
520
+ ]
521
+ ]
522
+ ],
523
+ "roles":[ "technical" ],
524
+ "remarks":[
525
+ {
526
+ "title": "No Solicitations",
527
+ "description":[
528
+ "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."
529
+ ]
530
+ }
531
+ ],
532
+ "links":[
533
+ {
534
+ "value":"http://example.net/entity/MAK21-ARIN",
535
+ "rel":"self",
536
+ "href":"http://example.net/entity/MAK21-ARIN"
537
+ }
538
+ ],
539
+ "events":[
540
+ {
541
+ "eventAction":"registration",
542
+ "eventDate":"2012-12-31T23:59:60Z",
543
+ "eventActor": "markk@arin.net"
544
+ },
545
+ {
546
+ "eventAction":"last changed",
547
+ "eventDate":"2013-12-31T23:59:60Z",
548
+ "eventActor": "markkb@arin.net"
549
+ }
550
+ ],
551
+ "asEventActor":[
552
+ {
553
+ "links":[
554
+ {
555
+ "value":"http://whois.arin.net/domain/192.in-addr.arpa",
556
+ "rel":"related",
557
+ "href":"http://whois.arin.net/domain/192.in-addr.arpa"
558
+ }
559
+ ],
560
+ "eventAction":"reregistration",
561
+ "eventDate":"2012-12-31T23:59:60Z"
562
+ }
563
+ ]
564
+ }
565
+ ]
566
+ }
567
+ ]
568
+ }
569
+ }