-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with newly created records #6
Comments
It's because I save the zone record ID in the cache, so when you delete and recreate the same record, it will have a different record ID in Cloudflare database, so the one in the cache will not exist anymore. As a workaround, you can delete the cache before running, or use the As a fix in code, it should be checked if the cached zone record still exists. |
How can I check if the cached zone record exists? Do I have to check in the cache file? |
It's not really important to check the cache file, it's only for making things faster and not having to hit the Cloudflare API when IP didn't change, but you can delete it any time, and it will set the records, no problem. I never noticed the typo, thanks! 😄 |
Oh, we misunderstood each other, for you, the only thing to do is to delete the cache file and run the script again. For me, it's to catch this error and handle it in code. |
Hey, I was thinking about this, and you are not supposed to change manually and use dyndns at the same time, because that will lead all kinds of conflicts and problems like this. You either should give it exclusive access, or update the records manually. I'm thinking about changing the error message or just a warning about this in the README. What's your use-case? |
No use-case. That was only a test. I had changed manually the record to test a CDN service. Then I've switched back to the original one |
Thanks, I will definitely document this, not sure about the proper fix. I mean, I know how to fix this, but should I? Might be a good precaution to not update manually changed records. |
It seems that records deleted and then recreated with the same name are not working with cloudflare-dyndns:
The text was updated successfully, but these errors were encountered: