DeleteCNS() - Delete Child Nameserver
It is used to delete the child nameserver address of domain name, if not supported an error message appears.
public function DeleteCNS($params=[],$ns='',$ip=''){
$domain = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);
$ns = idn_to_ascii($ns,0,INTL_IDNA_VARIANT_UTS46);
$delete = $this->api->delete_child_nameserver($domain,$ns,$ip);
if(!$delete){
$this->error = $this->api->error;
return false;
}
return true;
}
Parameters;
- $params Provides the value of [options] index in the $order variable in the class.
- $ns Nameserver name, example: example.com
- $rope Nameserver IP address, example: 192.168.1.1
Retrieval Value;
Boolean (true or false) should be displayed.