I was trying to setup DDNS on Cloudflare on the root of the domain. ie. example.com and it won't properly setup the zone for this. I was able to correct this by manually editing the /etc/ddclient/ddclient.conf file and changing the zone option to match.
Description
Description
Details
Details
- Difficulty level
- Easy (less than an hour)
- Version
- -
- Why the issue appeared?
- Will be filled on close
- Is it a breaking change?
- Unspecified (possibly destroys the router)
- Issue type
- Feature (new functionality)
Event Timeline
Comment Actions
@wcktklwn Can you provide vyos config for dynamic service and config ddclient.conf
Which lines do you add manually?
Comment Actions
Here is the vyos config.
service cloudflare { host-name example.com login [email protected] password password }
When it generates the ddclient.conf file it puts in like this,
# DynDNS provider configuration for example.com protocol=cloudflare, max-interval=28d, [email protected], password='password', zone=com, example.com
and I have to modify it to look like this. (only the zone= line is changed)
# DynDNS provider configuration for example.com protocol=cloudflare, max-interval=28d, [email protected], password='password', zone=example.com, example.com
Comment Actions
Unfortunately I have no idea how that zone option works. I'd rather solve this by an automatic code path then specifying it on the commandline (which is now possible).
Can we always assume that:
hostname example.com -> zone example.com
hostname foo.example.com -> zone example.com
hostname bar.foo.example.com -> foo.example.com? or example.com?
Once there is some light in the dark we can probably automate this.
Please test latest rolling so far.