Page MenuHomePhabricator

Add zone option for Cloudflare DDNS
Closed, ResolvedPublicFEATURE REQUEST

Description

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.

Details

Difficulty level
Easy (less than an hour)
Version
-
Why the issue appeared?
Will be filled on close
Is it a breaking change?
Perfectly compatible

Event Timeline

wcktklwn created this task.Dec 26 2019, 9:36 PM

@wcktklwn Can you provide vyos config for dynamic service and config ddclient.conf
Which lines do you add manually?

pasik added a subscriber: pasik.Dec 27 2019, 9:55 AM

Here is the vyos config.

service cloudflare {
    host-name example.com
    login user@example.com
    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,
login=user@example.com,
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,
login=user@example.com,
password='password',
zone=example.com,
example.com
c-po changed the task status from Open to In progress.Mon, Feb 10, 7:15 PM
c-po claimed this task.
c-po added a comment.Thu, Feb 13, 7:04 AM

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.

c-po changed the task status from In progress to Needs testing.Thu, Feb 13, 7:05 AM
c-po triaged this task as Normal priority.
c-po changed Difficulty level from Unknown (require assessment) to Easy (less than an hour).
c-po closed this task as Resolved.Sun, Feb 16, 12:36 PM
c-po moved this task from Need Triage to Finished on the VyOS 1.3 Equuleus board.