Sign inSign up

oezie/cfdyndns

By oezie

•Updated 16 days ago

Use a Cloudflare hosted DNS record as a dynamic DNS record

Image
Networking
0

1.4K

oezie/cfdyndns repository overview

⁠Cloudflare Dynamic DNS

This project is NOT related or maintained by Cloudflare.

Static Badge Static Badge Static Badge

⁠Description

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.

⁠Installation

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.

⁠Configuration

The appsettings.json consists of multiple sections explained below.

⁠Cloudflare
SettingDescriptionDefault value
UrlThe url of the Cloudflare API.https://api.cloudflare.com/client/v4/
TokenYour 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.
RecordsAn array of the DNS records that you want to change in case of an IP address change. Only A-records are currently supported!
⁠IP API
SettingDescriptionDefault value
UrlIpApiA 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/⁠
PollFreqThe frequency in minutes in which the program should check for a changed IP address.60
⁠Telegram (optional)

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.

SettingDescriptionDefault value
ApiTokenYour Telegram bot token.
ChatIdAn integer with the Telegram Chat ID where you want to receive your notifications.

Tag summary

Content type

Image

Digest

sha256:859b47a0e…

Size

81 MB

Last updated

16 days ago

docker pull oezie/cfdyndns