-
-
Notifications
You must be signed in to change notification settings - Fork 289
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
all DNS records got deleted when IPv4 not detected #60
Comments
Same happened to me today. Have you found any workarounds or fixes? |
Same :( |
Same. Was able to restore records from the audit log thankfully. |
I forked the repo and packaged a proposed pr to fix this. Until the pr is merged feel free to use this docker image |
Shit, same issue today
|
Has happened to me too, three times now! I thought I was going mad! |
A quick fix:Consider deleting the lines 46 and 57: cloudflare-ddns/cloudflare-ddns.py Line 46 in 458559d
cloudflare-ddns/cloudflare-ddns.py Line 57 in 458559d
if ipv4_enabled:
try:
a = requests.get("https://1.1.1.1/cdn-cgi/trace").text.split("\n")
a.pop()
a = dict(s.split("=") for s in a)["ip"]
except Exception:
global shown_ipv4_warning
if not shown_ipv4_warning:
shown_ipv4_warning = True
print("🧩 IPv4 not detected")
- deleteEntries("A")
if ipv6_enabled:
try:
aaaa = requests.get("https://[2606:4700:4700::1111]/cdn-cgi/trace").text.split("\n")
aaaa.pop()
aaaa = dict(s.split("=") for s in aaaa)["ip"]
except Exception:
global shown_ipv6_warning
if not shown_ipv6_warning:
shown_ipv6_warning = True
print("🧩 IPv6 not detected")
- deleteEntries("AAAA") |
Same here. Thankfully my monitor kicked in and alerted me - it deletes the A record for my root domain, not my subdomain! Audit log of Cloudflare shows it was the API |
Thank you, using this for now :-) |
Just got hit by this, I lost my root domain records. 😢
@timothymiller this can be pretty dangerous, would appreciate some attention on this 🙏 |
Any ideas where I can see what was deleted and restore it? I don't see any audit logs option in my Cloudflare DNS dashboard. Am I SoL? |
https://dash.cloudflare.com/ click Audit Log in the navigation |
Ah it's at the top level, I wasn't seeing it in my panic-vision. Thank you so much @anthonydiiorio |
Same thing happened to me as well, deleted all a records. |
This has been fixed in PR #57 |
Describe the bug
Hi there, I had facing a problem where DDNS accidentally (randomly ) deleted all my DNS records on my site.
This happened three times on three different machines that installs ddns scripts.
I set up the config as in Doc:
To Reproduce
Crontab calling start-sync.sh every 4 mins
Expected behavior
should only update subdomain's ip address
Screenshots
the log output from the script:
it clear shows when IPv4 not detected, the program deleted all sub-domain dns record of my site.
here is the log in clouldflare:
Desktop (please complete the following information):
Smartphone (please complete the following information):
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: