No description
Find a file
2022-04-09 13:21:58 -07:00
doplesk_dns_sync whitelist allowed record types 2022-04-09 13:21:58 -07:00
LICENSE v.1.0.0 2022-04-09 17:59:57 +00:00
README.md Update README.md 2022-04-09 11:02:15 -07:00
requirements.txt v.1.0.0 2022-04-09 17:59:57 +00:00

Synchronize Plesk DNS Records with DigitalOcean

In light of #EXTPLESK-3432, the following will properly synchronize all DNS records with DigitalOcean, deleting any garbled records.

Usage

To install required packages:

pip3 install -r requirements.txt

Create an .env file with the following:

DO_API_KEY=<DIGITALOCEAN_API_KEY>
DO_TTL=<DNS_TTL_IN_SECONDS>

To synchronize records

python3 doplesk_dns_sync/main.py [-h] [-d DOMAIN] command

Synchronize domain DNS records in Plesk with DigitalOcean

positional arguments:
  command     full_sync or single_sync

optional arguments:
  -h, --help  show this help message and exit
  -d DOMAIN   domain to synchronize if single_sync

Note: If a domain does not have a DNS zone in Plesk, an empty zone will be created in DigitalOcean