Skip to content

Thaumatized/ddns-client

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ddns-client

This is my custom dynamic domain name service (ddns) client. This only works with cloudflare currently, as it is the dns provider I am using. It shouldn't be too hard to add support for other providers.

The project is also currently only targeting debian, as it is the only operating system relevant to my use case. It shouldn't be too hard to add support for other operating systems, as this is a relatively simple program. Finding the current ipv6 address is the only thing that might be a bit tricky.

Compiling

use gcc ddns.c -o ddns to compile.

Config

To get started with config.ini rename config.example.ini to config.ini and change the values to suit you. Booleans are represented as 1 and 0.

Initialization configuration

At the top of the file there should be Initialization configuration. The fields are:

token Cloud flare api token.
v4 Wether ipv4 is enabled. Useful in networks without ipv4.
v6 Wether ipv6 is enabled. Useful in networks without ipv6.
interval How often to check if ip has changed in seconds.

Records configuration

After that configuration for the records. The fields are:
zone The cloudflare hosting zone.
name The name of the record.
ipv4 The id of the record, if the id is ipv4
ipv6 The id of the record, if the id is ipv6

It is extremely important that both zone and name have been defined before ipv4 or ipv6. The records use the last defined zone and name.

About

Cloudflare DDNS client made with c

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages