Om domeinnamen te catchen heb ik een developer ingehuurd om API's van registrars te koppelen. Ook ben ik mijn eigen registrar begonnen. Het lukt de developer echter niet om SIDN te koppelen. We krijgen geen reactie bij de HELLO van SIDN. We komen er simpelweg niet uit.
We gebruiken Node.js.
Zou je me hiermee kunnen helpen?
Wanneer we dit doen via CURL krijgen we geen response:
var epp_hello = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+
'<epp xmlns="urn:ietfarams:xml:ns:epp-1.0">'+
' <hello/>'+
'</epp>';
var xml = bigEndian(epp_hello)+"";
curl.setOpt(Curl.option.URL, "testdrs.domain-registry.nl");
curl.setOpt(Curl.option.PORT, 700);
curl.setOpt(Curl.option.POST, 1);
curl.setOpt(Curl.option.HEADER, true);
curl.setOpt(Curl.option.POSTFIELDS, xml);
curl.setOpt(Curl.option.HTTPHEADER , ['Content-type: text/xml']);
curl.setOpt(Curl.option.TIMEOUT , 180);
curl.setOpt(Curl.option.SSL_VERIFYPEER, false);
curl.setOpt(Curl.option.SSL_VERIFYHOST, false);
curl.perform();
en
var epp_hello = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+
'<epp xmlns="urn:ietfarams:xml:ns:epp-1.0"><hello/></epp>';
console.log(epp_hello);
var xml = bigEndian(epp_hello);
var client = new net.Socket();
client.connect(7000, sidn_endpoint_prod, function(xxml) {
var ddd = new Date();
console.log('Connected ' + ddd.toUTCString(),xxml);
client.write(xxml);
}.bind(null,xml));
client.on('data', function(data) {
console.log('Received: ' + data);
client.destroy();
});
client.on('close', function() {
console.log('Connection closed');
});
Momenteel hebben we ook een openstaand ticket dat maar niet beantwoord word. Bij het bellen word steeds verwezen naar de handleiding. Kortom: ik verwacht dat we weinig steun hebben aan SIDN. Dit is het ticket:
**Openstaand ticket bij SIDN:**
Dear Support,
After discussions on Stack Overflow yesterday I have got several more manuals, but luckily also good advice to use TCP instead of HTTP to connect your EPP server.
That is a bit unusual to send XML over TCP, but I have tried with the following code (Node.js):
var epp_hello = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+
'<epp xmlns="urn:ietfarams:xml:ns:epp-1.0"><hello/></epp>';
var xml = bigEndian(epp_hello);
var ddd = new Date();
var client = new net.Socket();
client.connect(700, "drs.domain-registry.nl", function(xxml) {
console.log('Connected ' + ddd.toUTCString(),xxml);
client.write(xxml);
}.bind(null,xml));
client.on('data', function(data) {
console.log('Received: ' + data);
client.destroy();
});
client.on('close', function() {
console.log('Connection closed');
});
The result is pretty much the same - I am not receiving any data response, and server closes connection in a second.
My IP is: 80.249.83.185
See time in console output:
Connected Thu, 23 Feb 2017 01:55:48 GMT <Buffer 00 00 00 74 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 46 2d 38 22 20 73 74 61 6e 64 61 6c 6f 6e ... >
Connection closed
Connected Thu, 23 Feb 2017 01:55:52 GMT <Buffer 00 00 00 74 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 46 2d 38 22 20 73 74 61 6e 64 61 6c 6f 6e ... >
Connection closed
Connected Thu, 23 Feb 2017 01:55:56 GMT <Buffer 00 00 00 74 3c 3f 78 6d 6c 20 76 65 72 73 69 6f 6e 3d 22 31 2e 30 22 20 65 6e 63 6f 64 69 6e 67 3d 22 55 54 46 2d 38 22 20 73 74 61 6e 64 61 6c 6f 6e ... >
Connection closed
**On Wed, Feb 22, 2017 at 12:31 PM:**
Dear Support,
I have read the manual, but thanks anyway.
I believe my question was not about manual, but about the issue that server is not responding.
XML request is created according to the Manual (I double checked the pages you referenced), there are 4 bytes big endian, and I believe I set CURL properties correct. Below is the code, it is very simple - XML, then big endians, then CURL properties
var epp_hello = '<?xml version="1.0" encoding="UTF-8" standalone="no"?>'+
'<epp xmlns="urn:ietfarams:xml:ns:epp-1.0">'+
' <hello/>'+
'</epp>';
var xml = bigEndian(epp_hello)+"";
curl.setOpt(Curl.option.URL, "testdrs.domain-registry.nl");
curl.setOpt(Curl.option.PORT, 700);
curl.setOpt(Curl.option.POST, 1);
curl.setOpt(Curl.option.HEADER, true);
curl.setOpt(Curl.option.POSTFIELDS, xml);
curl.setOpt(Curl.option.HTTPHEADER , ['Content-type: text/xml']);
curl.setOpt(Curl.option.TIMEOUT , 180);
curl.setOpt(Curl.option.SSL_VERIFYPEER, false);
curl.setOpt(Curl.option.SSL_VERIFYHOST, false);
curl.perform();
Would you please explain why server returns no header, no data?
**On Wed, Feb 22, 2017 at 12:19 PM, Support <Support@sidn.nl> wrote:**
Dear Eugene, See the manual: https://registrars.sidn.nl/downloads/system-information/DRS_Handleiding_EPP_EN_v2.8.pdf. Page 26, and for an Example, see Hello?greeting on page 51. Trusting to have informed you sufficiently.