Jump to content

Custom Registrar Dev Kit Question?

Recommended Posts


I am trying to create a ustom registrar module for my registrar. I have a console application which outputs raw text for actions like:

/opt/apibin GetNameservers example.com
ns1.ni.net.tr ns2.ni.net.tr


I have tried to implement this command line tool to customregistrar dev kit template like this.


function custom_GetNameservers($params) {
$username = $params["Username"];
$password = $params["Password"];
$testmode = $params["TestMode"];
$tld = $params["tld"];
$sld = $params["sld"];

# Put your code to get the nameservers here and return the values below
$cmd = '/opt/apibin GetNameservers '.$params["domain"];
$output = system($cmd);
$out = explode(" ", $output);

$values["ns1"] = $out[0];
$values["ns2"] = $out[1];
       $values["ns3"] = $out[2];
       $values["ns4"] = $out[3];
# If error, return the error message in the value below
$values["error"] = $output;
return $values;


But when I call the page , it stucks at getnameservers action. Can you check the code for me please ?

Thanks in advance.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated