Using this command will add the domain to the DNS with the fact that its setting and records are copied from other existing domains.
Parameters
- name = name of existing domain – required
- name_new = name of new domain – required
Return Values
- 1000 = ok
- 2201 = unsupported TLD
- 2202 = invalid, or unsupported name of existing domain
- 2320 = invalid, or unsupported name of new domain
- 2321 = unsupported TLD of new domain name
- 2322 = reached limit of the number of domains in the DNS per user
- 3222 = opening domain failed
- 3223 = access denied
- 3305 = domain is locked for editing
- 3306 = domain is deleted
- 3311 = copying failed
- 3312 = new domain already exists in DNS
Return data
Command does not return any data.
Příklad použití
XML query:
<request>
<user>tester</user>
<auth>ae58a4590c1f5b1ace8edbb0c4fd1cdb1e724dec</auth>
<command>dns-domain-copy</command>
<data>
<name>priklad.cz</name>
<name_new>example.com</name_new>
</data>
</request>
XML response:
<response>
<code>1000</code>
<result>OK</result>
<timestamp>1291193736</timestamp>
<svTRID>1291193736.7881.8254.1</svTRID>
<command>dns-domain-copy</command>
</response>