Hi Gerinho,
- Could you please write what version of DO DNS do you use?
- ...and exact steps for reproducing the issue? It could help to investigate the issue.
- Is your account a part of an organization account (
DigitalOcean Teams :: DigitalOcean Product Documentation)?
- Have you tried to create the same domain in the DigitalOcean web-interface? As an example: if it already used by anyone, you will see an error message.
- Could you please check "/var/log/plesk/panel.log" log-file for any errors from the DigitalOcean DNS extension?
Hi AYamshanov,
Thank you for responding!
- Could you please write what version of DO DNS do you use?
The version of the DO DNS extension in Plesk is 1.1.4-43
Also have checked for available updates in the Extensions section of Plesk for updates under the Updates tab, no updates found. Auto-update is active and all extensions are up-to-date.
- Is your account a part of an organization account
No, just an individual account which I signed up for when I started trying out the DO extension in Plesk.
- Have you tried to create the same domain in the DigitalOcean web-interface
Yes, I did try that in two different ways:
Method 1. First I deactivated a domain in the Plesk extension, which automatically removes the domain from DO. The extension now clearly indicates DigitalOcean DNS Zone for that domain is
Disabled. Then I manually added that domain as a new domain in DO, via the DO web panel (Manage > Networking > Add a domain).
Results: DO adds the new domain and only adds 3 NS records to point to ns[1,2,3].digitalocean.com. The records living in Plesk are not being synced. However, when I go back to the extension in Plesk after manually adding the domain in DO, the extensions picks it up and sets the DigitalOcean DNS Zone status back to
Active (without me activating or manually syncing, just by refreshing the page).
Method 2. The other way around; starting with the domain existing in DO and
Active status in the extension. When trying manually adding the domain as a new domain in DO, an error message pops up, stating that the domain already exists. So that's the expected error message you described.
- Could you please check "/var/log/plesk/panel.log" log-file for any errors from the DigitalOcean DNS extension?
Yes, I did find an error - and it's the single one entry found in the log about the DO extension:
[2019-11-27 01:31:34.572] ERR [extension/digitaloceandns] creating dns records failed with the error Operation timed out after 5000 milliseconds with 0 out of -1 bytes received
However, I couldn't find anything regarding this error after looking it up. Also the error seems very generic: 'just' a timeout, but nothing about why it timed out unfortunately. Also, as it seems to be the only entry regarding the extension and the extension
is able to at least deploy & remove the DNS zones from Plesk to DO, I think this error is just a single timeout incident.
- ...and exact steps for reproducing the issue? It could help to investigate the issue.
Of course. Going back 3 days in time when I started working with the extension for the first time:
1. Installed the extensions in Plesks Extensions section and created an account in DO
2. Tried a single domain first, by checking its checkbox and activating it
>> a DNS zone is succesfully deployed in DO and the status in the extenion is set to
Active
3. In Plesk's DNS zone I added some A and TXT records
>> changes are not auto synced to DO
4. I deactivated and (re)activated the same domain in the extension
>> the A and TXT records from previous step now are found in DO
5. After noticing this I suspected the auto sync doesn't work and to be sure of it I repeated steps 1 to 4
>> same results
>> now I'm certain it doesn't auto sync
6. Went to try something different: in the extension I went to DNS Management (2nd tab) and now activated all domains by doing a
Synchronize all zones >> all domains of my server are now newly added to DO and in the extension all domains are set to
Active
7. Added test TXT records in several domains
>> no auto sync to DO, the test TXT records are missing there
8. Did a manual
Synchronize all zones as in step no. 6
>> also no manual sync! records in DO still missing
>> however per domain I got a warning notification in Plesk, which were stating that the DNS zone for the domain is already activated (which at this point was correct, they already were)
9. Repeated step no. 4
>> now the records are found in DO
10. Played around with setting other primary nameservers in the SOA (for the zone in Plesk), maybe with some trial & error with the nameservers I could get it to work
>> couldn't get it to work
The nameservers used in Plesk are [ns1, ns2, ns3].digitalocean.com, with an NS record for each respective ns and with ns1.digitalocean.com set as the primary in the SOA. I believe this is the correct way to set it up.
Until today manually deactivating and reactivating a domain in the Plesk DO extension is the only way with which I can get DNS records copied from Plesk to DO.