Change DNS
StructOperationResponse domainChangeDNS(string idSession, string domain, string ns1, string ns2, string ns3, string ns4, string ns5)
Replace the DNS servers of the domain (redelegation).
REQUIRED
-
idSession
string
(32)
Session ID.
-
domain
string
(255)
Domain name.
-
ns1
string
(255)
Primary name server.
-
ns2
string
(255)
Secondary name server.
-
ns3
string
(255)
Secondary name server.
-
ns4
string
(255)
Secondary name server.
-
ns5
string
(255)
Secondary name server.
An Object of type StructOperationResponse
- The minimal number of nameservers must match the requirements of the extension.
- A DNS test may be performed prior the registration. See structdomaintldinfo.HasZonecheck
<?php $clientSOAP = new SoapClient("http://URL.wsdl"); try { $idSession = $clientSOAP->sessionOpen("XX000", "xxxxxxxx"); $StructOperationResponse = $clientSOAP->domainChangeDNS($idSession, "netim.com", "ns1.netim.com", "ns2.netim.com", "", "", ""); print_r($StructOperationResponse); } catch(SoapFault $fault) { echo "Exception : " .$fault->getMessage(). "\n"; } if(isset($idSession)) { $clientSOAP->sessionClose($idSession); } ?>
Need an API Client?
Speed up your integration by using our API client for SOAP