kutzilla / docker-hetzner-ddns

A Docker image that allows you to use Hetzner DNS as a DynDNS Provider
MIT License
23 stars 8 forks source link

Would be nice if DnsRecordName can be set by a parameter #4

Closed einwaschdl closed 2 years ago

einwaschdl commented 2 years ago

I only want to point a sub domain to my dynamic ip at home. Therefor it would be nice if DnsRecordName can also be set by a parameter.

Other then that nice work and thanks for sharing it :-)

kutzilla commented 2 years ago

Hey @einwaschdl,

good idea.

To clarify: You would like to have a optional parameter, which sets the "name" attribute in your Hetzner DNS-Console right? For example the Docker Image should update the value of the record "sub.example.com" instead of the @-Record on "example.com". Do I understand correctly?

Cheers, kutzilla

einwaschdl commented 2 years ago

Hi @kutzilla ,

yes exactly. I use the sub domain home.example.com to reach the stuff I host at home. The @-Record points to my web hosting.

kutzilla commented 2 years ago

This feature is now included in the latest release v.1.2. You can set the environment variable RECORD_NAME to specify a subdomain for DDNS updates.