docker-ddns icon indicating copy to clipboard operation
docker-ddns copied to clipboard

filter for domains that use the fqdn (Zone) in the submit

Open gmkey opened this issue 4 years ago • 0 comments

The newer versions of the AVM fritz!box routers, now require the DDNS domain to be a FQDN, including the zone. This leads to entries in the zone file that are like this:

ZONE=example.com

request url: https://ddns.example.com/v3/update?hostname=hostname.example.com&myip=<ipaddr>&password=<passwd>

Resulting entry in the zone file: hostname.example.com.example.com

The obvious solution of not using the FQDN but only the hostname results in tons of error messages.

Request: would it be possible to add a filter to the go scripts that checks if the hostname string contains a substring that is equal to the zone string and remove .zone from the hostname? (or any other solution that would yield the same result).

PS: this seems like a little patch, but unfortunately I have very limited go skills.

gmkey avatar Jan 14 '21 21:01 gmkey