loading...

search($search); if ($test && $test->getErrorCode() === null) { //var_dump ($test); echo nl2br('class name: ' . $test->getClassname() . PHP_EOL); echo nl2br('handle: ' . $test->getHandle() . PHP_EOL); echo nl2br('LDH (letters, digits, hyphens) name: ' . $test->getLDHName() . PHP_EOL); if($test->getClassname() === 'ip network') { //fie echo nl2br("name: ".$test->getName().PHP_EOL); echo nl2br("type: ".$test->getType().PHP_EOL); echo nl2br("port 43 service: ".$test->getPort43().PHP_EOL); } if (is_array($test->getNameservers())) { echo nl2br("\nNameservers:\n"); foreach ($test->getNameservers() as $nameserver) { $nameserver->dumpContents(); } echo nl2br(PHP_EOL); } if (is_array($test->getSecureDNS())) { echo nl2br("DNSSEC:\n"); foreach ($test->getSecureDNS() as $dnssec) { $dnssec->dumpContents(); } echo nl2br(PHP_EOL); } echo nl2br("rdap conformance: \n"); foreach ($test->getConformance() as $conformance) { $conformance->dumpContents(); } echo nl2br(PHP_EOL); if (is_array($test->getEntities())) { echo nl2br("Entities found:\n"); foreach ($test->getEntities() as $entity) { $entity->dumpContents(); echo nl2br(PHP_EOL); } } if (is_array($test->getLinks())) { echo nl2br("Links:\n"); foreach ($test->getLinks() as $link) { $link->dumpContents(); } echo nl2br(PHP_EOL); } if (is_array($test->getNotices())) { echo nl2br("Notices:\n"); foreach ($test->getNotices() as $notice) { $notice->dumpContents(); } echo nl2br(PHP_EOL); } if (is_array($test->getRemarks())) { echo nl2br("Remarks:\n"); foreach ($test->getRemarks() as $remark) { $remark->dumpContents(); } echo nl2br(PHP_EOL); } if (is_array($test->getStatus())) { echo nl2br("Statuses:\n"); foreach ($test->getStatus() as $status) { $status->dumpContents(); } echo nl2br(PHP_EOL); } if (is_array($test->getEvents())) { echo nl2br("Events:\n"); foreach ($test->getEvents() as $event) { $event->dumpContents(); } echo nl2br(PHP_EOL); } } else { $title = ''; if ($test) { $title = $test->getTitle(); } echo nl2br("$search was not found on any RDAP service. $title\n"); } } catch (RdapException $e) { echo nl2br('ERROR: ' . $e->getMessage() . PHP_EOL); }