Cloudflare DNS updater updates specified dns records for specified zones effortlessly and automatically. It was originally created to help me hosting my services under dynamic public IP address. Feel free to fork and reuse the code.
You can compile the updater from source or download the binary. To compile the program by yourself, you need to have the rustc and cargo installed.
Create your config.json
that matches the example
{
"UpdateThreshold": 120,
"Keys": [
{
"AuthKey": "nice key bro",
"Zones": [
{
"ZoneId": "dfhmordntv8t4vb8snittvbies7nct7s47v",
"ARecords": ["test2.domain.moe", "test.domain.moe", "tast.domain.moe"],
"AaaaRecords": ["test2.domain.moe", "test.domain.moe", "tast.domain.moe"]
}
]
},
{
"AuthKey": "another pog key",
"Zones": [
{
"ZoneId": "esyigod5tihdvtudn5gitvnecrasdadg",
"ARecords": ["error.bababooey.com", "backend.bababooey.com", "bababooey.com"],
"AaaaRecords": ["error.bababooey.com"]
}
]
}
]
}
UpdateThreshold
: Interval in seconds how often to check current IP and update the records if they don't match the IPAuthKey
: Your private key to authenticate into CloudflareZoneId
: ID of the zone to be editedARecords
: List of A-Records to be updated inside the zone, IPv4AaaaRecords
: List of AAAA-Records to be updated inside the zone, IPv6
You can add more different keys and zones to those keys, as well as A and AAAA records to your needs, as long as your config follows the same structure
You have to generate your authentication key in cloudflare with necessary permissions to view and edit the specified zones and their dns records, detailed instruction can be found here
None yet, you tell me