Edit DNS Entries

Example 1: (SOAP:BODY) Edit DNS Entries

<Job>
<details>
<![CDATA[
<Domain name="mysrs.co.nz">

Valid types are (a, cname, ns, mx)

The key attribute to the element DNS is a system generated id for the dns entries. The assigned key values can be extracted from the GetDomainInfo response.

<GetDomainInfo>
...

...

<DNSEntries>
<DNS domain="test.mysrs.co.nz" type="a" data="203.119.4.23" key="1167" source="db"/>
<DNS domain="mx1.mysrs.co.nz" type="a" data="203.119.4.22" key="234" source="db"/>
<DNS domain="i-register.mysrs.co.nz" type="a" data="203.119.4.7" key="230" source="db"/>
<DNS domain="www4.mysrs.co.nz" type="a" data="203.119.4.7" key="226" source="db"/>
<DNS domain="console.mysrs.co.nz" type="a" data="203.119.4.7" key="225" source="db"/>
</DNSEntries>
...

...

</GetDomainInfo>


The transaction is available only to domains using MySRS default nameservers.


<JD type="EditDNS">
<DNS key="297" domain="www.mysrs.co.nz" type="a" data="203.167.64.3"/>
<DNS key="298" domain="www1.mysrs.co.nz" type="a" data="203.167.64.4"/>
...

...

...

</>
</Domain>
]]>
</details>
</Job>






Example 2: (SOAP:BODY) Delete DNS Entries. Set domain, type and data to delete an entry.
The example below deletes the entries referenced by keys 297 and 298.

<Job>
<details>
<![CDATA[
<Domain name="mysrs.co.nz">

<JD type="EditDNS">
<DNS key="297" domain="" type="" data=""/>
<DNS key="298" domain="" type="a" data=""/>
...

...

...

</>
</Domain>
]]>
</details>
</Job>


July 18, 2004


[ Back ]