Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error 2001: Command syntax error #402

Open
Skiewie opened this issue Dec 5, 2024 · 0 comments
Open

Error 2001: Command syntax error #402

Skiewie opened this issue Dec 5, 2024 · 0 comments

Comments

@Skiewie
Copy link

Skiewie commented Dec 5, 2024

Hi,

We have quite some domains of which we want to change the nameservers to a new hostname.
Unfortunately I'm running into a 2001 syntax error while testing the script with the infodomain.php example.

There is another issue posted years ago with the same error, but that one was closed. Someone mentioned changing the password, but this didn't work for me.

The steps I've done to come this far:

  1. git clone https://github.com/metaregistrar/php-epp-client.git
  2. Created a settings.ini file in the Registries folder named settings.ini
interface=eppConnection # (also tried sidnEppConnection)
hostname=ssl://drs.domain-registry.nl
port=700
userid=x
password=x
logging=true
verifypeer=true
verifypeername=true
allowselfsigned=true
  1. Editted Examples/infodomain.php

From if ($conn = eppConnection::create('')) {
To if ($conn = eppConnection::create('../Registries/settings.ini')) {

Also tried sidnEppConnection.

  1. composer install
  2. php infodomain.php test.nl
Retrieving info on test.nl
ERROR: Error 2001: Command syntax error

==== LOG ====
-----Connection made-----2024-12-05 16:36:08-----
Stream opened to ssl://drs.domain-registry.nl port 700 with protocol TLSv1.3, cipher TLS_AES_256_GCM_SHA384, 256 bits TLSv1.3
-----END-----2024-12-05 16:36:08-----

-----WRITE-----2024-12-05 16:36:08-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <command>
    <login>
      <clID>XXXXXXXXXXXXXXXX</clID>
      <pw>XXXXXXXXXXXXXXXX</pw>
      <options>
        <version>1.0</version>
        <lang>en</lang>
      </options>
      <svcs>
        <objURI>urn:ietf:params:xml:ns:domain-1.0</objURI>
        <objURI>urn:ietf:params:xml:ns:contact-1.0</objURI>
        <objURI>urn:ietf:params:xml:ns:host-1.0</objURI>
      </svcs>
    </login>
    <clTRID>6751c868ad389</clTRID>
  </command>
</epp>

-----END-----2024-12-05 16:36:08-----

-----READ-----2024-12-05 16:36:08-----
<?xml version="1.0" encoding="UTF-8"?>
<epp xmlns="urn:ietf:params:xml:ns:epp-1.0">
  <response>
    <result code="2001">
      <msg>Command syntax error</msg>
    </result>
    <trID>
      <clTRID>6751c868ad389</clTRID>
      <svTRID>SIDN</svTRID>
    </trID>
  </response>
</epp>

-----END-----2024-12-05 16:36:08-----

-----DISCONNECT-----2024-12-05 16:36:08-----
Disconnected
-----END-----2024-12-05 16:36:08-----

Is there maybe something I'm missing or should check? Hopefully someone can help me out, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant