Skip to content

TypeScriptPlayground/fritzbox-dyndns-cloudflare-worker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Link to old project (still works fine). I am currently rewriting this project from vanilla JS to TS. I also want to improve the documentation and functionality.

Fritz!Box DynDNS Cloudflare Worker

Update your Cloudflare DNS records from your Fritz!Box.

Run Unit Tests Run Linter Check Transpiled JavaScript

Why does this project exist?

Many ISPs often only offer a dynamic IP for the home connection or charge a lot of money for a static IP address. In most cases, a static IP is not required, but if you want to offer a service from your own home via your home connection, there is often no way around a static IP. However, there is an alternative to a static IP, and that is DynDNS. Using a DynDNS you can automatically update a name server in the Domain Name System (DNS). This means that if the IP of your home connection changes, the router can notify the name server of this change.

AVM does already provide a build-in DynDNS service for the Fritz!Box, called MyFritz, why not use the build-in service instead? I don't want all my traffic to be routed between multiple diffrent services. I already manage my domains on Cloudflare, so why use another service when I just can manage everthing on Cloudflare.

This project was developed especially for the Fritz!Box by AVM, but the worker can also be used for other routers that support DynDNS.

Worker File

The build worker.js file can be found inside of the worker/ directory.

- Record<Type>
  - type : Type
  - content : string
  - name : string
  - proxied : boolean
  - comment : string
  - ttl : number
{
  "type": "A",
  "content": "000.000.000.000",
  "name": "example.com",
  "proxied": false,
  "comment": "Updated by Fritz!Box DynDNS",
  "ttl": 100
}
https://worker.username.cloudflare.dev/?token=xyz123&zoneId=abc123&record={"type":"A","content":"000.000.000.000","name":"example.com","proxied":false,"comment":"Updated by Fritz!Box DynDNS","ttl":100}

Releases

No releases published

Packages

No packages published