zone:import

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 has already a zone, the API server will return an error. To force the creation, set the attribute <zone:replace> to true. In this case the API server will remove existing zones if necessary.

XML Template
<?xml version="1.0" encoding="UTF-8"?>
<request xmlns:zone="http://www.eurodns.com/zone">
    <zone:import>
        <zone:name>#DOMAIN.TLD#</zone:name>
        <zone:replace>#REPLACE#</zone:replace>
        <zone:data><![CDATA[#BIND FILE CONTENTS#]]></zone:data>
    </zone:import>
</request>

<zone:import> (Occurences: 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="http://www.eurodns.com/">
    <result code="1000">
        <msg>Command completed successfully</msg>
    </result>
</response>
Legend
O The element is optional and may be present or not in the request/response
R The element is mandatory and must be present one or more times in the request/response