Got to create a domain through the sidn.nl API, before that broke through the oak technical support - HELLO, LOGIN and DOMAIN CHECK are already working, so I have a session and everything is correct there.

Returns the Command syntax error to this XML:

<?xml version="1.0" encoding="UTF-8" standalone="no"?> <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command><create> <domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> <domain:name>5gmobiel.nl</domain:name><domain:period unit="y">1</domain:period><domain:ns> <domain:hostObj>ns1.sidn.nl</domain:hostObj></domain:ns> <domain:ns><domain:hostObj>ns2.sidn.nl</domain:hostObj></domain:ns> <domain:registrant>FLO015428-AFGLI</domain:registrant> <domain:contact type="admin">FLO015428-AFGLI</domain:contact> <domain:contact type="tech">FLO015428-AFGLI</domain:contact> <domain:authInfo><domain:pw></domain:pw></domain:authInfo> </domain:create></create> <extension> <secDNS:create xmlns:secDNS="urn:ietf:params:xml:ns:secDNS-1.1"></secDNS:create></extension> <clTRID>AFREG-12345</clTRID> </command></epp> 

Here is the result:

 <response><result code="2001"><msg>Command syntax error</msg></result><trID><clTRID>AFREG-12345</clTRID><svTRID>SIDN</svTRID></trID></response> 

XML checked https://validator.w3.org/check

  • Well, in RFC5731, there is one <domain:ns> block within which there are N hostObj records, and you have each host inside a separate NS block. I don’t know if this is critical, but this is the only difference from RFC - Mike
  • @Mike, thanks for the quick response! I tried to change how you say - the result is the same. - Eugene Bartosh
  • By the way, I threw out the section <secDNS: keyData> - I have no data to ask something there. Maybe this is bad? Under the scheme, this section is optional - Eugene Bartosh

1 answer 1

This XML works:

 <epp xmlns="urn:ietf:params:xml:ns:epp-1.0"> <command> <create> <domain:create xmlns:domain="urn:ietf:params:xml:ns:domain-1.0"> <domain:name>testtest.nl</domain:name> <domain:period unit="m">12</domain:period> <domain:ns> <domain:hostObj>ns1.yourdomain.com</domain:hostObj> <domain:hostObj>ns2.yourdomain.com</domain:hostObj> </domain:ns> <domain:registrant>TES093515-X1584</domain:registrant> <domain:contact type="admin">TES093515-X1584</domain:contact> <domain:contact type="tech">TES093515-X1584</domain:contact> <domain:contact type="billing">TES093515-X1584</domain:contact> <domain:authInfo> <domain:pw>qcbJsi68k-;P04QxVTKsU</domain:pw> </domain:authInfo> </domain:create> </create> <clTRID>1477398822-5wsm4XbVrt</clTRID> </command> </epp> 

If someone will ever work with sidn.nl - you should only rely on the community, because the manuals are irrelevant and there is no technical support (it hurts more).