Utilities > Domains and DNS > DNS > Exporting and importing a DNS

13 Exporting and importing a DNS

Exporting DNS records to a text file

  • Go to the DNS details page;
  • select the Edit tab below the DNS name;
  • in the Import / Export section, select EXPORT;
  • the records.txt file containing the configuration for that specific DNS is created.

Importing a text file containing DNS records

  • Go to the DNS details page;
  • select the Edit tab below the DNS name;
  • in the Import / Export section, select IMPORT;
  • select the file you want to upload and confirm the operation.
If the operation is unsuccessful, check that the parameters in the text file you are trying to upload are correct.

Encoding the records.txt file

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 parameters of each record are separated by spaces ][ and tabs <>, and the records are encoded 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<>priority
SPF<>host.domainname<>Text<>TTL
For more information about individual records, see the specific guides.