Use a Cloudflare hosted DNS record as a dynamic DNS record
1.4K
This project is NOT related or maintained by Cloudflare.
The software will check the IP address of the given DNS records in Cloudflare and will match it against the current public IP address. The software will update the IP address of the DNS records in Cloudflare through the API when the IP addresses differ from the current public IP address.
Pull the docker image and mount a volume from the host for persistent storage:
docker pull oezie/cfdyndns:latest
docker run -d --name cfdyndns -v /host-data/:/data/ --restart unless-stopped oezie/cfdyndns:latest
The software will add an appsettings.json file in the /data folder. Please update the settings in this file according to your needs.
The appsettings.json consists of multiple sections explained below.
| Setting | Description | Default value |
| Url | The url of the Cloudflare API. | https://api.cloudflare.com/client/v4/ |
| Token | Your Cloudflare API token. Request it via https://dash.cloudflare.com/profile/api-tokens. Please make sure that the token has the DNS edit rights for the zone of your DNS records. | |
| Records | An array of the DNS records that you want to change in case of an IP address change. Only A-records are currently supported! |
| Setting | Description | Default value |
| UrlIpApi | A URL that returns your IP address. You can use any site as long as the URL returns the IP address in plain text or you can host your own by using the IpApi project in this solution. This site should be hosted on a other host than the IP address that you wish to monitor. The default URL is adviced. | https://myip.moes.network/ |
| PollFreq | The frequency in minutes in which the program should check for a changed IP address. | 60 |
The program can notify you in case of an IP address change via Telegram. Leave these settings empty if you don't want to use this feature.
| Setting | Description | Default value |
| ApiToken | Your Telegram bot token. | |
| ChatId | An integer with the Telegram Chat ID where you want to receive your notifications. |
Content type
Image
Digest
sha256:859b47a0e…
Size
81 MB
Last updated
16 days ago
docker pull oezie/cfdyndns