Code Monkey home page Code Monkey logo

cloudflare-dyndns's Introduction

cloudflare-dyndns

Middleware for updating Cloudflare DNS records through an AVM FRITZ!Box.

Getting started

Create a Cloudflare API token

Create a Cloudflare API token with read permissions for the scope Zone.Zone and edit permissions for the scope Zone.DNS.

Create a Cloudflare custom token

🚀 Option 1: Self-host cloudflare-dyndns

Run on Docker

Start cloudflare-dyndns:

docker run -p 80:80 ghcr.io/l480/cloudflare-dyndns:latest

Run on Kubernetes

Use the Helm Chart to deploy cloudflare-dyndns to Kubernetes or directly pull it from the repositories OCI registry:

helm pull oci://ghcr.io/l480/charts/cloudflare-dyndns --version 0.1.0

☁️ Option 2: Use my free cloud service

If you don't want to host cloudflare-dyndns yourself, feel free to use my cloud service. Just use this Update URL in your FRITZ!Box:

https://dyndns.nicoo.org/?token=<pass>&record=www&zone=example.com&ipv4=<ipaddr>&ipv6=<ip6addr>

Configure your FRITZ!Box

FRITZ!Box Setting Value Description
Update URL https://dyndns.nicoo.org/?token=<pass>&record=www&zone=example.com&ipv4=<ipaddr>&ipv6=<ip6addr> Replace the URL parameter record and zone with your domain name. If required you can omit either the ipv4 or ipv6 URL parameter.
Domain Name www.example.com The FQDN from the URL parameter record and zone.
Username admin You can choose whatever value you want.
Password ●●●●●● The API token you’ve created earlier.

cloudflare-dyndns's People

Contributors

dependabot[bot] avatar kseb avatar l480 avatar linuscde avatar punktphil avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

cloudflare-dyndns's Issues

Change IPV6 prefix only?

Suggestion:

I'm pretty sure the Fritzbox supports also sending the ipv6 prefix. I'm not sure if I will need this yet (no idea if my prefix will change or not), but it would be a cool option to dynamically adjust ipv6 addresses to the new prefix if it does change? that way one could have entries for multiple devices that get adjusted correctly.

Cloud service

Hey, i was using your free cloud service for my fritzbox. it somehow stopped working. is there any issues or is it my place ?

After Running the TTL is changed to Auto

Hello,

at first thank you very much for the great middleware api!

Only one thing:

I created an A-Record with TTL 1min. After updating the record with the Middleware, the TTL ist changed to auto.

But I want the lowest TTL possible.

Can you edit the code, so the original TTL is read from the record and then also be used for the update of the record?

Regards
Gregor

A / AAAA record does not exist error

Problem

I only get a 404 response when I add your settings to my Fritz!Box.
I'm using a Strato domain with cloudflare.
I tried using ipv4 and ipv6, neither worked (ipv4 will probably never work due to my provider)

Settings

  • Strato domain
  • cloudflare setup
  • A record is shown in cloudflare
  • AAAA record is shown in cloudflare
  • DynDNS settings in Fritz!Box as you explained

Screenshots

Cloudflare
image

Strato
image

How to update a NON WWW A-Record for my domain

Hey,
either im very confused, or im very blind, or dumb :)

I switched the Nameservers for my Domain from Strato.de to Cloudfare. Thats why i fell for this script since this would be the perfect fix for my issue right now. But from my perspective, your tool can only MODIFY a www A-Record?

image

https://dyndns.nicoo.org/?token=XXXXXXXXXXXX&record=www&zone=furrkan.de&ipv4=

If i use this update line, it can Update the DNS entry for the WWW Record, but i dont want that. I wanna update the record for furrkan.de. I thought i can do it like this:
https://dyndns.nicoo.org/?token=XXXXXXXXXXXX&record=furrkan.de&zone=furrkan.de&ipv4=
image
But then i get this error.
So either im confused how to update it, or your tool doesnt support it.
Thanks for helping!

Internal Server Error

Hello,

im trying to update my ipv4 and ipv6 adresses for my Domain at cloudflare.
If I paste https://nicoo.org/cloudflare?token=TOKEN&record=gt.wilden&zone=plaum.ovh&ipv4=1.1.1.1&ipv6=1::
in my Browser everything works fine.
If I add this (with placeholders) to my FritzBox i get an Internal Server Error in the FritzBox Log.

Setting in FritzBox:

Update-URL: https://nicoo.org/cloudflare?token=<pass>&record=gt.wilden&zone=plaum.ovh&ipv4=<ipaddr>&ipv6=<ip6addr>
Domainname: gt.wilden.plaum.ovh
Username: admin
Password: My Cloudflare API Token

Is there any error in my config in the FritzBox or anything I can do to find the problem?

Thanks

DynDNS provider Error 0

I tried to write something quite similar but could not get it to work.
While searching I found this repo and tried the cloud solution.

This worked when using Postman but it doesn't work when using my fritz box:
chrome_UG22mYALUN
chrome_WVG78j8hye
The URL used: https://dyndns.nicoo.org/?token=<pass>&zone=swerik.dev&ipv4=<ipaddr>&ipv6=<ip6addr>

This error truly does not help me in any shape or form.
Has anyone had this issue and fixed it in the past?

FRITZ!Box gives weird logs, but DynDNS Update still works!

Hey,
this is not something actually broken, but its annyoing:

image

My FRITZ!Box has lots of logs about DynDNS failing, but its not actually failing.
I have confirmed that the DynDNS Update works, just wondering why i get these logs.
Anyone else?

Image is almost 1 GB

Portainer reports the image size as follows:

ghcr.io/l480/cloudflare-dyndns:latest | 928.1 MB | 2021-08-31 20:45:11

Making this dynamic dns updater the largest image I'm running, far larger than plex, sonarr, radarr, traefik, grafana etc etc.

For 20 lines of code that are only executed every time my ISP changes my IP address.

Possible to use top domain instead of www. ?

I am currently trying to setup the update url through FritzBox.
Kind of unsure what to use for record= when using top domains instead of the predefined www.
Preview the settings used inside of FritzBox:
URL: https://functions.nicoo.org/function/cloudflare-dyndns?token=<pass>&record=****.com&zone=****.com&ipv4=<ipaddr>
Domainname: ****.com
User: admin
Passw: <apitoken>

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.