Hello, the API does not add the DNS domain to me via v-add-dns-domain, I am logged in with the administrator user and password.
This is what my script looks like
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, 'https://' . $hst_hostname . ':' . $hst_port . '/api/');
curl_setopt($curl, CURLOPT_RETURNTRANSFER,true);
curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, http_build_query(array(
'user' => 'admin',
'password' => 'Here is the administrator password',
'returncode' => 'yes',
'cmd' => 'v-add-dns-domain',
'arg1' => $user_host,
'arg2' => $domens,
'ip' => $ip,
'ns1' =>$ns1,
'ns2' =>$ns2,
'ns3' =>$ns3,
'ns4' =>$ns4,
'ns5' =>$ns5,
'ns6' =>$ns6,
'ns7' =>$ns7,
'ns8' =>$ns8,
'restart' =>'yes',
'dnssec' =>'no'
)));
$answer = curl_exec($curl);
How I checked var_dump(); gets something like this
string(1) "1"
I even provided my DNS names that we use on domains, it adds the public IP address of the server, but still nothing is added, am I doing something wrong?