NETWORKING > DNS > DNS service > Export and import a DNS

1.5 Export and import a DNS

To export and import text files containing record configurations, go to the technical data sheet for the DNS and click on "Modify" under the DNS name.
 
Click on "EXPORT".

A file called "records.txt" will be generated, containing the configured settings for that specific DNS record.
Click on "IMPORT".

A pop up window "Import DNS Records" will appear asking to select the encoded .txt file and confirm by clicking "UPLOAD".

If this operation fails, we recommend checking that the parameters entered in the .txt file which you are trying to upload, are correct.
This is an example of a file generated for a DNS associated with the cloud.it domain
 

A       www.cloud.it    192.168.0.3     86400
AAAA    mail.cloud.it   2001:0db8:85a3:08d3:1319:8a2e:0370:7344 86400
CNAME   ftp.cloud.it    ftp.example.net 86400
TXT     ftp.cloud.it    Located in an Italian server farm       86400
MX      us.cloud.it     mail.us.cloud.it        86400   70
MX      cloud.it        mail.cloud.it   86400   20
NS      cloud.it        dns1.cloud.it   888
SOA     cloud.it        dns1.cloud.it hostmaster.cloud.it 0 28800 7200 604800 86400     86400
SRV     _http._tcp.cloud.it     5 80 www.cloud.it       86400   20
SPF     cloud.it        v=spf1 cloud.it -all   86400


The various parameters of each record are separated by (][) spaces and (<>) spacing tabs and the records are coded as follows:
 
A<>host.domainname<>IPv4address<>TTL
AAAA<>host.domainname<>IPv6address<>TTL
CNAME<>host.domainname<>CNAME<>TTL
TXT<>host.domainname<>TXT<>TTL
MX<>host.domainname<>Host<>TTL<>priority
NS<>domainname<>Host<>TTL
SOA<>domainname<>primaryDNS][Contact][SerialNumber][Refresh][Retry][Expire][Minimum<>TTL
SRV<>host.domainname<>Weight][Port][Target<>priorità
SPF<>host.domainname<>Text<>TTL

For more information on the various Records see the specific guides.