Mark gandi
protocol's ttl
var as optional
Gandi doesn't require a TTL in the update request. The protocol implementation already does the right thing if the `ttl` var is `undef`.
This commit is contained in:
parent
7f719dc305
commit
ae7919fcc4
1 changed files with 2 additions and 4 deletions
|
@ -580,7 +580,7 @@ my %services = (
|
||||||
'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')),
|
'min-interval' => setv(T_DELAY, 0, 0, 0, interval('5m')),
|
||||||
'server' => setv(T_FQDNP, 1, 0, 'api.gandi.net', undef),
|
'server' => setv(T_FQDNP, 1, 0, 'api.gandi.net', undef),
|
||||||
'script' => setv(T_STRING, 1, 1, '/v5', undef),
|
'script' => setv(T_STRING, 1, 1, '/v5', undef),
|
||||||
'ttl' => setv(T_DELAY, 1, 0, interval('3h'), interval('5m')),
|
'ttl' => setv(T_DELAY, 0, 0, undef, interval('5m')),
|
||||||
'zone' => setv(T_FQDN, 1, 0, undef, undef),
|
'zone' => setv(T_FQDN, 1, 0, undef, undef),
|
||||||
# Unused variables.
|
# Unused variables.
|
||||||
'login' => setv(T_STRING, 0, 0, 'unused', undef),
|
'login' => setv(T_STRING, 0, 0, 'unused', undef),
|
||||||
|
@ -5200,19 +5200,17 @@ sub nic_gandi_examples {
|
||||||
o 'gandi'
|
o 'gandi'
|
||||||
|
|
||||||
The 'gandi' protocol is used by the LiveDNS service offered by gandi.net.
|
The 'gandi' protocol is used by the LiveDNS service offered by gandi.net.
|
||||||
|
|
||||||
Description of Gandi's LiveDNS API can be found at:
|
Description of Gandi's LiveDNS API can be found at:
|
||||||
|
|
||||||
https://api.gandi.net/docs/livedns/
|
https://api.gandi.net/docs/livedns/
|
||||||
|
|
||||||
|
|
||||||
Available configuration variables:
|
Available configuration variables:
|
||||||
* password: The Gandi API key. If you don’t have one yet, you can generate
|
* password: The Gandi API key. If you don’t have one yet, you can generate
|
||||||
your production API key from the API Key Page (in the Security section).
|
your production API key from the API Key Page (in the Security section).
|
||||||
Required.
|
Required.
|
||||||
* zone: The DNS zone to be updated. Required.
|
* zone: The DNS zone to be updated. Required.
|
||||||
* ttl: The time-to-live value associated with the updated DNS record.
|
* ttl: The time-to-live value associated with the updated DNS record.
|
||||||
Optional; defaults to 3h.
|
Optional; uses Gandi's default (3h) if unset.
|
||||||
|
|
||||||
Example ${program}.conf file entries:
|
Example ${program}.conf file entries:
|
||||||
## Single host update.
|
## Single host update.
|
||||||
|
|
Loading…
Reference in a new issue