use Metaregistrar\EPP\ptEppInfoDomainRequest; use Metaregistrar\EPP\eppContactHandle; use Metaregistrar\EPP\eppHost; /* * This script retrieves all information for a specific domain name */ if ($argc <= 1) { echo "Usage: infodomain.php <domainname>\n"; echo "Please enter a domain name retrieve\n\n"; die; } $domainname = $argv[1]; echo "Retrieving info on " . $domainname . "\n"; try { // Please enter your own settings file here under before using this example if ($conn = eppConnection::create('pt.ini', true)) { // Connect to the EPP server if ($conn->login()) { $roid = '12345'; $result = infodomain($conn, $domainname, $roid); $conn->logout(); } } } catch (Metaregistrar\EPP\eppException $e) { echo "ERROR: " . $e->getMessage() . "\n\n"; } /** * @param $conn Metaregistrar\EPP\eppConnection * @param $domainname string * @return string */
<?php require '../autoloader.php'; use Metaregistrar\EPP\eppConnection; use Metaregistrar\EPP\eppDomain; use Metaregistrar\EPP\eppSecdns; use Metaregistrar\EPP\eppDnssecUpdateDomainRequest; use Metaregistrar\EPP\eppException; try { $domainname = 'dnssectest.nl'; // Please enter your own settings file here under before using this example if ($conn = eppConnection::create('')) { $conn->enableDnssec(); if ($conn->login()) { $add = new eppDomain($domainname); $sec = new eppSecdns(); $sec->setKey('256', '8', 'AwEAAbWM8nWQZbDZgJjyq+tLZwPLEXfZZjfvlRcmoAVZHgZJCPn/Ytu/iOsgci+yWgDT28ENzREAoAbKMflFFdhc5DNV27TZxhv8nMo9n2f+cyyRKbQ6oIAvMl7siT6WxrLxEBIMyoyFgDMbqGScn9k19Ppa8fwnpJgv0VUemfxGqHH9'); $add->addSecdns($sec); $update = new eppDnssecUpdateDomainRequest($domainname, $add); if ($response = $conn->request($update)) { /* @var $response Metaregistrar\EPP\eppUpdateDomainResponse */ echo "DNSSEC updated\n"; } $conn->logout(); } } } catch (eppException $e) { echo "ERROR: " . $e->getMessage() . "\n"; }
use Metaregistrar\EPP\eppCheckContactRequest; use Metaregistrar\EPP\eppCheckHostRequest; use Metaregistrar\EPP\ficoraEppCreateContactRequest; use Metaregistrar\EPP\eppCreateDomainRequest; use Metaregistrar\EPP\eppCreateHostRequest; use Metaregistrar\EPP\ficoraEppCheckBalanceRequest; use Metaregistrar\EPP\ficoraEppCheckBalanceResponse; use Metaregistrar\EPP\eppPollRequest; use Metaregistrar\EPP\eppPollResponse; /* * This script checks for the availability of domain names * You can specify multiple domain names to be checked */ $domains = ['ewoutdegraaf.fi']; try { if ($conn = eppConnection::create('settings.ini', false)) { // Connect and login to the EPP server if ($conn->login()) { echo "Checking balance\n"; checkbalance($conn); echo "Checking poll\n"; checkpoll($conn); // Check domain names echo "Checking " . count($domains) . " domain names\n"; checkdomains($conn, $domains); echo "Checking contact\n"; checkcontact($conn, 'C5525'); echo "Checking hosts\n"; checkhosts($conn, ['ns1.metaregistrar.com', 'ns2.metaregistrar.com', 'ns3.metaregistrar.com']); //echo "Creating contact\n"; //$contactid = createcontact($conn, '*****@*****.**','+35.8401231234','Department' ,'Metaregistrar' ,'Zuidelijk Halfrond 1' ,'8201 DD' , 'Gouda', 'NL');