Import a zone in the BIND file format

Through the following request you can create a new zone by importing data in the BIND format. The format is defined in RFC 1035 as well as the documentation for BIND.

If you try to import a zone for a domain that already has a zone, the API server will return an error. To force the creation, set the attribute \<zone:replace> to true. The API server will remove existing zones if necessary.

XML Template
<?xml version="1.0" encoding="UTF-8"?>
    <request xmlns:zone="">
            <zone:data><![CDATA[#BIND FILE CONTENTS#]]></zone:data>

<zone:import> (Occurrences: 1)

R #DOMAIN.TLD# The name of the domain that uses the zone
O #REPLACE# Remove existing zones if necessary
R #BIND FILE CONTENTS#  The contents of the file to import (Example)
If the action was successful, the following code will be returned:
<?xml version="1.0" encoding="UTF-8"?>
    <response xmlns="">
        <result code="1000">
            <msg>Command completed successfully</msg>


O The element is optional and does not have to be specified in the request and/or answer
R The element is mandatory and has to specified in the request and/or answer