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 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="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> (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="http://www.eurodns.com/">
<result code="1000">
<msg>Command completed successfully</msg>
</result>
</response>
Legend
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 |