diff --git a/rdap/objects.py b/rdap/objects.py index d5d333e..a34c8de 100644 --- a/rdap/objects.py +++ b/rdap/objects.py @@ -105,6 +105,7 @@ def _parse(self): vcard = self._parse_vcard(ent) emails |= vcard.get("emails", set()) roles = ent.get("roles", []) + kind = vcard.get("kind", "") handle = ent.get("handle", None) # try for link to 'self', if registry doesn't supply it, fall back to creating it. handle_url = self._parse_entity_self_link(ent) @@ -134,6 +135,8 @@ def _parse(self): except RdapHTTPError: if not self._rdapc.config.get("ignore_recurse_errors"): raise + if "org" in kind: + break # WORKAROUND APNIC keeps org info in remarks if "apnic" in self._data.get("port43", ""): diff --git a/script/mock_update_autnum.py b/script/mock_update_autnum.py new file mode 100644 index 0000000..b43a6dc --- /dev/null +++ b/script/mock_update_autnum.py @@ -0,0 +1,64 @@ +import argparse +import json +import os +import sys + +from rdap import RdapClient + + +def rdap_autnum_file_list(directory): + input_file_list = [] + expected_file_list = [] + for filename in os.listdir(directory): + if os.path.isfile(os.path.join(directory, filename)) and filename.endswith( + ".input" + ): + input_file_list.append(filename) + elif os.path.isfile(os.path.join(directory, filename)) and filename.endswith( + ".expected" + ): + expected_file_list.append(filename) + return input_file_list, expected_file_list + + +def update_autnum_entries(rdapc, file_name, filepath): + asn = int(file_name.split(".")[0]) + rdap_data = rdapc.get_asn(asn) + full_filepath = os.path.join(filepath, file_name) + + with open(full_filepath, "w") as output_file: + if file_name.split(".")[-1] == "input": + formatted_data = json.dumps(rdap_data.data, indent=2) + output_file.write(str(formatted_data)) + else: + formatted_parsed = json.dumps(rdap_data.parsed(), indent=2) + output_file.write(str(formatted_parsed)) + + print(f"RDAP data for ASN {asn} written to {full_filepath}") + + +def main(include_expected=False): + path_autnum = "./tests/data/rdap/autnum/" + input_file_list, expected_file_list = rdap_autnum_file_list(path_autnum) + rdapc = RdapClient() + for file in input_file_list: + update_autnum_entries(rdapc, file, path_autnum) + if include_expected: + for file in expected_file_list: + update_autnum_entries(rdapc, file, path_autnum) + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description="Script Description") + + # Add the --include-expected option + parser.add_argument( + "--include-expected", action="store_true", help="Include expected" + ) + + args = parser.parse_args() + + # Call the main function with the value of --include-expected + main(include_expected=args.include_expected) + + sys.exit() diff --git a/tests/data/iana/bootstrap/asn.json b/tests/data/iana/bootstrap/asn.json index 95bb9f9..60d047e 100644 --- a/tests/data/iana/bootstrap/asn.json +++ b/tests/data/iana/bootstrap/asn.json @@ -1 +1 @@ -{"description":"RDAP bootstrap file for Autonomous System Number allocations","publication":"2023-05-10T22:00:02Z","services":[[["36864-37887","327680-328703","328704-329727"],["https://rdap.afrinic.net/rdap/","http://rdap.afrinic.net/rdap/"]],[["4608-4865","7467-7722","9216-10239","17408-18431","23552-24575","37888-38911","45056-46079","55296-56319","58368-59391","63488-63999","64000-64098","64297-64395","131072-132095","132096-133119","133120-133631","133632-134556","134557-135580","135581-136505","136506-137529","137530-138553","138554-139577","139578-140601","140602-141625","141626-142649","142650-143673","143674-144697","144698-145721","145722-146745","146746-147769","147770-148793","148794-149817","149818-150841","150842-151865","151866-152889","152890-153913"],["https://rdap.apnic.net/"]],[["1-1876","1902-2042","2044-2046","2048-2106","2137-2584","2615-2772","2823-2829","2880-3153","3354-4607","4866-5376","5632-6655","6912-7466","7723-8191","10240-12287","13312-15359","16384-17407","18432-20479","21504-23455","23457-23551","25600-26623","26624-27647","29696-30719","31744-32767","32768-33791","35840-36863","39936-40959","46080-47103","53248-54271","54272-55295","62464-63487","64198-64296","393216-394239","394240-395164","395165-396188","396189-397212","397213-398236","398237-399260","399261-400284","400285-401308"],["https://rdap.arin.net/registry/","http://rdap.arin.net/registry/"]],[["1877-1901","2043","2047","2107-2136","2585-2614","2773-2822","2830-2879","3154-3353","5377-5631","6656-6911","8192-9215","12288-13311","15360-16383","20480-21503","24576-25599","28672-29695","30720-31743","33792-34815","34816-35839","38912-39935","40960-41983","41984-43007","43008-44031","44032-45055","47104-48127","48128-49151","49152-50175","50176-51199","51200-52223","56320-57343","57344-58367","59392-60415","60416-61439","61952-62463","64396-64495","196608-197631","197632-198655","198656-199679","199680-200191","200192-201215","201216-202239","202240-203263","203264-204287","204288-205211","205212-206235","206236-207259","207260-208283","208284-209307","209308-210331","210332-211355","211356-212379","212380-213403"],["https://rdap.db.ripe.net/"]],[["27648-28671","52224-53247","61440-61951","64099-64197","262144-263167","263168-263679","263680-264604","264605-265628","265629-266652","266653-267676","267677-268700","268701-269724","269725-270748","270749-271772","271773-272796","272797-273820"],["https://rdap.lacnic.net/rdap/"]]],"version":"1.0"} \ No newline at end of file +{"description":"RDAP bootstrap file for Autonomous System Number allocations","publication":"2023-08-10T17:00:03Z","services":[[["36864-37887","327680-328703","328704-329727"],["https://rdap.afrinic.net/rdap/","http://rdap.afrinic.net/rdap/"]],[["4608-4865","7467-7722","9216-10239","17408-18431","23552-24575","37888-38911","45056-46079","55296-56319","58368-59391","63488-63999","64000-64098","64297-64395","131072-132095","132096-133119","133120-133631","133632-134556","134557-135580","135581-136505","136506-137529","137530-138553","138554-139577","139578-140601","140602-141625","141626-142649","142650-143673","143674-144697","144698-145721","145722-146745","146746-147769","147770-148793","148794-149817","149818-150841","150842-151865","151866-152889","152890-153913"],["https://rdap.apnic.net/"]],[["1-1876","1902-2042","2044-2046","2048-2106","2137-2584","2615-2772","2823-2829","2880-3153","3354-4607","4866-5376","5632-6655","6912-7466","7723-8191","10240-12287","13312-15359","16384-17407","18432-20479","21504-23455","23457-23551","25600-26623","26624-27647","29696-30719","31744-32767","32768-33791","35840-36863","39936-40959","46080-47103","53248-54271","54272-55295","62464-63487","64198-64296","393216-394239","394240-395164","395165-396188","396189-397212","397213-398236","398237-399260","399261-400284","400285-401308"],["https://rdap.arin.net/registry/","http://rdap.arin.net/registry/"]],[["1877-1901","2043","2047","2107-2136","2585-2614","2773-2822","2830-2879","3154-3353","5377-5631","6656-6911","8192-9215","12288-13311","15360-16383","20480-21503","24576-25599","28672-29695","30720-31743","33792-34815","34816-35839","38912-39935","40960-41983","41984-43007","43008-44031","44032-45055","47104-48127","48128-49151","49152-50175","50176-51199","51200-52223","56320-57343","57344-58367","59392-60415","60416-61439","61952-62463","64396-64495","196608-197631","197632-198655","198656-199679","199680-200191","200192-201215","201216-202239","202240-203263","203264-204287","204288-205211","205212-206235","206236-207259","207260-208283","208284-209307","209308-210331","210332-211355","211356-212379","212380-213403","213404-214427","214428-215451","215452-216475"],["https://rdap.db.ripe.net/"]],[["27648-28671","52224-53247","61440-61951","64099-64197","262144-263167","263168-263679","263680-264604","264605-265628","265629-266652","266653-267676","267677-268700","268701-269724","269725-270748","270749-271772","271773-272796","272797-273820"],["https://rdap.lacnic.net/rdap/"]]],"version":"1.0"} \ No newline at end of file diff --git a/tests/data/rdap/autnum/205697.expected b/tests/data/rdap/autnum/205697.expected index 4606463..3160db8 100644 --- a/tests/data/rdap/autnum/205697.expected +++ b/tests/data/rdap/autnum/205697.expected @@ -1 +1,9 @@ -{"org_address": "", "org_name": "", "emails": ["abuse@alojalia.com", "angel@alojalia.com"], "name": "ALOJALIA"} +{ + "name": "ALOJALIA", + "emails": [ + "alejandro@alojalia.com", + "angel@alojalia.com" + ], + "org_name": "ALOJALIA CLOUD S.L., ================================", + "org_address": "Avd. Federico Anaya, 52 3C\n37004\nSalamanca\nSPAIN" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/205697.input b/tests/data/rdap/autnum/205697.input index 0f9d1d1..bf6684a 100644 --- a/tests/data/rdap/autnum/205697.input +++ b/tests/data/rdap/autnum/205697.input @@ -1,66 +1,546 @@ { - "handle" : "AS205697", - "name" : "ALOJALIA", - "type" : "DIRECT ALLOCATION", - "entities" : [ { - "handle" : "AMS346-RIPE", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "APR41-RIPE", - "roles" : [ "administrative" ], - "objectClassName" : "entity" - }, { - "handle" : "es-alojalia-1-mnt", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "RIPE-NCC-END-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "AR37103-RIPE", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "Abuse-C Role" ], [ "kind", { }, "text", "group" ], [ "adr", { - "label" : "Avd. Federico Anaya, 52\n37004\nSalamanca\nSPAIN" - }, "text", null ], [ "email", { }, "text", "abuse@alojalia.com" ] ] ], - "roles" : [ "abuse" ], - "entities" : [ { - "handle" : "es-alojalia-1-mnt", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - } ], - "objectClassName" : "entity" - } ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/205697", - "rel" : "self", - "href" : "https://rdap.db.ripe.net/autnum/205697" - }, { - "value" : "http://www.ripe.net/data-tools/support/documentation/terms", - "rel" : "copyright", - "href" : "http://www.ripe.net/data-tools/support/documentation/terms" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-12-21T04:47:57Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Filtered", - "description" : [ "This output has been filtered." ] - }, { - "title" : "Source", - "description" : [ "Objects returned came from source", "RIPE" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the RIPE Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/205697", - "rel" : "terms-of-service", - "href" : "http://www.ripe.net/db/support/db-terms-conditions.pdf", - "type" : "application/pdf" - } ] - } ], - "port43" : "whois.ripe.net", - "objectClassName" : "autnum" + "handle": "AS205697", + "startAutnum": 205697, + "endAutnum": 205697, + "name": "ALOJALIA", + "status": [ + "active" + ], + "entities": [ + { + "handle": "ALOJALIA-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "ALOJALIA-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ALOJALIA-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "AMS346-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Angel Martinez Sanchez" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Avd. Federico Anaya, 52\n37004\nSalamanca\nSPAIN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+34910912131" + ], + [ + "email", + { + "type": "email" + }, + "text", + "angel@alojalia.com" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/AMS346-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "APR41-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Alejandro Pina Rodriguez" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Avd. Federico Anaya, 52\n37004 Salamanca\nSPAIN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+34910912131" + ], + [ + "email", + { + "type": "email" + }, + "text", + "alejandro@alojalia.com" + ], + [ + "org", + {}, + "text", + "ORG-IYCS4-RIPE" + ] + ] + ], + "roles": [ + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/APR41-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "ORG-IYCS4-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "ALOJALIA CLOUD S.L." + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "Avd. Federico Anaya, 52 3C\n37004\nSalamanca\nSPAIN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+34910912131" + ], + [ + "email", + { + "type": "email" + }, + "text", + "alejandro@alojalia.com" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ORG-IYCS4-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RIPE-NCC-END-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "RIPE-NCC-END-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-NCC1-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RIPE-NCC-END-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "AR37103-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Abuse-C Role" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "Avd. Federico Anaya, 52\n37004\nSalamanca\nSPAIN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "abuse@alojalia.com" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@alojalia.com" + ] + ] + ], + "roles": [ + "abuse" + ], + "entities": [ + { + "handle": "es-alojalia-1-mnt", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "es-alojalia-1-mnt" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-IYCS4-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/es-alojalia-1-mnt" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + } + ], + "objectClassName": "entity" + } + ], + "remarks": [ + { + "description": [ + "================================", + "Website: alojalia.com", + "Support: soporte@alojalia.com", + "Abuse: abuse@alojalia.com", + "Peering: as205697.peeringdb.com", + "", + "GTT", + "COGENT", + "COMVIVE", + "DE-CIX", + "ESPANIX", + "ACENS", + "AKAMAI", + "AMAZON", + "CATO", + "CLOUDFLARE", + "CORE-BACKBONE", + "DROPBOX", + "GOOGLE", + "HURRICANE", + "INIT7", + "MICROSOFT", + "OVH", + "PCH", + "SARENET", + "TWITCH" + ] + } + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "self", + "href": "https://rdap.db.ripe.net/autnum/205697" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2017-06-22T09:35:50Z" + }, + { + "eventAction": "last changed", + "eventDate": "2023-06-29T15:39:42Z" + } + ], + "rdapConformance": [ + "nro_rdap_profile_asn_flat_0", + "cidr0", + "rdap_level_0", + "nro_rdap_profile_0" + ], + "notices": [ + { + "title": "Filtered", + "description": [ + "This output has been filtered." + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit:" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "inaccuracy-report", + "href": "https://www.ripe.net/contact-form?topic=ripe_dbm&show_form=true", + "type": "text/html" + } + ] + }, + { + "title": "Source", + "description": [ + "Objects returned came from source", + "RIPE" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the RIPE Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205697", + "rel": "terms-of-service", + "href": "http://www.ripe.net/db/support/db-terms-conditions.pdf", + "type": "application/pdf" + } + ] + } + ], + "port43": "whois.ripe.net", + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/205726.expected b/tests/data/rdap/autnum/205726.expected index 2474b37..144e342 100644 --- a/tests/data/rdap/autnum/205726.expected +++ b/tests/data/rdap/autnum/205726.expected @@ -1 +1,9 @@ -{"org_address": "", "org_name": "", "emails": ["abuse@vusam.com", "daan.vangorkum@vusam.com"], "name": "Vusam"} +{ + "name": "Vusam", + "emails": [ + "daan.vangorkum@vusam.com", + "support@vusam.com" + ], + "org_name": "Daan Jurriaan van Gorkum trading as Vusam V.O.F", + "org_address": "Postbus 8515\n8934BT\nLeeuwarden\nNETHERLANDS" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/205726.input b/tests/data/rdap/autnum/205726.input index 99680b0..f09ad7c 100644 --- a/tests/data/rdap/autnum/205726.input +++ b/tests/data/rdap/autnum/205726.input @@ -1,62 +1,429 @@ { - "handle" : "AS205726", - "name" : "Vusam", - "type" : "DIRECT ALLOCATION", - "entities" : [ { - "handle" : "DJVG", - "roles" : [ "administrative", "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "RIPE-NCC-END-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "VUSAM", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "VA33288-RIPE", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "Vusam Abuse" ], [ "kind", { }, "text", "group" ], [ "adr", { - "label" : "Postbus 8160\n1180LD Amstelveen\nthe Netherlands" - }, "text", null ], [ "email", { }, "text", "abuse@vusam.com" ] ] ], - "roles" : [ "abuse" ], - "entities" : [ { - "handle" : "VUSAM", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - } ], - "objectClassName" : "entity" - } ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/205726", - "rel" : "self", - "href" : "https://rdap.db.ripe.net/autnum/205726" - }, { - "value" : "http://www.ripe.net/data-tools/support/documentation/terms", - "rel" : "copyright", - "href" : "http://www.ripe.net/data-tools/support/documentation/terms" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-11-15T13:42:22Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Filtered", - "description" : [ "This output has been filtered." ] - }, { - "title" : "Source", - "description" : [ "Objects returned came from source", "RIPE" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the RIPE Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/205726", - "rel" : "terms-of-service", - "href" : "http://www.ripe.net/db/support/db-terms-conditions.pdf", - "type" : "application/pdf" - } ] - } ], - "port43" : "whois.ripe.net", - "objectClassName" : "autnum" + "handle": "AS205726", + "startAutnum": 205726, + "endAutnum": 205726, + "name": "Vusam", + "status": [ + "active" + ], + "entities": [ + { + "handle": "DJVG", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Daan van Gorkum" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Postbus 8515\n8934BT Leeuwarden\nthe Netherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31203080063" + ], + [ + "email", + { + "type": "email" + }, + "text", + "daan.vangorkum@vusam.com" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/DJVG" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "ORG-DJVG1-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Daan Jurriaan van Gorkum trading as Vusam V.O.F" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "Postbus 8515\n8934BT\nLeeuwarden\nNETHERLANDS" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31203080063" + ], + [ + "email", + { + "type": "email" + }, + "text", + "support@vusam.com" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ORG-DJVG1-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RIPE-NCC-END-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "RIPE-NCC-END-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-NCC1-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RIPE-NCC-END-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "VUSAM", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "VUSAM" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/VUSAM" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "VA33288-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Vusam Abuse" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "Postbus 8515\n8934BT Leeuwarden\nthe Netherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "abuse@vusam.com" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@vusam.com" + ] + ] + ], + "roles": [ + "abuse" + ], + "entities": [ + { + "handle": "VUSAM", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "VUSAM" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/VUSAM" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + } + ], + "objectClassName": "entity" + } + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "self", + "href": "https://rdap.db.ripe.net/autnum/205726" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2017-06-15T08:42:44Z" + }, + { + "eventAction": "last changed", + "eventDate": "2021-11-10T09:30:40Z" + } + ], + "rdapConformance": [ + "nro_rdap_profile_asn_flat_0", + "cidr0", + "rdap_level_0", + "nro_rdap_profile_0" + ], + "notices": [ + { + "title": "Filtered", + "description": [ + "This output has been filtered." + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit:" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "inaccuracy-report", + "href": "https://www.ripe.net/contact-form?topic=ripe_dbm&show_form=true", + "type": "text/html" + } + ] + }, + { + "title": "Source", + "description": [ + "Objects returned came from source", + "RIPE" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the RIPE Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/205726", + "rel": "terms-of-service", + "href": "http://www.ripe.net/db/support/db-terms-conditions.pdf", + "type": "application/pdf" + } + ] + } + ], + "port43": "whois.ripe.net", + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/206050.expected b/tests/data/rdap/autnum/206050.expected index c3aede8..1f74cc1 100644 --- a/tests/data/rdap/autnum/206050.expected +++ b/tests/data/rdap/autnum/206050.expected @@ -1 +1,8 @@ -{"org_address": "", "org_name": "", "emails": ["abuse@freepeer.net", "kreibich@freepeer.net"], "name": "FREEPEER"} +{ + "name": "elitnet-tr", + "emails": [ + "mehmet@elitnet.net.tr" + ], + "org_name": "ELITNET TELEKOMUNIKASYON INTERNET VE ILETISIM HIZ.TIC LTD.STI.", + "org_address": "15 Temmuz Mah. 142 Sk . B-Blok No:3 / 9" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/206050.input b/tests/data/rdap/autnum/206050.input index 09862dc..fee0ec5 100644 --- a/tests/data/rdap/autnum/206050.input +++ b/tests/data/rdap/autnum/206050.input @@ -1,62 +1,413 @@ { - "handle" : "AS206050", - "name" : "FREEPEER", - "type" : "DIRECT ALLOCATION", - "entities" : [ { - "handle" : "FeldHost-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "JK11944-RIPE", - "roles" : [ "administrative", "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "RIPE-NCC-END-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "ACRO5676-RIPE", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "Abuse contact role object" ], [ "kind", { }, "text", "group" ], [ "adr", { - "label" : "Belehradska 858/23" - }, "text", null ], [ "email", { }, "text", "abuse@freepeer.net" ] ] ], - "roles" : [ "abuse" ], - "entities" : [ { - "handle" : "FeldHost-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - } ], - "objectClassName" : "entity" - } ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/206050", - "rel" : "self", - "href" : "https://rdap.db.ripe.net/autnum/206050" - }, { - "value" : "http://www.ripe.net/data-tools/support/documentation/terms", - "rel" : "copyright", - "href" : "http://www.ripe.net/data-tools/support/documentation/terms" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-11-15T13:41:37Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Filtered", - "description" : [ "This output has been filtered." ] - }, { - "title" : "Source", - "description" : [ "Objects returned came from source", "RIPE" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the RIPE Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/206050", - "rel" : "terms-of-service", - "href" : "http://www.ripe.net/db/support/db-terms-conditions.pdf", - "type" : "application/pdf" - } ] - } ], - "port43" : "whois.ripe.net", - "objectClassName" : "autnum" + "handle": "AS206050", + "startAutnum": 206050, + "endAutnum": 206050, + "name": "elitnet-tr", + "status": [ + "active" + ], + "entities": [ + { + "handle": "mnt-Internetten", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "mnt-Internetten" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/mnt-Internetten" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "ORG-ETIV1-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "ELITNET TELEKOMUNIKASYON INTERNET VE ILETISIM HIZ.TIC LTD.STI." + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "15 Temmuz Mah. 142 Sk . B-Blok No:3 / 9" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "mehmet@elitnet.net.tr" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ORG-ETIV1-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RIPE-NCC-END-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "RIPE-NCC-END-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-NCC1-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RIPE-NCC-END-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "SD12478-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Yavuz Selim MALKOC" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Sultan Orhan Mah. Ilyasbey Cad, 1812 Sk.\n41400\nKocaeli\nTURKEY" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+902626446663" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/SD12478-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "AR62478-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Abuse-C Role" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "Ekinoba Mah. Yildiz 3 Sk. Marmara Villalari No:1 30A\n34535\nistanbul\nTURKEY" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "abuse@geoipa.com" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@geoipa.com" + ] + ] + ], + "roles": [ + "abuse" + ], + "entities": [ + { + "handle": "lir-tr-geoteknoloji-1-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "lir-tr-geoteknoloji-1-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/lir-tr-geoteknoloji-1-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + } + ], + "objectClassName": "entity" + } + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "self", + "href": "https://rdap.db.ripe.net/autnum/206050" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2022-10-11T06:42:44Z" + }, + { + "eventAction": "last changed", + "eventDate": "2022-10-11T06:42:44Z" + } + ], + "rdapConformance": [ + "nro_rdap_profile_asn_flat_0", + "cidr0", + "rdap_level_0", + "nro_rdap_profile_0" + ], + "notices": [ + { + "title": "Filtered", + "description": [ + "This output has been filtered." + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit:" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "inaccuracy-report", + "href": "https://www.ripe.net/contact-form?topic=ripe_dbm&show_form=true", + "type": "text/html" + } + ] + }, + { + "title": "Source", + "description": [ + "Objects returned came from source", + "RIPE" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the RIPE Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/206050", + "rel": "terms-of-service", + "href": "http://www.ripe.net/db/support/db-terms-conditions.pdf", + "type": "application/pdf" + } + ] + } + ], + "port43": "whois.ripe.net", + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/2515.expected b/tests/data/rdap/autnum/2515.expected index b99946b..28e5d11 100644 --- a/tests/data/rdap/autnum/2515.expected +++ b/tests/data/rdap/autnum/2515.expected @@ -1 +1,8 @@ -{"org_address": "", "org_name": "Japan Network Information Center", "emails": [], "name": "JPNIC"} +{ + "name": "JPNIC", + "emails": [ + "hostmaster@nic.ad.jp" + ], + "org_name": "Japan Network Information Center", + "org_address": "" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/2515.input b/tests/data/rdap/autnum/2515.input index 58e5523..85ed057 100644 --- a/tests/data/rdap/autnum/2515.input +++ b/tests/data/rdap/autnum/2515.input @@ -1,54 +1,215 @@ { - "handle" : "AS2515", - "startAutnum" : 2515, - "endAutnum" : 2515, - "name" : "JPNIC", - "country" : "JP", - "objectClassName" : "autnum", - "entities" : [ { - "handle" : "AS5496JP", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "EK6175JP", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "HH11825JP", - "roles" : [ "administrative" ], - "objectClassName" : "entity" - }, { - "handle" : "MO5920JP", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "YK11438JP", - "roles" : [ "technical" ], - "objectClassName" : "entity" - } ], - "remarks" : [ { - "title" : "description", - "description" : [ "Japan Network Information Center" ] - } ], - "links" : [ { - "value" : "https://rdap.apnic.net/autnum/2515", - "rel" : "self", - "href" : "https://rdap.apnic.net/autnum/2515", - "type" : "application/rdap+json" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Source", - "description" : [ "Objects returned came from source", "JPNIC" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the APNIC WHOIS Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.apnic.net/autnum/2515", - "rel" : "terms-of-service", - "href" : "http://www.apnic.net/db/dbcopyright.html", - "type" : "text/html" - } ] - } ], - "port43" : "whois.apnic.net" + "rdapConformance": [ + "nro_rdap_profile_0", + "nro_rdap_profile_asn_hierarchical_0", + "cidr0", + "rdap_level_0" + ], + "notices": [ + { + "title": "Source", + "description": [ + "Objects returned came from source", + "JPNIC" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the APNIC WHOIS Database query service. The objects are in RDAP format.", + "This information has been partially mirrored by APNIC from JPNIC. To obtain more specific information, please use the JPNIC WHOIS Gateway at http://www.nic.ad.jp/en/db/whois/en-gateway.html or whois.nic.ad.jp for WHOIS client. (The WHOIS client defaults to Japanese output, use the /e switch for English output)" + ], + "links": [ + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "terms-of-service", + "href": "http://www.apnic.net/db/dbcopyright.html", + "type": "text/html" + } + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit: " + ], + "links": [ + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "inaccuracy-report", + "href": "https://www.apnic.net/manage-ip/using-whois/abuse-and-spamming/invalid-contact-form", + "type": "text/html" + } + ] + } + ], + "country": "JP", + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-06-20T01:29:02Z" + } + ], + "name": "JPNIC", + "remarks": [ + { + "description": [ + "Japan Network Information Center" + ], + "title": "description" + } + ], + "links": [ + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "self", + "href": "https://jpnic.rdap.apnic.net/autnum/2515", + "type": "application/rdap+json" + }, + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "related", + "href": "https://netox.apnic.net/search/AS2515?utm_source=rdap&utm_medium=result&utm_campaign=rdap_result", + "type": "text/html" + } + ], + "status": [ + "active" + ], + "handle": "AS2515", + "endAutnum": 2515, + "startAutnum": 2515, + "objectClassName": "autnum", + "entities": [ + { + "roles": [ + "administrative", + "technical" + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2022-01-05T03:04:02Z" + } + ], + "links": [ + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "self", + "href": "https://jpnic.rdap.apnic.net/entity/JNIC1-AP", + "type": "application/rdap+json" + } + ], + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Japan Network Information Center" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "Uchikanda OS Bldg 4F, 2-12-6 Uchi-Kanda\nChiyoda-ku, Tokyo 101-0047, Japan" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+81-3-5297-2311" + ], + [ + "tel", + { + "type": "fax" + }, + "text", + "+81-3-5297-2312" + ], + [ + "email", + {}, + "text", + "hostmaster@nic.ad.jp" + ] + ] + ], + "objectClassName": "entity", + "handle": "JNIC1-AP" + }, + { + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "related", + "href": "http://whois.nic.ad.jp/cgi-bin/whois_gw?key=YK11438JP/e", + "type": "text/html", + "hreflang": "en" + }, + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "related", + "href": "http://whois.nic.ad.jp/cgi-bin/whois_gw?key=YK11438JP", + "type": "text/html", + "hreflang": "jp" + } + ], + "objectClassName": "entity", + "handle": "YK11438JP" + }, + { + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "related", + "href": "http://whois.nic.ad.jp/cgi-bin/whois_gw?key=EK6175JP/e", + "type": "text/html", + "hreflang": "en" + }, + { + "value": "https://jpnic.rdap.apnic.net/autnum/2515", + "rel": "related", + "href": "http://whois.nic.ad.jp/cgi-bin/whois_gw?key=EK6175JP", + "type": "text/html", + "hreflang": "jp" + } + ], + "objectClassName": "entity", + "handle": "EK6175JP" + } + ], + "port43": "whois.apnic.net" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/2914.expected b/tests/data/rdap/autnum/2914.expected index 72c234a..c6921ce 100644 --- a/tests/data/rdap/autnum/2914.expected +++ b/tests/data/rdap/autnum/2914.expected @@ -1 +1,11 @@ -{"org_address": "8300 E Maplewood Ave.\r\nSuite 400\nGreenwood Village\nCO\n80111\nUNITED STATES", "org_name": "NTT America, Inc.", "emails": ["abuse@ntt.net", "peering@ntt.net", "support@us.ntt.net", "vipar@us.ntt.net"], "name": "NTT-COMMUNICATIONS-2914"} +{ + "name": "NTT-LTD-2914", + "emails": [ + "abuse@ntt.net", + "ipr@gin.ntt.net", + "massimo@ntt.net", + "support@us.ntt.net" + ], + "org_name": "NTT America, Inc.", + "org_address": "15809 Bear Creek Pkwy\nSuite 320\nRedmond\nWA\n98052\nUnited States" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/2914.input b/tests/data/rdap/autnum/2914.input index a2c0998..c0d375e 100644 --- a/tests/data/rdap/autnum/2914.input +++ b/tests/data/rdap/autnum/2914.input @@ -1,181 +1,652 @@ { - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Terms of Service", - "description" : [ "By using the ARIN RDAP/Whois service, you are agreeing to the RDAP/Whois Terms of Use" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "about", - "type" : "text/html", - "href" : "https://www.arin.net/whois_tou.html" - } ] - } ], - "handle" : "AS2914", - "startAutnum" : 2914, - "endAutnum" : 2914, - "name" : "NTT-COMMUNICATIONS-2914", - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2012-03-02T08:03:18-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "1998-12-07T00:00:00-05:00" - } ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/autnum/2914" - }, { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/asn/AS2914" - } ], - "entities" : [ { - "handle" : "NTTAM-1", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "NTT America, Inc." ], [ "adr", { - "label" : "8300 E Maplewood Ave.\r\nSuite 400\nGreenwood Village\nCO\n80111\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "kind", { }, "text", "org" ] ] ], - "roles" : [ "registrant" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/NTTAM-1" - }, { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/org/NTTAM-1" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-01-28T08:32:29-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "2005-12-08T12:04:23-05:00" - } ], - "entities" : [ { - "handle" : "NAAC-ARIN", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "adr", { - "label" : "8300 E Maplewood Ave.\r\nSuite 400\nGreenwood Village\nCO\n80111\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "fn", { }, "text", "NTT America Abuse Contact" ], [ "org", { }, "text", "NTT America Abuse Contact" ], [ "kind", { }, "text", "group" ], [ "email", { }, "text", "abuse@ntt.net" ], [ "tel", { - "type" : [ "work", "voice" ] - }, "text", "+1-877-688-6625" ] ] ], - "roles" : [ "abuse" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/NAAC-ARIN" - }, { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/poc/NAAC-ARIN" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2016-11-10T12:58:07-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "2005-12-02T11:16:33-05:00" - } ], - "status" : [ "validated" ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - }, { - "handle" : "NASC-ARIN", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "adr", { - "label" : "8300 E Maplewood Ave.\r\nSuite 400\nGreenwood Village\nCO\n80111\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "fn", { }, "text", "NTT America Support Contact" ], [ "org", { }, "text", "NTT America Support Contact" ], [ "kind", { }, "text", "group" ], [ "email", { }, "text", "support@us.ntt.net" ], [ "tel", { - "type" : [ "work", "voice" ] - }, "text", "+1-877-688-6625" ] ] ], - "roles" : [ "noc" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/NASC-ARIN" - }, { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/poc/NASC-ARIN" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2016-11-10T15:02:39-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "2005-12-02T11:16:39-05:00" - } ], - "status" : [ "validated" ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - }, { - "handle" : "VIPAR-ARIN", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "adr", { - "label" : "8300 E Maplewood Ave.\r\nSuite 400\nGreenwood Village\nCO\n80111\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "fn", { }, "text", "VIPAR" ], [ "org", { }, "text", "VIPAR" ], [ "kind", { }, "text", "group" ], [ "email", { }, "text", "vipar@us.ntt.net" ], [ "tel", { - "type" : [ "work", "voice" ] - }, "text", "+1-877-688-6625" ] ] ], - "roles" : [ "administrative", "technical" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/VIPAR-ARIN" - }, { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/poc/VIPAR-ARIN" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2016-11-07T10:31:32-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "2005-12-02T11:16:27-05:00" - } ], - "status" : [ "validated" ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - } ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - }, { - "handle" : "PEERI-ARIN", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "adr", { - "label" : "101 Park Ave.\r\n41st. floor\nNew York\nNY\n10178\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "fn", { }, "text", "Peering" ], [ "org", { }, "text", "Peering" ], [ "kind", { }, "text", "group" ], [ "email", { }, "text", "peering@ntt.net" ], [ "tel", { - "type" : [ "work", "voice" ] - }, "text", "+1-877-688-6625" ] ] ], - "roles" : [ "technical" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/PEERI-ARIN" - }, { - "value" : "https://rdap.arin.net/registry/autnum/2914", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/poc/PEERI-ARIN" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2016-11-07T09:55:50-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "2006-09-05T19:36:06-04:00" - } ], - "status" : [ "validated" ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - } ], - "port43" : "whois.arin.net", - "objectClassName" : "autnum" + "rdapConformance": [ + "nro_rdap_profile_0", + "rdap_level_0", + "nro_rdap_profile_asn_flat_0" + ], + "notices": [ + { + "title": "Terms of Service", + "description": [ + "By using the ARIN RDAP/Whois service, you are agreeing to the RDAP/Whois Terms of Use" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "terms-of-service", + "type": "text/html", + "href": "https://www.arin.net/resources/registry/whois/tou/" + } + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit: " + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "inaccuracy-report", + "type": "text/html", + "href": "https://www.arin.net/resources/registry/whois/inaccuracy_reporting/" + } + ] + }, + { + "title": "Copyright Notice", + "description": [ + "Copyright 1997-2023, American Registry for Internet Numbers, Ltd." + ] + } + ], + "handle": "AS2914", + "startAutnum": 2914, + "endAutnum": 2914, + "name": "NTT-LTD-2914", + "remarks": [ + { + "title": "Registration Comments", + "description": [ + "Website: https://www.gin.ntt.net", + "Routing Policy: https://www.gin.ntt.net/support-center/policies-procedures/routing/" + ] + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2021-11-24T11:59:32-05:00" + }, + { + "eventAction": "registration", + "eventDate": "1998-12-07T00:00:00-05:00" + } + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/autnum/2914" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/asn/AS2914" + } + ], + "entities": [ + { + "handle": "NTTAM-1", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "NTT America, Inc." + ], + [ + "adr", + { + "label": "15809 Bear Creek Pkwy\nSuite 320\nRedmond\nWA\n98052\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "kind", + {}, + "text", + "org" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/NTTAM-1" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/org/NTTAM-1" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-02-06T13:00:49-05:00" + }, + { + "eventAction": "registration", + "eventDate": "2005-12-08T12:04:23-05:00" + } + ], + "entities": [ + { + "handle": "NAAC-ARIN", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "adr", + { + "label": "8300 E Maplewood Ave.\nSuite 400\nGreenwood Village\nCO\n80111\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "fn", + {}, + "text", + "NTT America Abuse Contact" + ], + [ + "org", + {}, + "text", + "NTT America Abuse Contact" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "email", + {}, + "text", + "abuse@ntt.net" + ], + [ + "tel", + { + "type": [ + "work", + "voice" + ] + }, + "text", + "+1-877-688-6625" + ] + ] + ], + "roles": [ + "abuse" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/NAAC-ARIN" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/poc/NAAC-ARIN" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-01-19T16:36:41-05:00" + }, + { + "eventAction": "registration", + "eventDate": "2005-12-02T11:16:33-05:00" + } + ], + "status": [ + "validated" + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + }, + { + "handle": "NASC-ARIN", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "adr", + { + "label": "8300 E Maplewood Ave.\nSuite 400\nGreenwood Village\nCO\n80111\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "fn", + {}, + "text", + "NTT America Support Contact" + ], + [ + "org", + {}, + "text", + "NTT America Support Contact" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "email", + {}, + "text", + "support@us.ntt.net" + ], + [ + "tel", + { + "type": [ + "work", + "voice" + ] + }, + "text", + "+1-877-688-6625" + ] + ] + ], + "roles": [ + "noc" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/NASC-ARIN" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/poc/NASC-ARIN" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-01-19T16:36:02-05:00" + }, + { + "eventAction": "registration", + "eventDate": "2005-12-02T11:16:39-05:00" + } + ], + "status": [ + "validated" + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + }, + { + "handle": "VIPAR-ARIN", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "adr", + { + "label": "8300 E Maplewood Ave.\nSuite 400\nGreenwood Village\nCO\n80111\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "fn", + {}, + "text", + "VIPAR" + ], + [ + "org", + {}, + "text", + "VIPAR" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "email", + {}, + "text", + "ipr@gin.ntt.net" + ], + [ + "tel", + { + "type": [ + "work", + "voice" + ] + }, + "text", + "+1-877-688-6625" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/VIPAR-ARIN" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/poc/VIPAR-ARIN" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2022-12-06T14:32:05-05:00" + }, + { + "eventAction": "registration", + "eventDate": "2005-12-02T11:16:27-05:00" + } + ], + "status": [ + "validated" + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + }, + { + "handle": "CANDE70-ARIN", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "adr", + { + "label": "101 Park Ave.\n41st. floor\nNew York\nNY\n10178\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "fn", + {}, + "text", + "Massimo Candela" + ], + [ + "n", + {}, + "text", + [ + "Candela", + "Massimo", + "", + "", + "" + ] + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "email", + {}, + "text", + "massimo@ntt.net" + ], + [ + "tel", + { + "type": [ + "work", + "voice" + ] + }, + "text", + "+1-214-915-1366" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/CANDE70-ARIN" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/poc/CANDE70-ARIN" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-02-06T12:21:20-05:00" + }, + { + "eventAction": "registration", + "eventDate": "2023-02-06T12:21:20-05:00" + } + ], + "status": [ + "validated" + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + } + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + }, + { + "handle": "PEERI-ARIN", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "adr", + { + "label": "101 Park Ave.\r\n41st. floor\nNew York\nNY\n10178\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "fn", + {}, + "text", + "Peering" + ], + [ + "org", + {}, + "text", + "Peering" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "email", + {}, + "text", + "peering@ntt.net" + ], + [ + "tel", + { + "type": [ + "work", + "voice" + ] + }, + "text", + "+1-877-688-6625" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/PEERI-ARIN" + }, + { + "value": "https://rdap.arin.net/registry/autnum/2914", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/poc/PEERI-ARIN" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-02-27T09:10:43-05:00" + }, + { + "eventAction": "registration", + "eventDate": "2006-09-05T19:36:06-04:00" + } + ], + "status": [ + "validated" + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + } + ], + "port43": "whois.arin.net", + "status": [ + "active" + ], + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/37271.expected b/tests/data/rdap/autnum/37271.expected index b0905d8..b2128cf 100644 --- a/tests/data/rdap/autnum/37271.expected +++ b/tests/data/rdap/autnum/37271.expected @@ -1 +1,10 @@ -{"emails": ["communications@workonline.co.za", "noc@workonline.co.za", "robertj@workonline.co.za"], "name": "ORG-WCL1-AFRINIC", "org_address": "", "org_name": ""} +{ + "name": "ORG-WCL1-AFRINIC", + "emails": [ + "abuse@workonline.africa", + "communications@workonline.africa", + "noc@workonline.africa" + ], + "org_name": "Workonline Communications(Pty) Ltd", + "org_address": "114 West St\nJohannesburg 2196" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/37271.input b/tests/data/rdap/autnum/37271.input index 433a3b6..f5ac507 100644 --- a/tests/data/rdap/autnum/37271.input +++ b/tests/data/rdap/autnum/37271.input @@ -1,70 +1,368 @@ { - "lang" : "en", - "notices" : [ { - "title" : "ABOUT", - "description" : [ "This is the AfriNIC RDAP server." ], - "links" : [ { - "value" : "https://rdap.afrinic.net/rdap/autnum/37271", - "rel" : "describedby", - "href" : "http://www.afrinic.net/en/library/membership-documents/197-database-afrinic-database-reference-manual-", - "hreflang" : [ "en" ], - "type" : "text/html", - "title" : "AFRINIC Database Reference Manual", - "media" : "screen" - } ] - } ], - "handle" : "AS37271", - "status" : [ "active" ], - "port43" : "whois.afrinic.net", - "name" : "ORG-WCL1-AFRINIC", - "entities" : [ { - "lang" : "en", - "handle" : "WOL-AFRINIC", - "status" : [ "active" ], - "port43" : "whois.afrinic.net", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "kind", { }, "text", "group" ], [ "fn", { }, "text", "Workonline NOC" ], [ "tel", { - "type" : "work" - }, "uri", "tel:+27 21 200 9009" ], [ "email", { - "type" : "work" - }, "text", "noc@workonline.co.za" ], [ "adr", { - "type" : "work" - }, "text", [ "30 Waterkant St", "Cape Town", "South Africa", "", "", "", "" ] ] ] ], - "objectClassName" : "entity" - }, { - "lang" : "en", - "handle" : "ORG-WCL1-AFRINIC", - "status" : [ "active" ], - "port43" : "whois.afrinic.net", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "kind", { }, "text", "org" ], [ "fn", { }, "text", "ORG-WCL1-AFRINIC" ], [ "tel", { - "type" : "work" - }, "uri", "tel:+27 21 200 9000" ], [ "tel", { - "type" : "work" - }, "uri", "tel:+27 21 200 9009" ], [ "tel", { - "type" : "work" - }, "uri", "tel:+27761157753" ], [ "email", { - "type" : "work" - }, "text", "communications@workonline.co.za" ], [ "email", { - "type" : "work" - }, "text", "robertj@workonline.co.za" ], [ "adr", { - "type" : "work" - }, "text", [ "30 Waterkant St", "Cape Town 8001", "", "", "", "", "" ] ] ] ], - "objectClassName" : "entity" - }, { - "lang" : "en", - "handle" : "RJ2-AFRINIC", - "status" : [ "active" ], - "port43" : "whois.afrinic.net", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "kind", { }, "text", "individual" ], [ "fn", { }, "text", "Robert Jooste" ], [ "tel", { - "type" : "work" - }, "uri", "tel:+27761157753" ], [ "email", { - "type" : "work" - }, "text", "robertj@workonline.co.za" ], [ "adr", { - "type" : "work" - }, "text", [ "il Palazzo Unit 2, 5 Zenith Drive, Umhlanga Rocks", "Durban", "South Africa", "", "", "", "" ] ] ] ], - "objectClassName" : "entity" - } ], - "startAutnum" : 37271, - "endAutnum" : 37271, - "objectClassName" : "autnum", - "rdapConformance" : [ "rdap_level_0" ] + "rdapConformance": [ + "rdap_level_0", + "nro_rdap_profile_0", + "nro_rdap_profile_asn_flat_0" + ], + "notices": [ + { + "title": "ABOUT", + "description": [ + "This is the AfriNIC RDAP server." + ], + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "describedby", + "href": "https://www.afrinic.net/support/whois-db/reference-manual", + "hreflang": [ + "en" + ], + "type": "text/html", + "title": "AFRINIC Database Reference Manual", + "media": "screen" + } + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the AFRINIC Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "terms-of-service", + "href": "https://afrinic.net/whois/terms", + "type": "text/html" + } + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit: " + ], + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "inaccuracy-report", + "href": "https://www.afrinic.net/support/whois-db/reference-manual", + "type": "text/html", + "title": "AFRINIC WHOIS Inaccuracy Report" + } + ] + }, + { + "title": "jCard sunset end", + "description": [ + "2023-12-31T23:59:59Z" + ], + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "related", + "href": "https://www.ietf.org/id/draft-ietf-regext-rdap-jscontact-12.html", + "type": "text/html", + "title": "jCard deprecation and replacement with JSContact Card" + }, + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "alternate", + "href": "https://rdap.afrinic.net/rdap/autnum/37271?jscard=1", + "type": "application/rdap+json", + "title": "JSContact Card version" + } + ] + }, + { + "title": "jCard deprecation end", + "description": [ + "2022-12-31T23:59:59Z" + ], + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "related", + "href": "https://www.ietf.org/id/draft-ietf-regext-rdap-jscontact-12.html", + "type": "text/html", + "title": "jCard deprecation and replacement with JSContact Card" + }, + { + "value": "https://rdap.afrinic.net/rdap/autnum/37271", + "rel": "alternate", + "href": "https://rdap.afrinic.net/rdap/autnum/37271?jscard=1", + "type": "application/rdap+json", + "title": "JSContact Card version" + } + ] + } + ], + "lang": "en", + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/autnum/AS37271", + "rel": "self", + "href": "https://rdap.afrinic.net/rdap/autnum/AS37271" + } + ], + "handle": "AS37271", + "events": [ + { + "eventAction": "registration", + "eventDate": "2010-10-25T10:14:00Z" + }, + { + "eventAction": "last changed", + "eventDate": "2022-08-08T10:03:00Z" + } + ], + "status": [ + "active" + ], + "port43": "whois.afrinic.net", + "name": "ORG-WCL1-AFRINIC", + "entities": [ + { + "lang": "en", + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/entity/ORG-WCL1-AFRINIC", + "rel": "self", + "href": "https://rdap.afrinic.net/rdap/entity/ORG-WCL1-AFRINIC" + } + ], + "handle": "ORG-WCL1-AFRINIC", + "status": [ + "active" + ], + "port43": "whois.afrinic.net", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "fn", + {}, + "text", + "Workonline Communications(Pty) Ltd" + ], + [ + "tel", + { + "type": "work" + }, + "text", + "tel:+27-21-200-9000" + ], + [ + "tel", + { + "type": "work" + }, + "text", + "tel:+27-21-200-9009" + ], + [ + "email", + {}, + "text", + "noc@workonline.africa" + ], + [ + "email", + {}, + "text", + "abuse@workonline.africa" + ], + [ + "email", + {}, + "text", + "communications@workonline.africa" + ], + [ + "adr", + { + "label": "114 West St\nJohannesburg 2196" + }, + "text", + [ + "114 West St", + "Johannesburg 2196", + "", + "", + "", + "", + "" + ] + ] + ] + ], + "roles": [ + "registrant" + ], + "objectClassName": "entity" + }, + { + "lang": "en", + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/entity/PP17-AFRINIC", + "rel": "self", + "href": "https://rdap.afrinic.net/rdap/entity/PP17-AFRINIC" + } + ], + "handle": "PP17-AFRINIC", + "status": [ + "active" + ], + "port43": "whois.afrinic.net", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "fn", + {}, + "text", + "Peter Peele" + ], + [ + "tel", + { + "type": "work" + }, + "text", + "tel:+27-82-064-3322" + ], + [ + "email", + {}, + "text", + "peterp@workonline.africa" + ], + [ + "adr", + { + "label": "114 West Street\nSandton\nSouth Africa\nPostal Code 2066" + }, + "text", + [ + "114 West Street", + "Sandton", + "South Africa", + "Postal Code 2066", + "", + "", + "" + ] + ] + ] + ], + "roles": [ + "administrative", + "technical" + ], + "objectClassName": "entity" + }, + { + "lang": "en", + "links": [ + { + "value": "https://rdap.afrinic.net/rdap/entity/WOL-AFRINIC", + "rel": "self", + "href": "https://rdap.afrinic.net/rdap/entity/WOL-AFRINIC" + } + ], + "handle": "WOL-AFRINIC", + "status": [ + "active" + ], + "port43": "whois.afrinic.net", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "fn", + {}, + "text", + "Workonline NOC" + ], + [ + "tel", + { + "type": "work" + }, + "text", + "tel:+27-21-200-9009" + ], + [ + "email", + {}, + "text", + "noc@workonline.africa" + ], + [ + "adr", + { + "label": "114 West St\nJohannesburg 2196\nSouth Africa" + }, + "text", + [ + "114 West St", + "Johannesburg 2196", + "South Africa", + "", + "", + "", + "" + ] + ] + ] + ], + "roles": [ + "administrative", + "technical" + ], + "objectClassName": "entity" + } + ], + "startAutnum": 37271, + "endAutnum": 37271, + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/49037.expected b/tests/data/rdap/autnum/49037.expected index 35d839f..54aadbd 100644 --- a/tests/data/rdap/autnum/49037.expected +++ b/tests/data/rdap/autnum/49037.expected @@ -1 +1,8 @@ -{"org_address": "", "org_name": "", "emails": ["netadm@tagan.ru"], "name": "MGL-AS"} +{ + "name": "PG19", + "emails": [ + "mikhail.majorov@gmail.com" + ], + "org_name": "PROSTIE RESHENIA LLC, ****************** Routing Policy *******************", + "org_address": "ST. MOVSESA HORENACI, 14/20\n1109\nVAGARSHAPAT\nARMENIA" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/49037.input b/tests/data/rdap/autnum/49037.input index 6d1ad06..aa0f683 100644 --- a/tests/data/rdap/autnum/49037.input +++ b/tests/data/rdap/autnum/49037.input @@ -1,62 +1,478 @@ { - "handle" : "AS49037", - "name" : "MGL-AS", - "type" : "DIRECT ALLOCATION", - "entities" : [ { - "handle" : "MM47295-RIPE", - "roles" : [ "administrative", "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "MNT-ML", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "RIPE-NCC-END-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "AR43768-RIPE", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "Abuse-C Role" ], [ "kind", { }, "text", "group" ], [ "adr", { - "label" : "Chehova st. 318\n347900\nTaganrog\nRUSSIAN FEDERATION" - }, "text", null ], [ "email", { }, "text", "netadm@tagan.ru" ] ] ], - "roles" : [ "abuse" ], - "entities" : [ { - "handle" : "MNT-ML", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - } ], - "objectClassName" : "entity" - } ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/49037", - "rel" : "self", - "href" : "https://rdap.db.ripe.net/autnum/49037" - }, { - "value" : "http://www.ripe.net/data-tools/support/documentation/terms", - "rel" : "copyright", - "href" : "http://www.ripe.net/data-tools/support/documentation/terms" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-11-23T15:51:13Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Filtered", - "description" : [ "This output has been filtered." ] - }, { - "title" : "Source", - "description" : [ "Objects returned came from source", "RIPE" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the RIPE Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/49037", - "rel" : "terms-of-service", - "href" : "http://www.ripe.net/db/support/db-terms-conditions.pdf", - "type" : "application/pdf" - } ] - } ], - "port43" : "whois.ripe.net", - "objectClassName" : "autnum" + "handle": "AS49037", + "startAutnum": 49037, + "endAutnum": 49037, + "name": "PG19", + "status": [ + "active" + ], + "entities": [ + { + "handle": "ORG-PRL15-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "PROSTIE RESHENIA LLC" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "ST. MOVSESA HORENACI, 14/20\n1109\nVAGARSHAPAT\nARMENIA" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+37444120474" + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+37441057581" + ], + [ + "email", + { + "type": "email" + }, + "text", + "mikhail.majorov@gmail.com" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ORG-PRL15-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RIPE-NCC-END-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "RIPE-NCC-END-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-NCC1-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RIPE-NCC-END-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "WA2477-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "WEBROCKET SUPPORT TEAM" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "st. Movsesa Horenaci 14/20, Vagharshapat, Armavir, Armenia, 1101" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "ripe@webrocket.am" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@webrocket.am" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/WA2477-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "WEBROCKET-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "WEBROCKET-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/WEBROCKET-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "WA2477-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "WEBROCKET SUPPORT TEAM" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "st. Movsesa Horenaci 14/20, Vagharshapat, Armavir, Armenia, 1101" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "ripe@webrocket.am" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@webrocket.am" + ] + ] + ], + "roles": [ + "abuse" + ], + "entities": [ + { + "handle": "WEBROCKET-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "WEBROCKET-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/WEBROCKET-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + } + ], + "objectClassName": "entity" + } + ], + "remarks": [ + { + "description": [ + "****************** Routing Policy *******************", + "********** DI-DI", + "********** DOM.RU", + "********** MEDIASETI", + "********** RETN", + "********** LEVEL-MSK", + "********** RND-IX", + "********** SEA-IX", + "********** VK.COM", + "********** MEGAFON", + "********** Eurasia Peering", + "********** APPLE", + "********** GOOGLE", + "********** MAIL.RU", + "********** Hurricane Electric", + "********** MICROSOFT", + "********** OVH", + "********** TWITCH", + "********** FACEBOOK", + "********** MSK-IX", + "********** PITER-IX MSK", + "********** PITER-IX HEL", + "********** PITER-IX RIX", + "********** PITER-IX SPB", + "********** PITER-IX TIL", + "********** PITER-IX UA", + "********** GBL", + "***************************************************************", + "***** BGP communities in advertisements towards downstream ****", + "49037:55001 Taganrog", + "49037:55002 Rostov-on-Don", + "49037:55003 Krasnodar", + "49037:55004 Moscow", + "*********** BGP communities accepted from downstream **********", + "Change of RR list's happens by handmade via e-mail to noc@pg19.ru" + ] + } + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "self", + "href": "https://rdap.db.ripe.net/autnum/49037" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2009-03-31T07:49:08Z" + }, + { + "eventAction": "last changed", + "eventDate": "2023-07-04T07:07:32Z" + } + ], + "rdapConformance": [ + "nro_rdap_profile_asn_flat_0", + "cidr0", + "rdap_level_0", + "nro_rdap_profile_0" + ], + "notices": [ + { + "title": "Filtered", + "description": [ + "This output has been filtered." + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit:" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "inaccuracy-report", + "href": "https://www.ripe.net/contact-form?topic=ripe_dbm&show_form=true", + "type": "text/html" + } + ] + }, + { + "title": "Source", + "description": [ + "Objects returned came from source", + "RIPE" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the RIPE Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/49037", + "rel": "terms-of-service", + "href": "http://www.ripe.net/db/support/db-terms-conditions.pdf", + "type": "application/pdf" + } + ] + } + ], + "port43": "whois.ripe.net", + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/53170.expected b/tests/data/rdap/autnum/53170.expected index 543eab8..2534241 100644 --- a/tests/data/rdap/autnum/53170.expected +++ b/tests/data/rdap/autnum/53170.expected @@ -1 +1,6 @@ -{"org_address": "BR", "org_name": "Cabangu Internet Ltda", "emails": ["cpd@cabanguinternet.com.br"], "name": "ASN53170"} +{ + "name": "ASN53170", + "emails": [], + "org_name": "Cabangu Internet Ltda", + "org_address": "" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/53170.input b/tests/data/rdap/autnum/53170.input index f4b0ae3..02b5dc3 100644 --- a/tests/data/rdap/autnum/53170.input +++ b/tests/data/rdap/autnum/53170.input @@ -1 +1,216 @@ -{"objectClassName":"autnum","handle":"53170","startAutnum":53170,"endAutnum":53170,"name":"ASN53170","type":"DIRECT ALLOCATION","country":"BR","links":[{"value":"https://rdap.registro.br/autnum/53170","rel":"self","href":"https://rdap.registro.br/autnum/53170","type":"application/rdap+json"},{"value":"https://rdap.registro.br/autnum/53170","rel":"related","href":"https://rdap.registro.br/ip/186.224.48.0/20","type":"application/rdap+json"},{"value":"https://rdap.registro.br/autnum/53170","rel":"related","href":"https://rdap.registro.br/ip/2804:3838::/32","type":"application/rdap+json"}],"entities":[{"objectClassName":"entity","handle":"17769837000100","vcardArray":["vcard",[["version",{},"text","4.0"],["kind",{},"text","org"],["fn",{},"text","Cabangu Internet Ltda"],["adr",{},"text",["","","","","","","BR"]]]],"roles":["registrant"],"publicIds":[{"type":"cnpj","identifier":"17.769.837/0001-00"}],"entities":[{"objectClassName":"entity","handle":"GJM3","vcardArray":["vcard",[["version",{},"text","4.0"],["kind",{},"text","individual"],["fn",{},"text","Geovane Jose Vieira Martins"],["email",{},"text","cpd@cabanguinternet.com.br"],["lang",{},"language-tag","PT"],["adr",{},"text",["","","","","","","BR"]]]],"roles":["administrative"],"events":[{"eventAction":"registration","eventDate":"1998-11-10T12:00:00Z"},{"eventAction":"last changed","eventDate":"2016-04-26T11:58:32Z"}],"links":[{"value":"https://rdap.registro.br/entity/GJM3","rel":"self","href":"https://rdap.registro.br/entity/GJM3","type":"application/rdap+json"}]}],"events":[{"eventAction":"registration","eventDate":"1998-11-10T12:00:00Z"},{"eventAction":"last changed","eventDate":"2011-08-11T20:18:33Z"}],"links":[{"value":"https://rdap.registro.br/entity/17769837000100","rel":"self","href":"https://rdap.registro.br/entity/17769837000100","type":"application/rdap+json"}],"legalRepresentative":"Geovane Jose Vieira Martins"},{"objectClassName":"entity","handle":"GJM3","vcardArray":["vcard",[["version",{},"text","4.0"],["kind",{},"text","individual"],["fn",{},"text","Geovane Jose Vieira Martins"],["email",{},"text","cpd@cabanguinternet.com.br"],["lang",{},"language-tag","PT"],["adr",{},"text",["","","","","","","BR"]]]],"roles":["administrative","abuse"],"events":[{"eventAction":"registration","eventDate":"1998-11-10T12:00:00Z"},{"eventAction":"last changed","eventDate":"2016-04-26T11:58:32Z"}],"links":[{"value":"https://rdap.registro.br/entity/GJM3","rel":"self","href":"https://rdap.registro.br/entity/GJM3","type":"application/rdap+json"}]}],"events":[{"eventAction":"registration","eventDate":"2010-07-26T14:27:24Z"},{"eventAction":"last changed","eventDate":"2013-03-06T14:00:54Z"}],"notices":[{"title":"Terms of Use","description":["Copyright (c) NIC.br","The use of the data is only permitted as described in","full by the terms of use, being prohibited its ","distribution, commercialization or reproduction, in ","particular, to use it for advertising or any similar ","purpose."],"links":[{"value":"https://rdap.registro.br/autnum/53170","rel":"alternate","href":"https://registro.br/termo/en.html","type":"text/html"}]}],"rdapConformance":["rdap_level_0","nicbr_level_0"],"port43":"whois.nic.br"} +{ + "objectClassName": "autnum", + "handle": "53170", + "startAutnum": 53170, + "endAutnum": 53170, + "name": "ASN53170", + "type": "DIRECT ALLOCATION", + "country": "BR", + "links": [ + { + "value": "https://rdap.registro.br/autnum/53170", + "rel": "self", + "href": "https://rdap.registro.br/autnum/53170", + "type": "application/rdap+json" + }, + { + "value": "https://rdap.registro.br/autnum/53170", + "rel": "related", + "href": "https://rdap.registro.br/ip/186.224.48.0/20", + "type": "application/rdap+json" + }, + { + "value": "https://rdap.registro.br/autnum/53170", + "rel": "related", + "href": "https://rdap.registro.br/ip/2804:3838::/32", + "type": "application/rdap+json" + } + ], + "entities": [ + { + "objectClassName": "entity", + "handle": "17769837000100", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "fn", + {}, + "text", + "Cabangu Internet Ltda" + ] + ] + ], + "roles": [ + "registrant" + ], + "entities": [ + { + "objectClassName": "entity", + "handle": "GJM3", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "fn", + {}, + "text", + "Geovane Jose Vieira Martins" + ], + [ + "lang", + {}, + "language-tag", + "pt" + ] + ] + ], + "roles": [ + "administrative" + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "1998-11-10T12:00:00Z" + }, + { + "eventAction": "last changed", + "eventDate": "2022-08-01T12:22:55Z" + } + ] + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "1998-11-10T12:00:00Z" + }, + { + "eventAction": "last changed", + "eventDate": "2011-08-11T20:18:33Z" + } + ], + "links": [ + { + "value": "https://rdap.registro.br/entity/17769837000100", + "rel": "self", + "href": "https://rdap.registro.br/entity/17769837000100", + "type": "application/rdap+json" + } + ], + "legalRepresentative": "Geovane Jose Vieira Martins" + }, + { + "objectClassName": "entity", + "handle": "BRI2", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "fn", + {}, + "text", + "Bruno Imbroisi" + ], + [ + "lang", + {}, + "language-tag", + "pt" + ] + ] + ], + "roles": [ + "administrative", + "abuse" + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "1998-02-19T12:00:00Z" + }, + { + "eventAction": "last changed", + "eventDate": "2011-05-17T15:01:16Z" + } + ] + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2010-07-26T14:27:24Z" + }, + { + "eventAction": "last changed", + "eventDate": "2023-02-28T10:29:08Z" + } + ], + "notices": [ + { + "title": "Use and Privacy Policy", + "description": [ + "Copyright (c) NIC.br", + "The use of the data is only permitted as described in", + "full by the Use and Privacy Policy, being prohibited its ", + "distribution, commercialization or reproduction, in ", + "particular, to use it for advertising or any similar ", + "purpose." + ], + "links": [ + { + "value": "https://rdap.registro.br/autnum/53170", + "rel": "alternate", + "href": "https://registro.br/upp", + "type": "text/html" + } + ] + } + ], + "remarks": [ + { + "type": "object truncated due to server policy" + } + ], + "rdapConformance": [ + "rdap_level_0", + "nicbr_level_0" + ], + "port43": "whois.nic.br" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/61399.expected b/tests/data/rdap/autnum/61399.expected index b76d0dd..57681a6 100644 --- a/tests/data/rdap/autnum/61399.expected +++ b/tests/data/rdap/autnum/61399.expected @@ -1 +1,8 @@ -{"org_address": "", "org_name": "", "emails": ["lir@kg-ix.net"], "name": "KG-IX"} +{ + "name": "KG-IX", + "emails": [ + "lir@ix.kg" + ], + "org_name": "KG-IX LLC", + "org_address": "Razzakova st. 55\n720040\nBishkek\nKYRGYZSTAN" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/61399.input b/tests/data/rdap/autnum/61399.input index 187d4c3..0dc7c47 100644 --- a/tests/data/rdap/autnum/61399.input +++ b/tests/data/rdap/autnum/61399.input @@ -1,62 +1,421 @@ { - "handle" : "AS61399", - "name" : "KG-IX", - "type" : "DIRECT ALLOCATION", - "entities" : [ { - "handle" : "kg-ix-1-mnt", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "MP31159-RIPE", - "roles" : [ "administrative", "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "RIPE-NCC-END-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "AR41993-RIPE", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "Abuse-C Role" ], [ "kind", { }, "text", "group" ], [ "adr", { - "label" : "271 Frunze st.\n720065\nBishkek\nKYRGYZSTAN" - }, "text", null ], [ "email", { }, "text", "lir@kg-ix.net" ] ] ], - "roles" : [ "abuse" ], - "entities" : [ { - "handle" : "kg-ix-1-mnt", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - } ], - "objectClassName" : "entity" - } ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/61399", - "rel" : "self", - "href" : "https://rdap.db.ripe.net/autnum/61399" - }, { - "value" : "http://www.ripe.net/data-tools/support/documentation/terms", - "rel" : "copyright", - "href" : "http://www.ripe.net/data-tools/support/documentation/terms" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-11-15T13:42:35Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Filtered", - "description" : [ "This output has been filtered." ] - }, { - "title" : "Source", - "description" : [ "Objects returned came from source", "RIPE" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the RIPE Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/61399", - "rel" : "terms-of-service", - "href" : "http://www.ripe.net/db/support/db-terms-conditions.pdf", - "type" : "application/pdf" - } ] - } ], - "port43" : "whois.ripe.net", - "objectClassName" : "autnum" + "handle": "AS61399", + "startAutnum": 61399, + "endAutnum": 61399, + "name": "KG-IX", + "status": [ + "active" + ], + "entities": [ + { + "handle": "kg-ix-1-mnt", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "kg-ix-1-mnt" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/kg-ix-1-mnt" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "MP31159-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Madina Botirova" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Razzakova 55\n720000\nBishkek\nKYRGYZSTAN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+996555924135" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/MP31159-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "ORG-KL219-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "KG-IX LLC" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "Razzakova st. 55\n720040\nBishkek\nKYRGYZSTAN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+996555924135" + ], + [ + "email", + { + "type": "email" + }, + "text", + "lir@ix.kg" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ORG-KL219-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RIPE-NCC-END-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "RIPE-NCC-END-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-NCC1-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RIPE-NCC-END-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "AR41993-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Abuse-C Role" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "271 Frunze st.\n720065\nBishkek\nKYRGYZSTAN" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + { + "type": "email" + }, + "text", + "lir@ix.kg" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "lir@ix.kg" + ] + ] + ], + "roles": [ + "abuse" + ], + "entities": [ + { + "handle": "kg-ix-1-mnt", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "kg-ix-1-mnt" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/kg-ix-1-mnt" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + } + ], + "objectClassName": "entity" + } + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "self", + "href": "https://rdap.db.ripe.net/autnum/61399" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2017-07-10T09:15:46Z" + }, + { + "eventAction": "last changed", + "eventDate": "2022-09-17T13:16:18Z" + } + ], + "rdapConformance": [ + "nro_rdap_profile_asn_flat_0", + "cidr0", + "rdap_level_0", + "nro_rdap_profile_0" + ], + "notices": [ + { + "title": "Filtered", + "description": [ + "This output has been filtered." + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit:" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "inaccuracy-report", + "href": "https://www.ripe.net/contact-form?topic=ripe_dbm&show_form=true", + "type": "text/html" + } + ] + }, + { + "title": "Source", + "description": [ + "Objects returned came from source", + "RIPE" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the RIPE Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/61399", + "rel": "terms-of-service", + "href": "http://www.ripe.net/db/support/db-terms-conditions.pdf", + "type": "application/pdf" + } + ] + } + ], + "port43": "whois.ripe.net", + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/63311.expected b/tests/data/rdap/autnum/63311.expected index 30afb1d..5d5b6c6 100644 --- a/tests/data/rdap/autnum/63311.expected +++ b/tests/data/rdap/autnum/63311.expected @@ -1 +1,8 @@ -{"org_address": "303 W Ohio #1701\nChicago\nIL\n60654\nUNITED STATES", "org_name": "20C, LLC", "emails": ["neteng@20c.com"], "name": "AS-20C"} +{ + "name": "20C", + "emails": [ + "neteng@20c.com" + ], + "org_name": "20C, LLC", + "org_address": "303 W Ohio #1701\nChicago\nIL\n60654\nUnited States" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/63311.input b/tests/data/rdap/autnum/63311.input index 4db9d1c..fa38ec9 100644 --- a/tests/data/rdap/autnum/63311.input +++ b/tests/data/rdap/autnum/63311.input @@ -1,94 +1,250 @@ { - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Terms of Service", - "description" : [ "By using the ARIN RDAP/Whois service, you are agreeing to the RDAP/Whois Terms of Use" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "about", - "type" : "text/html", - "href" : "https://www.arin.net/whois_tou.html" - } ] - } ], - "handle" : "AS63311", - "startAutnum" : 63311, - "endAutnum" : 63311, - "name" : "AS-20C", - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2014-11-17T14:28:43-05:00" - }, { - "eventAction" : "registration", - "eventDate" : "2014-11-17T14:28:43-05:00" - } ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/autnum/63311" - }, { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/asn/AS63311" - } ], - "entities" : [ { - "handle" : "CL-672", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "20C, LLC" ], [ "adr", { - "label" : "303 W Ohio #1701\nChicago\nIL\n60654\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "kind", { }, "text", "org" ] ] ], - "roles" : [ "registrant" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/CL-672" - }, { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/org/CL-672" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2014-08-05T15:21:11-04:00" - }, { - "eventAction" : "registration", - "eventDate" : "2014-08-05T15:21:11-04:00" - } ], - "entities" : [ { - "handle" : "NETWO7047-ARIN", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "adr", { - "label" : "303 W Ohio #1701\nChicago\nIL\n60654\nUNITED STATES" - }, "text", [ "", "", "", "", "", "", "" ] ], [ "fn", { }, "text", "Network Engineers" ], [ "org", { }, "text", "Network Engineers" ], [ "kind", { }, "text", "group" ], [ "email", { }, "text", "neteng@20c.com" ], [ "tel", { - "type" : [ "work", "voice" ] - }, "text", "+1-978-636-0020" ] ] ], - "roles" : [ "technical", "abuse", "administrative" ], - "links" : [ { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "self", - "type" : "application/rdap+json", - "href" : "https://rdap.arin.net/registry/entity/NETWO7047-ARIN" - }, { - "value" : "https://rdap.arin.net/registry/autnum/63311", - "rel" : "alternate", - "type" : "application/xml", - "href" : "https://whois.arin.net/rest/poc/NETWO7047-ARIN" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2016-07-18T18:38:29-04:00" - }, { - "eventAction" : "registration", - "eventDate" : "2014-07-03T23:22:49-04:00" - } ], - "status" : [ "validated" ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - } ], - "port43" : "whois.arin.net", - "objectClassName" : "entity" - } ], - "port43" : "whois.arin.net", - "objectClassName" : "autnum" + "rdapConformance": [ + "nro_rdap_profile_0", + "rdap_level_0", + "nro_rdap_profile_asn_flat_0" + ], + "notices": [ + { + "title": "Terms of Service", + "description": [ + "By using the ARIN RDAP/Whois service, you are agreeing to the RDAP/Whois Terms of Use" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "terms-of-service", + "type": "text/html", + "href": "https://www.arin.net/resources/registry/whois/tou/" + } + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit: " + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "inaccuracy-report", + "type": "text/html", + "href": "https://www.arin.net/resources/registry/whois/inaccuracy_reporting/" + } + ] + }, + { + "title": "Copyright Notice", + "description": [ + "Copyright 1997-2023, American Registry for Internet Numbers, Ltd." + ] + } + ], + "handle": "AS63311", + "startAutnum": 63311, + "endAutnum": 63311, + "name": "20C", + "events": [ + { + "eventAction": "last changed", + "eventDate": "2018-10-24T22:58:16-04:00" + }, + { + "eventAction": "registration", + "eventDate": "2014-11-17T14:28:43-05:00" + } + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/autnum/63311" + }, + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/asn/AS63311" + } + ], + "entities": [ + { + "handle": "CL-672", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "20C, LLC" + ], + [ + "adr", + { + "label": "303 W Ohio #1701\nChicago\nIL\n60654\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "kind", + {}, + "text", + "org" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/CL-672" + }, + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/org/CL-672" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2014-08-05T15:21:11-04:00" + }, + { + "eventAction": "registration", + "eventDate": "2014-08-05T15:21:11-04:00" + } + ], + "entities": [ + { + "handle": "NETWO7047-ARIN", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "adr", + { + "label": "603 Discovery Dr\nWest Chicago\nIL\n60185\nUnited States" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "fn", + {}, + "text", + "Network Engineers" + ], + [ + "org", + {}, + "text", + "Network Engineers" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "email", + {}, + "text", + "neteng@20c.com" + ], + [ + "tel", + { + "type": [ + "work", + "voice" + ] + }, + "text", + "+1-978-636-0020" + ] + ] + ], + "roles": [ + "technical", + "abuse", + "administrative" + ], + "links": [ + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "self", + "type": "application/rdap+json", + "href": "https://rdap.arin.net/registry/entity/NETWO7047-ARIN" + }, + { + "value": "https://rdap.arin.net/registry/autnum/63311", + "rel": "alternate", + "type": "application/xml", + "href": "https://whois.arin.net/rest/poc/NETWO7047-ARIN" + } + ], + "events": [ + { + "eventAction": "last changed", + "eventDate": "2023-08-02T14:15:09-04:00" + }, + { + "eventAction": "registration", + "eventDate": "2014-07-03T23:22:49-04:00" + } + ], + "status": [ + "validated" + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + } + ], + "port43": "whois.arin.net", + "objectClassName": "entity" + } + ], + "port43": "whois.arin.net", + "status": [ + "active" + ], + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/8283.expected b/tests/data/rdap/autnum/8283.expected index 2e3154a..c42f5ff 100644 --- a/tests/data/rdap/autnum/8283.expected +++ b/tests/data/rdap/autnum/8283.expected @@ -1 +1,10 @@ -{"org_address": "", "org_name": "Netwerkvereniging Coloclue, Amsterdam, Netherlands", "emails": ["ops@coloclue.net", "routers@coloclue.net"], "name": "COLOCLUE-AS"} +{ + "name": "COLOCLUE-AS", + "emails": [ + "abuse@coloclue.net", + "ops@coloclue.net", + "routers@coloclue.net" + ], + "org_name": "Netwerkvereniging Coloclue, Netwerkvereniging Coloclue, Amsterdam, Netherlands", + "org_address": "Frans Duwaerstraat 34\n1318 AC\nAlmere\nNETHERLANDS" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/8283.input b/tests/data/rdap/autnum/8283.input index 055ce48..f39cdf0 100644 --- a/tests/data/rdap/autnum/8283.input +++ b/tests/data/rdap/autnum/8283.input @@ -1,95 +1,1468 @@ { - "handle" : "AS8283", - "name" : "COLOCLUE-AS", - "type" : "DIRECT ALLOCATION", - "entities" : [ { - "handle" : "CLUE1-RIPE", - "roles" : [ "administrative", "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "COLOCLUE-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "RIPE-NCC-END-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "CLUE1-RIPE", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "Netwerkvereniging Coloclue" ], [ "kind", { }, "text", "group" ], [ "adr", { - "label" : "Frans Duwaerstraat 34\n1318AC Almere\nNetherlands" - }, "text", null ], [ "tel", { - "type" : "voice" - }, "text", "+31651387718" ], [ "email", { }, "text", "ops@coloclue.net" ], [ "email", { }, "text", "routers@coloclue.net" ] ] ], - "roles" : [ "abuse" ], - "entities" : [ { - "handle" : "COLOCLUE-MNT", - "roles" : [ "registrant" ], - "objectClassName" : "entity" - }, { - "handle" : "JVI-RIPE", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "JWJS1-RIPE", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "MWTS1-RIPE", - "roles" : [ "administrative" ], - "objectClassName" : "entity" - }, { - "handle" : "NMR5-RIPE", - "roles" : [ "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "NT1031-RIPE", - "roles" : [ "administrative" ], - "objectClassName" : "entity" - }, { - "handle" : "PDW-RIPE", - "roles" : [ "administrative", "technical" ], - "objectClassName" : "entity" - }, { - "handle" : "PEER-RIPE", - "roles" : [ "technical" ], - "objectClassName" : "entity" - } ], - "objectClassName" : "entity" - } ], - "remarks" : [ { - "description" : [ "Netwerkvereniging Coloclue, Amsterdam, Netherlands" ] - } ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/8283", - "rel" : "self", - "href" : "https://rdap.db.ripe.net/autnum/8283" - }, { - "value" : "http://www.ripe.net/data-tools/support/documentation/terms", - "rel" : "copyright", - "href" : "http://www.ripe.net/data-tools/support/documentation/terms" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-04-06T14:46:37Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Filtered", - "description" : [ "This output has been filtered." ] - }, { - "title" : "Source", - "description" : [ "Objects returned came from source", "RIPE" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the RIPE Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.db.ripe.net/autnum/8283", - "rel" : "terms-of-service", - "href" : "http://www.ripe.net/db/support/db-terms-conditions.pdf", - "type" : "application/pdf" - } ] - } ], - "port43" : "whois.ripe.net", - "objectClassName" : "autnum" + "handle": "AS8283", + "startAutnum": 8283, + "endAutnum": 8283, + "name": "COLOCLUE-AS", + "status": [ + "active" + ], + "entities": [ + { + "handle": "CLUE1-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Netwerkvereniging Coloclue" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "Frans Duwaerstraat 34\n1318AC Almere\nNetherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31651387718" + ], + [ + "email", + { + "type": "email" + }, + "text", + "ops@coloclue.net" + ], + [ + "email", + { + "type": "email" + }, + "text", + "routers@coloclue.net" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@coloclue.net" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/CLUE1-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "COLOCLUE-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "coloclue-mnt" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/COLOCLUE-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "ORG-NC22-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Netwerkvereniging Coloclue" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "Frans Duwaerstraat 34\n1318 AC\nAlmere\nNETHERLANDS" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31651387718" + ], + [ + "email", + { + "type": "email" + }, + "text", + "ops@coloclue.net" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/ORG-NC22-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RIPE-NCC-END-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "RIPE-NCC-END-MNT" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "org", + {}, + "text", + "ORG-NCC1-RIPE" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RIPE-NCC-END-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "CLUE1-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Netwerkvereniging Coloclue" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "Frans Duwaerstraat 34\n1318AC Almere\nNetherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31651387718" + ], + [ + "email", + { + "type": "email" + }, + "text", + "ops@coloclue.net" + ], + [ + "email", + { + "type": "email" + }, + "text", + "routers@coloclue.net" + ], + [ + "email", + { + "type": "abuse" + }, + "text", + "abuse@coloclue.net" + ] + ] + ], + "roles": [ + "abuse" + ], + "entities": [ + { + "handle": "BCKR1-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Jasper Backer" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Kanaalstraat 89-BS" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31683708052" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/BCKR1-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "COLOCLUE-MNT", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "coloclue-mnt" + ], + [ + "kind", + {}, + "text", + "individual" + ] + ] + ], + "roles": [ + "registrant" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/COLOCLUE-MNT" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "JVI-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Jurrian van Iersel" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Wandeling 8\n4301 JT Zierikzee\nNetherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31 85 8768785" + ], + [ + "email", + { + "type": "email" + }, + "text", + "ripe@jurrian.vaniersel.net" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/JVI-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "LUJE-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Jelle Luteijn" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "NETHERLANDS" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31" + ], + [ + "email", + { + "type": "email" + }, + "text", + "hostmaster@luje.net" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/LUJE-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "MS44437-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Mark Scholten" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Purmer 60, 8244AT Lelystad" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31(0)642408602" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/MS44437-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "MWTS1-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Menno Wouter Thomas Spaans" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Maasstraat 16\n1442RV Purmerend\nNetherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31 6 24206858" + ], + [ + "email", + { + "type": "email" + }, + "text", + "menno@someones.net" + ] + ] + ], + "roles": [ + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/MWTS1-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "NMR5-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Niels Raijer" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Kruier 1\n1567LA Assendelft\nNetherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31 6 54918205" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/NMR5-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "PDW-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Paul de Weerd" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Frans Duwaerstraat 34\n1318 AC ALMERE\nThe Netherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31651387718" + ], + [ + "email", + { + "type": "email" + }, + "text", + "weerd@weirdnet.nl" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/PDW-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "RAK24-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Rogier Krieger" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "BytePark\nGruttostraat 63\nNL-2665 EL Bleiswijk\nThe Netherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31 15 212 8820" + ], + [ + "email", + { + "type": "email" + }, + "text", + "hostmaster@bytepark.net" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/RAK24-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "TDB189-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Tim de Boer" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Wamberg 26-1\n1083CV\nAmsterdam\nNETHERLANDS" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31640282615" + ] + ] + ], + "roles": [ + "technical" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/TDB189-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + }, + { + "handle": "TIJN-RIPE", + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Tijn Buijs" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Bijsterveld 1\n4902 ZN Oosterhout\nThe Netherlands" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+31613962562" + ], + [ + "email", + { + "type": "email" + }, + "text", + "contact@cybertinus.nl" + ] + ] + ], + "roles": [ + "technical", + "administrative" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/entity/TIJN-RIPE" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "objectClassName": "entity" + } + ], + "objectClassName": "entity" + } + ], + "remarks": [ + { + "description": [ + "Netwerkvereniging Coloclue, Amsterdam, Netherlands", + "-----------------------------------------------------", + "Transit", + "Atom86", + "", + "True", + "Fiberring", + "Fusix Networks", + "Peering", + "AMS-IX Office", + "AMS-IX Route Servers", + "NL-IX Route Servers", + "OTEGLOBE", + "TalkTalk", + "Hurricane Electric", + "InterBox Internet", + "OpenCarrier", + "BIT", + "TNG", + "Opteamax", + "IP-Max SA", + "MaxiTEL", + "MCKAYCOM Ltd", + "Packet Clearing House", + "Liquid Telecom", + "MANDA", + "Colocenter.nl", + "Interconnect Services B.V.", + "OpenPeering", + "Solcon", + "Eurofiber", + "OpenDNS", + "Akamai", + "Previder", + "RIPE NCC RIS Project", + "Netflix", + "PT Comunicacoes S.A.", + "NTT", + "Not Surfnet", + "Breedband Nederland", + "Leaseweb", + "Init7", + "Apple Inc", + "Duocast", + "Iunxi", + "Tuxis Internet Engineering", + "DELTA Fiber Nederland BV", + "NORDUNet", + "Aire Networks del Mediterraneo S.L.U.", + "CESNET z.s.p.o.", + "Internet Systems Consortium, F-Root Operator", + "Telenor", + "T-mobile thuis", + "Emirates Telecommunications Corporation", + "Gelderland Internet Exchange", + "Jaguar Network", + "IP-Only", + "A2B Internet", + "Netnod", + "TransIP", + "Iceland Telecom Ltd.", + "Viatel Ltd", + "IT-Ernity Internet Services B.V.", + "MTS", + "Redraw Internet", + "Amazon", + "GTT", + "BT", + "Core Backbone GmbH", + "Booking.com", + "PCCW Global", + "Job Snijders", + "BGPMUX / PEERING TestBed", + "AS112 Project (Hosted by RIPE NCC at AMS-IX)", + "Claranet Ltd.", + "Microsoft", + "Nextlayer.at", + "Serverius", + "Wikimedia Foundation", + "Hostserver.de", + "Automattic Inc.", + "AFNIC", + "OVH", + "I3D", + "Vodafone Group", + "SOCO Network Solutions GmbH", + "Zayo France", + "Cloudflare", + "Facebook", + "Liberty Global", + "Zayo / Abovenet", + "Deutsche Telekom", + "TeliaSonera International Carrier", + "ColocationIX", + "NFOrce Entertainment B.V.", + "Knipp Medien und Kommunikation GmbH", + "Qonnected B.V.", + "Computerline Group", + "GlobalConnect Group", + "Micron21", + "Sprint", + "Twitch / Justin.tv", + "Global Network Management", + "SURF", + "NovoServe", + "Yahoo", + "PCextreme", + "Belgacom International Carrier Services (aka BICS)", + "Google", + "Zain Group", + "SIG-Telecom", + "Bandwidth Technologies", + "Vivor", + "Tata", + "Tele2 SWIPNet", + "Weservit B.V.", + "Fastly inc.", + "PeakFactory", + "Telecom Italia Sparkle", + "packet.net", + "Telxius", + "Asteroid Route Collector", + "Asteroid MLP Route Server", + "Twitter", + "SPEED-IX route server peers", + "Freifunk Nordwest e.V", + "e-utp.net", + "Belcloud", + "BlackGATE BV", + "T-2 d.o.o.", + "Canadian Internet Registration Authority", + "Dropbox Inc", + "Accenture BV", + "myLoc managed IT AG", + "Redhosting B.V.", + "Chronos", + "Servperso-Systems", + "Stichting Nationale Beheersorganisatie Internet Providers (NBIP)", + "Hetzner Online GmbH", + "Valve Corporation", + "Parknet F.M.B.A.", + "CLOUDITY Network", + "AltusHost B.V.", + "Mythic Beasts Ltd", + "CS Net", + "Cynthia Maja Revstrom", + "Stichting EventInfra", + "TRIX", + "EdgeCast Networks Inc", + "Prolocation B.V.", + "Speakup", + "Seacom", + "SAM Office B.V.", + "OSN Online Service Nuernberg GmbH", + "Tencent Holdings Ltd.", + "Green Mini host BV", + "WD6.net B.V.", + "Meanie", + "ADES / NetLogics", + "Nederlandse Publieke Omroep - NPO", + "Alpine North", + "Greenhost", + "Freedom Internet", + "Unithost Internet BV", + "Nedap NV", + "Serverion B.V.", + "Frys-IX Route Servers", + "IPng Networks GmbH", + "DE-CIX Frankfurt Route Servers", + "France-IX Paris Route Servers", + "SwissIX Route Servers", + "communityrack.org", + "Cato Networks Ltd", + "HostIn", + "equada network GmbH", + "NetActuate Inc.", + "Solutions4xs", + "Kviknet.dk ApS", + "NIKHEF", + "China Telecom", + "IONOS SE", + "Earthlink Telecommunications Equipment Trading & Services DMCC", + "OpenFiber", + "ESEVEN DevOps", + "LOCIX NL Route Servers", + "Sentia Labs", + "Gandi", + "Xyphen IT", + "NetOne NL", + "LUJE.net", + "INTERIX Route Servers", + "Ursin Filli", + "Apple Communications Ltd.", + "Sipartech SAS", + "Nick Bouwhuis", + "CBWS", + "Peering with Coloclue", + "Coloclue is present at the following exchanges:", + "AMS-IX: 80.249.211.161 / 2001:7f8:1::a500:8283:1", + "Asteroid Amsterdam: 185.1.94.15 / 2001:7f8:b6::205b:1", + "DE-CIX Frankfurt: 80.80.197.51 / 2001:7b8::205b:0:1", + "France-IX Paris: 37.49.238.29 / 2001:7b8:54::2:29", + "Frys-IX: 185.1.203.140 / 2001:7b8:10f::205b:140", + "Frys-IX: 185.1.203.187 / 2001:7f8:10f::205b:187", + "NL-IX: 193.239.117.111 / 2001:7f8:13::a500:8283:1", + "NL-IX: 193.239.117.203 / 2001:7f8:13::a500:8283:2", + "Speed-IX: 185.1.222.16 / 2001:7f8:b7::a500:8283:1", + "SwissIX: 91.206.53.24 / 2001:7b8:24::118", + "There are two methods:", + "Modern way:", + "- Send a pull request on github:", + "http://github.com/coloclue/peering", + "- Modify peers.yaml", + "- Wait for Travis' OK signal", + "- Peering establishes automatically!", + "Old-fashioned way:", + "- Send an email to routers@coloclue.net", + "- Please do include your as-set or route-set", + "- Wait for AS8283 engineer to update peers.yaml", + "Abuse issues should be reported to abuse@coloclue.net", + "Abuse related e-mail to any other address(es)", + "will *not* be read", + "Routing Policy", + "- All peering sessions are strictly filtered based on IRR data", + "- RPKI INVALID prefixes are rejected", + "BGP Communities and Traffic Engineering", + "=======================================", + "The following BGP Community scheme draws inspiration from:", + "draft-ietf-grow-large-communities-usage", + "https://tools.ietf.org/html/draft-ietf-grow-large-communities-usage", + "INFORMATIONAL COMMUNITIES:", + "==========================", + "RFC 1997 | Large | Meaning (Informational)", + "----------|-------------|-------------------------------------", + "8283:1 | 8283:0:1 | peering routes", + "8283:2 | 8283:0:2 | downstream routes", + "----------+-------------+-------------------------------------", + "8283:101 | 8283:5:1 | Accepted from peer because of valid IRR entry", + "8283:102 | 8283:5:2 | Accepted from peer because of valid ROA", + "8283:104 | 8283:5:4 | Accepted while RPKI invalid because it is added to our whitelist", + "8283:10 | 8283:6:10 | received from TRUE", + "8283:11 | 8283:6:11 | received from Atom86", + "8283:14 | 8283:6:14 | received from FiberRing", + "8283:15 | 8283:6:15 | received from Fusix", + "- | 8283:8:26 | received via AMS-IX", + "- | 8283:8:64 | received via NL-IX", + "- | 8283:8:1812 | received via Asteroid", + "- | 8283:8:1842 | received via SpeedIX", + "- | 8283:8:3512 | received via Frys-IX", + "- | 8283:8:31 | received via DE-CIX", + "- | 8283:8:359 | received via France-IX", + "- | 8283:8:60 | received via SwissIX", + "- | 8283:8:2601 | received via LocIX Netherlands", + "| Rejection Reasons", + "- | 8283:7:1 | More specifics covering AS8283 space are considered hijacks", + "- | 8283:7:2 | Somewhere in the AS_PATH a Bogon ASN is present (0, 23456, 64496..65534, 4200000000+)", + "- | 8283:7:3 | The prefix is Bogon garbage (rfc1918, rfc4291 etc)", + "- | 8283:7:4 | The prefix is an RPKI Invalid and as such rejected", + "- | 8283:7:5 | The route's prefix length is unacceptable (too small or too large)", + "- | 8283:7:6 | There is no IRR object that covers this route announcement", + "- | 8283:7:7 | Coloclue member is not authorized to announce this route", + "ACTION COMMUNITIES:", + "===================", + "RFC 1997 | Large | Meaning (Action)", + "8283:50 | 8283:1:50 | Set LOCAL_PREF to 50 (default is 100)", + "8283:150 | 8283:1:150 | Set LOCAL_PREF to 150 (default is 100)", + "8283:202 | 8283:2:0 | Prepend 8283 once to all eBGP peers", + "- | 8283:2:nnn | Prepend 8283 once to peer AS nnn", + "8283:203 | 8283:3:0 | Prepend 8283 twice to all eBGP peers", + "- | 8283:3:nnn | Prepend 8283 twice to peer AS nnn", + "8283:204 | 8283:4:0 | Do not export to eBGP peers", + "- | 8283:4:nnn | Do not export to peer AS nnn", + "65535:0 | - | G-SHUT [draft-ietf-grow-bgp-gshut]", + "65535:666 | - | BLACKHOLE [RFC 7999]", + "MEMBERS ONLY:", + "=============", + "----------+------------+-------------------------------------", + "8283:50 | 8283:1:50 | Set LOCAL_PREF to 50 (default is 500)", + "| *** WARNING: default is 100 for other routes, so your prefixes may be become unreachable!", + "8283:450 | 8283:1:450 | Set LOCAL_PREF to 450 (default is 500)", + "8283:550 | 8283:1:550 | Set LOCAL_PREF to 550 (default is 500)", + "8283:301 | 8283:301:0 | Do not export to other Coloclue members", + "8283:302 | 8283:302:0 | Do not export to transit providers", + "8283:303 | 8283:303:0 | Do not export to direct peers", + "Examples:", + "---------", + "8283:2:3320 - prepend 8283 to AS 3320 (path on export will be 8283_8283_you)", + "8283:3:200023 - prepend 8283 to AS 200023 (path on export will be 8283_8283_8283_you)", + "8283:4:198203 - do not announce the route over any BGP sessions with AS 198203", + "(notice how you can 32-bit ASNs? :-)" + ] + } + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "self", + "href": "https://rdap.db.ripe.net/autnum/8283" + }, + { + "value": "http://www.ripe.net/data-tools/support/documentation/terms", + "rel": "copyright", + "href": "http://www.ripe.net/data-tools/support/documentation/terms" + } + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2003-06-23T14:40:34Z" + }, + { + "eventAction": "last changed", + "eventDate": "2023-11-27T23:02:44Z" + } + ], + "rdapConformance": [ + "nro_rdap_profile_asn_flat_0", + "cidr0", + "rdap_level_0", + "nro_rdap_profile_0" + ], + "notices": [ + { + "title": "Filtered", + "description": [ + "This output has been filtered." + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit:" + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "inaccuracy-report", + "href": "https://www.ripe.net/contact-form?topic=ripe_dbm&show_form=true", + "type": "text/html" + } + ] + }, + { + "title": "Source", + "description": [ + "Objects returned came from source", + "RIPE" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the RIPE Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.db.ripe.net/autnum/8283", + "rel": "terms-of-service", + "href": "http://www.ripe.net/db/support/db-terms-conditions.pdf", + "type": "application/pdf" + } + ] + } + ], + "port43": "whois.ripe.net", + "objectClassName": "autnum" } \ No newline at end of file diff --git a/tests/data/rdap/autnum/9269.expected b/tests/data/rdap/autnum/9269.expected index 129a505..54c4bab 100644 --- a/tests/data/rdap/autnum/9269.expected +++ b/tests/data/rdap/autnum/9269.expected @@ -1 +1,10 @@ -{"org_address": "", "org_name": "Hong Kong Broadband Network Ltd.", "emails": ["abuse@hkbn.net", "hostmaster@hkbn.com.hk"], "name": "HKBN-AS-AP"} +{ + "name": "HKBN-AS-AP", + "emails": [ + "abuse@hkbn.net", + "hostmaster@hkbn.com.hk", + "nocsn@hkbn.com.hk" + ], + "org_name": "Hong Kong Broadband Network Ltd, Hong Kong Broadband Network Ltd.", + "org_address": "15/F Trans Asia Centre\n18 Kin Hong Street" +} \ No newline at end of file diff --git a/tests/data/rdap/autnum/9269.input b/tests/data/rdap/autnum/9269.input index 539db38..b9f6408 100644 --- a/tests/data/rdap/autnum/9269.input +++ b/tests/data/rdap/autnum/9269.input @@ -1,70 +1,358 @@ { - "handle" : "AS9269", - "startAutnum" : 9269, - "endAutnum" : 9269, - "name" : "HKBN-AS-AP", - "country" : "HK", - "objectClassName" : "autnum", - "entities" : [ { - "handle" : "IRT-HKBN-HK", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "IRT-HKBN-HK" ], [ "kind", { }, "text", "group" ], [ "email", { - "pref" : "1" - }, "text", "abuse@hkbn.net" ], [ "adr", { - "label" : "15/F Trans Asia Centre\\n18 Kin Hong Street, Kwai Chung\\nN.T." - }, "text", [ "", "", "", "", "", "", "" ] ], [ "email", { }, "text", "hostmaster@hkbn.com.hk" ] ] ], - "roles" : [ "abuse" ], - "objectClassName" : "entity", - "links" : [ { - "value" : "https://rdap.apnic.net/autnum/9269", - "rel" : "self", - "href" : "https://rdap.apnic.net/entity/IRT-HKBN-HK", - "type" : "application/rdap+json" - } ] - }, { - "handle" : "HKBN-HK", - "vcardArray" : [ "vcard", [ [ "version", { }, "text", "4.0" ], [ "fn", { }, "text", "HKBN Hostmaster" ], [ "kind", { }, "text", "individual" ], [ "adr", { - "label" : "15/F Trans Asia Centre\\n18 Kin Hong Street, Kwai Chung\\nN.T." - }, "text", [ "", "", "", "", "", "", "" ] ], [ "tel", { - "type" : "voice" - }, "text", "+852-3999-3888" ], [ "tel", { - "type" : "fax" - }, "text", "+852-8167-7020" ], [ "email", { }, "text", "hostmaster@hkbn.com.hk" ] ] ], - "roles" : [ "technical", "administrative" ], - "objectClassName" : "entity", - "links" : [ { - "value" : "https://rdap.apnic.net/autnum/9269", - "rel" : "self", - "href" : "https://rdap.apnic.net/entity/HKBN-HK", - "type" : "application/rdap+json" - } ] - } ], - "remarks" : [ { - "title" : "description", - "description" : [ "Hong Kong Broadband Network Ltd." ] - } ], - "links" : [ { - "value" : "https://rdap.apnic.net/autnum/9269", - "rel" : "self", - "href" : "https://rdap.apnic.net/autnum/9269", - "type" : "application/rdap+json" - } ], - "events" : [ { - "eventAction" : "last changed", - "eventDate" : "2017-10-16T00:26:12Z" - } ], - "rdapConformance" : [ "rdap_level_0" ], - "notices" : [ { - "title" : "Source", - "description" : [ "Objects returned came from source", "APNIC" ] - }, { - "title" : "Terms and Conditions", - "description" : [ "This is the APNIC WHOIS Database query service. The objects are in RDAP format." ], - "links" : [ { - "value" : "https://rdap.apnic.net/autnum/9269", - "rel" : "terms-of-service", - "href" : "http://www.apnic.net/db/dbcopyright.html", - "type" : "text/html" - } ] - } ], - "port43" : "whois.apnic.net" + "rdapConformance": [ + "history_version_0", + "nro_rdap_profile_0", + "nro_rdap_profile_asn_hierarchical_0", + "cidr0", + "rdap_level_0" + ], + "notices": [ + { + "title": "Source", + "description": [ + "Objects returned came from source", + "APNIC" + ] + }, + { + "title": "Terms and Conditions", + "description": [ + "This is the APNIC WHOIS Database query service. The objects are in RDAP format." + ], + "links": [ + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "terms-of-service", + "href": "http://www.apnic.net/db/dbcopyright.html", + "type": "text/html" + } + ] + }, + { + "title": "Whois Inaccuracy Reporting", + "description": [ + "If you see inaccuracies in the results, please visit: " + ], + "links": [ + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "inaccuracy-report", + "href": "https://www.apnic.net/manage-ip/using-whois/abuse-and-spamming/invalid-contact-form", + "type": "text/html" + } + ] + } + ], + "country": "HK", + "events": [ + { + "eventAction": "registration", + "eventDate": "2008-09-04T06:40:30Z" + }, + { + "eventAction": "last changed", + "eventDate": "2020-07-15T13:09:38Z" + } + ], + "name": "HKBN-AS-AP", + "remarks": [ + { + "description": [ + "Hong Kong Broadband Network Ltd." + ], + "title": "description" + } + ], + "links": [ + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "self", + "href": "https://rdap.apnic.net/autnum/9269", + "type": "application/rdap+json" + }, + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "related", + "href": "https://netox.apnic.net/search/AS9269?utm_source=rdap&utm_medium=result&utm_campaign=rdap_result", + "type": "text/html" + } + ], + "status": [ + "active" + ], + "handle": "AS9269", + "endAutnum": 9269, + "startAutnum": 9269, + "objectClassName": "autnum", + "entities": [ + { + "roles": [ + "abuse" + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2012-05-16T06:32:40Z" + }, + { + "eventAction": "last changed", + "eventDate": "2023-10-27T01:46:39Z" + } + ], + "remarks": [ + { + "description": [ + "abuse@hkbn.net was validated on 2023-09-13", + "hostmaster@hkbn.com.hk was validated on 2023-10-27" + ], + "title": "remarks" + } + ], + "links": [ + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "self", + "href": "https://rdap.apnic.net/entity/IRT-HKBN-HK", + "type": "application/rdap+json" + } + ], + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "IRT-HKBN-HK" + ], + [ + "kind", + {}, + "text", + "group" + ], + [ + "adr", + { + "label": "15/F Trans Asia Centre\n18 Kin Hong Street, Kwai Chung\nN.T." + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "email", + {}, + "text", + "hostmaster@hkbn.com.hk" + ], + [ + "email", + { + "pref": "1" + }, + "text", + "abuse@hkbn.net" + ] + ] + ], + "objectClassName": "entity", + "handle": "IRT-HKBN-HK" + }, + { + "roles": [ + "registrant" + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2017-08-21T12:56:42Z" + }, + { + "eventAction": "last changed", + "eventDate": "2023-09-05T02:14:48Z" + } + ], + "links": [ + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "self", + "href": "https://rdap.apnic.net/entity/ORG-HKBN1-AP", + "type": "application/rdap+json" + } + ], + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "Hong Kong Broadband Network Ltd" + ], + [ + "kind", + {}, + "text", + "org" + ], + [ + "adr", + { + "label": "15/F Trans Asia Centre\n18 Kin Hong Street" + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+852-3999-3888" + ], + [ + "tel", + { + "type": "fax" + }, + "text", + "+852-8167-7020" + ], + [ + "email", + {}, + "text", + "nocsn@hkbn.com.hk" + ] + ] + ], + "objectClassName": "entity", + "handle": "ORG-HKBN1-AP" + }, + { + "roles": [ + "technical", + "administrative" + ], + "events": [ + { + "eventAction": "registration", + "eventDate": "2012-05-23T03:52:23Z" + }, + { + "eventAction": "last changed", + "eventDate": "2021-03-25T09:01:18Z" + } + ], + "links": [ + { + "value": "https://rdap.apnic.net/autnum/9269", + "rel": "self", + "href": "https://rdap.apnic.net/entity/HKBN-HK", + "type": "application/rdap+json" + } + ], + "vcardArray": [ + "vcard", + [ + [ + "version", + {}, + "text", + "4.0" + ], + [ + "fn", + {}, + "text", + "HKBN Hostmaster" + ], + [ + "kind", + {}, + "text", + "individual" + ], + [ + "adr", + { + "label": "Trans Asia Centre\n18 Kin Hong Street, Kwai Chung\nN.T." + }, + "text", + [ + "", + "", + "", + "", + "", + "", + "" + ] + ], + [ + "tel", + { + "type": "voice" + }, + "text", + "+852-3999-3888" + ], + [ + "tel", + { + "type": "fax" + }, + "text", + "+852-8167-7020" + ], + [ + "email", + {}, + "text", + "hostmaster@hkbn.com.hk" + ], + [ + "email", + { + "pref": "1" + }, + "text", + "abuse@hkbn.com.hk" + ] + ] + ], + "objectClassName": "entity", + "handle": "HKBN-HK" + } + ], + "port43": "whois.apnic.net" } \ No newline at end of file