Developer Center

NsDetails() - Nameserver Information

It is used to fetch available nameserver information of domain name.
public function NsDetails($params=[]){
    $domain     = idn_to_ascii($params["domain"],0,INTL_IDNA_VARIANT_UTS46);

    $details    = $this->api->get_details($domain);
    if(!$details){
        $this->error = $this->api->error;
        return false;
    }

    $returns = [];

    if(isset($details["ns1"])) $returns["ns1"] = $details["ns1"];
    if(isset($details["ns2"])) $returns["ns2"] = $details["ns2"];
    if(isset($details["ns3"])) $returns["ns3"] = $details["ns3"];
    if(isset($details["ns4"])) $returns["ns4"] = $details["ns4"];
    return $returns;
}

Parameters;

  • $params Provides the value of [options] index in the $order variable in the class.

Retrieval Value;

Array
(
    [ns1] => ns1.examplehost.com
    [ns2] => ns2.examplehost.com
    [ns3] => ns3.examplehost.com
    [ns4] => ns4.examplehost.com
)
cost_prices() - Extension Cost Info ModifyDns() - NameServer Update

Do you have any questions?

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