Manage DNS Entries

1.) Get DNS Entries

Call GetDomainInfo for the list of dns entries.

<GetDomaininfoResponse>

... <DNSEntries>
<DNS domain="mail.mydomain.com.ph" type="a" data="111.111.1.254" key="200276"/>
<DNS domain="mail2.mydomain.com.ph" type="a" data="111.111.1.253" key="200275"/>
</DNSEntries>
... </GetDomaininfoResponse>

2.) Add DNS Entries

SAMPLE XML INPUT

<?xml version="1.0" standalone="no"?>
<SOAP:Envelope SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/"><SOAP:Header>
<T:Tran xmlns:T="http://dotph.com">
<T:ID></T:ID>
<T:UserID>testpartner</T:UserID>
<T:Password>testpartner</T:Password>
<T:Type>Execute</T:Type>
</T:Tran>
</SOAP:Header>
<SOAP:Body>
<Job>
<details>
<![CDATA[
<Domain name="mydomain.com.ph">

Valid types are a, mx, cname, and ns.


<JD type="AddDNS">
<DNS domain="mydomain.com.ph" type="a" data="111.111.1.138" />
</JD>
</Domain>
]]>
</details>
</Job>
</SOAP:Body>
</SOAP:Envelope>

3.) Edit DNS

SAMPLE XML INPUT

<?xml version="1.0" standalone="no"?>
<SOAP:Envelope SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
<T:Tran xmlns:T="http://dotph.com">
<T:ID></T:ID>
<T:UserID>testpartner</T:UserID>
<T:Password>testpartner</T:Password>
<T:Type>Execute</T:Type>
</T:Tran>
</SOAP:Header>
<SOAP:Body>
<Job><details><![CDATA[
<Domain name="mydomain.com.ph">

The key is the unique identifier assigned to a dns entry. Use GetDomainInfo (See item 1) to get the dns keys.
Valid types are a, mx, cname, and ns

<JD type="EditDNS">
<DNS domain="mail.mydomain.com.ph" type="a" data="111.111.1.255" key="200276"/>
</JD>
</Domain>
]]>
</details>
</Job>
</SOAP:Body>
</SOAP:Envelope>

4.) Delete DNS Entries

SAMPLE XML INPUT

<?xml version="1.0" standalone="no"?>
<SOAP:Envelope SOAP:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
<SOAP:Header>
<T:Tran xmlns:T="http://dotph.com">
<T:ID></T:ID>
<T:UserID>testpartner</T:UserID>
<T:Password>testpartner</T:Password>
<T:Type>Execute</T:Type>
</T:Tran>
</SOAP:Header>
<SOAP:Body>
<Job><details><![CDATA[
<Domain name="mydomain.com.ph">

The key is the unique identifier assigned to a dns entry. Use GetDomainInfo (See item 1) to get the dns keys.
To delete an entry, set domain, type, data attributes to empty.

<JD type="EditDNS">
<DNS domain="" type="" data="" key="200276"/>
</JD>
</Domain>
]]>
</details>
</Job>
</SOAP:Body>
</SOAP:Envelope>


August 18, 2003


[ Back ]