Comments (15)
Same happened to me today. Have you found any workarounds or fixes?
from cloudflare-ddns.
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
from cloudflare-ddns.
I forked the repo and packaged a proposed pr to fix this. Until the pr is merged feel free to use this docker image registry.gitlab.com/kikkia/cloudflare-ddns
its all open source if you want to verify what was changed.
https://gitlab.com/kikkia/cloudflare-ddns
from cloudflare-ddns.
Same :(
from cloudflare-ddns.
Same. Was able to restore records from the audit log thankfully.
from cloudflare-ddns.
Shit, same issue today
🧩 IPv4 not detected
🗑️ Deleted stale record 3f769304159294fa916c0950f45fb34f
🗑️ Deleted stale record 5c8c82a396502f7005671553baf5c981
🗑️ Deleted stale record 07847081a8b7acb596dd44970a50c454
🗑️ Deleted stale record 2041129286049685224070bd98e8c232
🗑️ Deleted stale record 6afee39b8b12bf8657e6e9eefa1f10cb
🗑️ Deleted stale record c96d0c8f99f263d86c9f3c148784786b
from cloudflare-ddns.
Has happened to me too, three times now! I thought I was going mad!
from cloudflare-ddns.
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")
from cloudflare-ddns.
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
from cloudflare-ddns.
registry.gitlab.com/kikkia/cloudflare-ddns
Thank you, using this for now :-)
from cloudflare-ddns.
Just got hit by this, I lost my root domain records. 😢
cloudflare-ddns | 2021-10-29T01:22:03.247134081Z 🧩 IPv4 not detected
cloudflare-ddns | 2021-10-29T01:22:08.121012339Z 🗑️ Deleted stale record 527a13178ebe61eec4e8xxxxxxx
cloudflare-ddns | 2021-10-29T01:22:09.237220819Z 🗑️ Deleted stale record 367cf05cd8f9e3323b2f13xxxxxx
cloudflare-ddns | 2021-10-29T01:22:10.362698135Z 🗑️ Deleted stale record fc9a275ab1fe17f38d8abaxxxxxx
cloudflare-ddns | 2021-10-29T01:22:11.983824424Z 🗑️ Deleted stale record a88c0318557cb36ab81xxxxxx
cloudflare-ddns | 2021-10-29T01:22:16.897925571Z 🗑️ Deleted stale record 1ca9750837f94a18131xxxxxx
@timothymiller this can be pretty dangerous, would appreciate some attention on this 🙏
from cloudflare-ddns.
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?
from cloudflare-ddns.
Ah it's at the top level, I wasn't seeing it in my panic-vision. Thank you so much @anthonydiiorio
from cloudflare-ddns.
Same thing happened to me as well, deleted all a records.
from cloudflare-ddns.
This has been fixed in PR #57
from cloudflare-ddns.
Related Issues (20)
- Email Notification on IP Address Change HOT 2
- Ability to allow or deny A and AAAA records based on subdomain
- Wildcard record
- Could not route to /client/v4/zones/myZone.xxx, perhaps your object identifier is invalid? HOT 1
- Updates just stop?
- Exception error HOT 5
- How often does the Docker container update?
- API error with subdomains of subdomains
- Define better network driver than "host" HOT 1
- [Need help] Error reading config.json (JSON Validation successfull) HOT 3
- Add more log lines
- The public IP is not correct HOT 2
- Running as non-root user fails with "No module named 'requests'" HOT 7
- .
- Update failing after internet loss HOT 1
- Incorrect version check HOT 1
- Add support for IPv6 neighbors
- Inconsistency in Cron Job Command Instruction Between "Official Documentation" and Repo "README"
- Update dynamic IP address in cloudflare tunnel settings HOT 1
- Minimum TTL (30) not accepted by Cloudflare API HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudflare-ddns.