Add ddclient TTL configuration in Gandi and GoDaddy (#4387)

This commit is contained in:
David PHAM-VAN 2024-12-06 08:24:06 -04:00 committed by GitHub
parent 6d79d32ea8
commit be46a42f8e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 3 additions and 5 deletions

View file

@ -77,7 +77,7 @@
<id>account.ttl</id>
<label>TTL</label>
<type>text</type>
<style>optional_setting service_aws service_netcup</style>
<style>optional_setting service_aws service_netcup service_gandi service_godaddy</style>
<help>Time to Live for the DNS entry</help>
</field>
<field>

View file

@ -44,9 +44,10 @@ protocol={{account.service}}, \
dynurl=https://ipv4.cloudns.net/api/dynamicURL/?q={{account.password}}, \
{% elif account.service == 'hosting1984' %}
protocol=1984, \
{% elif account.service == 'godaddy' %}
{% elif account.service in ['godaddy', 'gandi'] %}
protocol={{account.service}}, \
zone={{account.zone}}, \
ttl={{account.ttl}}, \
{% elif account.service == 'hetzner' %}
protocol={{account.service}}, \
zone={{account.zone}}, \
@ -56,9 +57,6 @@ server=updates.dnsomatic.com, \
{% elif account.service == 'dynu' %}
protocol=dyndns2, \
server=api.dynu.com, \
{% elif account.service == 'gandi' %}
protocol={{account.service}}, \
zone={{account.zone}}, \
{% elif account.service == 'he-net' %}
protocol=dyndns2, \
server=dyn.dns.he.net, \