[GH-ISSUE #1] Plesk script: Functionality to consider #2

Open
opened 2026-02-25 21:32:22 +03:00 by kerem · 1 comment
Owner

Originally created by @zwankie on GitHub (Jul 20, 2019).
Original GitHub issue: https://github.com/ClouDNS/cloudns-api-bulk-updates/issues/1

Hi,

Thanks this script works but there are situations to consider:

  • On a busy server someone can register domain1.com and the php script copies it to cloudns perfectly as slave zone.
  • Then some time later the domain might be transferred and then deleted from the Plesk server but the zone still stays in the /tmp file
  • Then again some time later the client might transfer the domain back, but this time the php script sees the zone in the /tmp and does nothing.
    The /tmp file option is good to prevent duplicates but it is not good for transfers out and transfers back in.
Originally created by @zwankie on GitHub (Jul 20, 2019). Original GitHub issue: https://github.com/ClouDNS/cloudns-api-bulk-updates/issues/1 Hi, Thanks this script works but there are situations to consider: - On a busy server someone can register domain1.com and the php script copies it to cloudns perfectly as slave zone. - Then some time later the domain might be transferred and then deleted from the Plesk server but the zone still stays in the /tmp file - Then again some time later the client might transfer the domain back, but this time the php script sees the zone in the /tmp and does nothing. The /tmp file option is good to prevent duplicates but it is not good for transfers out and transfers back in.
Author
Owner

@ahmdsmir commented on GitHub (Jan 22, 2022):

Hello @zwankie

You can do this with a bit of scripting and Zone Groups. You can filter DNS Zones by Group-id and use the example from the pgsql-zone-delete for PowerDNS to achieve the same with Bind on Plesk and/or cPanel.

I am currently working on scripts and intend to contribute them to the repository here on GitHub if the ClouDNS staff allow me :-) Hopefully you and others will find them helpful.

<!-- gh-comment-id:1019177281 --> @ahmdsmir commented on GitHub (Jan 22, 2022): Hello @zwankie You can do this with a bit of scripting and Zone Groups. You can filter DNS Zones by Group-id and use the example from the pgsql-zone-delete for PowerDNS to achieve the same with Bind on Plesk and/or cPanel. I am currently working on scripts and intend to contribute them to the repository here on GitHub if the ClouDNS staff allow me :-) Hopefully you and others will find them helpful.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cloudns-api-bulk-updates#2
No description provided.