
Transfer of DNS Records



How the extension works
Changing your DNS configuration is often a hassle. If you use an external DNS service and then you decide to use Plesk as a DNS server (primary or secondary), you have to add a bunch of DNS records to Plesk one by one manually. And vice versa, if you use Plesk as a DNS server and then decide to switch to an external DNS service, you face the same monotonous challenge of adding DNS records but to the service.
With the "Transfer of DNS Records" extension, you can now transfer DNS records to and from Plesk with just a few clicks.
The extension can import DNS records from a BIND file you got from the DNS service, verify if the DNS records are correct, and add the DNS records you select to Plesk (overwriting already existing DNS records if necessary). The extension does all of that automatically. You just need to upload the BIND file.
The extension can also export DNS records of the selected domain to a BIND file, which you can later use to automatically import the DNS records to an external DNS service.
Additional information
- When the extension is installed, its features are available to the Plesk administrator and customers.
- The DNS record import can change the default TTL of the domain DNS zone in Plesk to the default TTL in a BIND file.
CLI reference
You can also run the extension via the CLI. See the reference below.
-
plesk ext dns-transfer help
shows the help on the utility usage. -
plesk ext dns-transfer import <domain_ID> <absolute_path_to_file> [-ip] [-y] [-r] [-json]
imports the DNS records from a BIND file.-ip 192.0.2.1
replaces the IPv4 address specified in a BIND file with the IPv4 of the Plesk server.-y
skips the DNS record verification.-r
overwrites the Plesk DNS records of the same type with those in a BIND file.-json
skips the DNS record verification and returns the import result in JSON. -
plesk ext dns-transfer export <domainId> [<filename> | <absolute_path_to_file>]
exports the DNS records from Plesk to a BIND file.
Example: plesk ext dns-transfer import 1 /tmp/zonefile -ip 10.10.10.10 -r