bwolf / gandi-dns-update

A DNS updater for Gandi.net.
Apache License 2.0
0 stars 0 forks source link

Support for updating the main A record for a zone #1

Open omame opened 2 years ago

omame commented 2 years ago

I'm trying to update the main record for a website. I couldn't find any information in the readme, so I attempted to set DOMAIN_DYNAMIC_ITEMS to @, . or even '', without success. Here's an example of the output returned from the first example:

$ docker run --rm -e GANDI_API_KEY="${GANDI_KEY}" -e DOMAIN_FQDN="example.com." -e DOMAIN_DYNAMIC_ITEMS='@' ghcr.io/bwolf/gandi-dns-update/gandi-dns-update:latest
[2022-03-10T10:25:49Z INFO  gandi_dns_update] Looking up my IP address
[2022-03-10T10:25:49Z INFO  gandi_dns_update] My IP address is MY_IP
[2022-03-10T10:25:49Z INFO  gandi_dns_update] Processing domain name example.com., record @
[2022-03-10T10:25:49Z DEBUG gandi_dns_update] Domain example.com. first NS name is ns-107-c.gandi.net.
[2022-03-10T10:25:49Z DEBUG gandi_dns_update] Domain example.com. NS IP SOME_IP
[2022-03-10T10:25:49Z INFO  gandi_dns_update] Checking domain example.com. dynamic item @.example.com.
Error: AppError { msg: "Resolve error: proto error: Label contains invalid characters: Err(Errors { invalid_mapping, disallowed_by_std3_ascii_rules })" }

Is this supported? If yes, how can I configure gandi-dns-update to do this?

Thanks in advance!

bwolf commented 2 years ago

This is currently not suported. A PR is wecome to add the feature. The setting DOMAIN_DYNAMIC_ITEMS is intended to point to entries besides @, that is simple A entries.

omame commented 2 years ago

Thank you for confirming.

I wish I knew enough rust to code this myself.