2022-11-26 19:24:15 +00:00
|
|
|
# Cloudflare DNS Updater
|
|
|
|
|
|
|
|
|
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
## Using the application
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
The application necessarily requires a valid Cloudflare API Token.
|
|
|
|
Further the application must be located in the same network as the configured zones.
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
| Environment Variable | Required | Usage |
|
|
|
|
|:--------------------:|:--------:|:----------------------------------:|
|
|
|
|
| CF_API_TOKEN | x | Cloudflare API Token |
|
|
|
|
| STATUS_POST_URL | | Post Endpoint for a Uptime Monitor |
|
|
|
|
*Note: Variables can be stored in a .env file*
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
The actual configuration happens in two or more files:
|
|
|
|
`interfaces.toml` contains all IPv6 interfaces available/used by the zone config files.
|
|
|
|
`.toml` files in `zone.d` contain settings for individual zones.
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
Example:
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
*interfaces.toml*
|
|
|
|
```toml
|
|
|
|
[[interface]]
|
|
|
|
alias = "example-interface-1" # this is what a user inputs in the zone.toml
|
|
|
|
address = ":da5e:d3ff:feeb:4346" # static part of the IP, the rest will be dynamically generated using the host
|
2022-11-27 15:42:15 +00:00
|
|
|
```
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
*zone.d/example.org.toml*
|
|
|
|
```toml
|
|
|
|
email = "owner@example.org" # Email of User owning the Zone
|
|
|
|
name = "example.org" # Zone Name
|
|
|
|
id = "0183f167a051f1e432c0d931478638b5" # Zone ID
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
[[entry]]
|
|
|
|
name="example.org" # "@" Symbol is not currently supported
|
|
|
|
type="10" # Options are: "4" (only IPv4/A Record), "6" (only IPv6/AAAA Record) and "10" (both)
|
|
|
|
interface="example-interface-1" # Only required on type values 6 and 10
|
2022-11-27 15:42:15 +00:00
|
|
|
```
|
2022-11-26 19:24:15 +00:00
|
|
|
|
2023-12-25 14:12:00 +00:00
|
|
|
## Debian Repository
|
|
|
|
TODO!
|