Developer Center

ModifyDns() - NameServer Update

It is used to update the NS information of the domain name.
public function ModifyDns($params=[],$dns=[]){
    $domain     = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);

    if($dns) foreach($dns AS $i=>$dn) $dns[$i] = idn_to_ascii($dn,0,INTL_IDNA_VARIANT_UTS46);

    $modifyDns  = $this->api->modify_dns($domain,$dns);
    if(!$modifyDns){
        $this->error = $this->api->error;
        return false;
    }

    return true;
}

Parameters;

  • $params Provides the value of [options] index in the $order variable in the class.
  • $dns it provides the output of NS addresses in the form of array, Example: Array([ns1] => ns1.site.com)

Retrieval Value;

Boolean (true or false) should be retrieved.

NsDetails() - Nameserver Information CNSList() - Child Nameserver List

Do you have any questions?

Feel free to contact us
Contact Us
Copyright © 2024. All Rights Reserved.
Join Our Discord Channel
Top