mirror of
https://github.com/qdm12/ddns-updater.git
synced 2026-07-22 05:42:11 -04:00
Bug: Unable to create DNS record - Porkbun API #319
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @oolmfoo on GitHub (Oct 19, 2023).
Is this urgent: Yes
DNS provider(s) you use: Porkbun
Program version:
Running version latest built on 2023-10-14T09:56:50.040Z (commit e635b19)What are you using to run the container: docker run
Extra information (optional)
Logs:
Configuration file (remove your credentials!):
Host OS: Dietpi (Debian)
@everydaycombat commented on GitHub (Oct 21, 2023):
Same thing with Porkbun for me today but going to try some things.
@everydaycombat commented on GitHub (Oct 21, 2023):
Alright, I figured this out and it's more on Porkbun's side with the default CNAME and ALIAS records they add for a new domain and how an A record can't be added for the same host. When I tried to add an A record in the web UI it gives this error:
ERROR: Could not add DNS record: A CNAME record with that host already exists.This is what their API should say instead of
Create error: We were unable to create the DNS record.You can leave the CNAME record but you have to delete the ALIAS record and then there's no problem for ddns-updater to create the A record for you. Hopefully this helps.
The log looked like this for me (with my annotation you'll see):
@everydaycombat commented on GitHub (Oct 21, 2023):
Porkbun's own API docs say
The API functionality documented on this page is currently in development. Although certain functionality may be documented it may not neccessarily exist or behave as expected.So maybe this was working when the Porkbun provider was added in 2021, who knows. I don't think there's much to do in the code unless others think an ALIAS removal should happen before an A record is added.
Tagging @fredericrous and @qdm12 since I figured you'd like to see this
@oolmfoo commented on GitHub (Oct 25, 2023):
Following @everydaycombat suggestion, it works after I delete the ALIAS record on Porkbun website.
@qdm12 commented on GitHub (Jan 18, 2024):
Done in
869b010853🎉Now if the A/AAAA record does not exist, and there is any ALIAS record for the host.domain, it is first removed then the A/AAAA record is created. This is mentioned in the docs/porkbun.md page, and should not affect existing setups since their records most likely already exist.