2021-12-24 19:20:31 -06:00
|
|
|
# Set the domain that you want to configure.
|
|
|
|
fqdn = "example.com"
|
|
|
|
# The API key to use. To get your API key, log in to Gandi, click on your user
|
|
|
|
# on the top right and click settings. Then select the "Security" tab, and
|
|
|
|
# generate an API key under "Production API Key". Paste the key here.
|
|
|
|
#
|
|
|
|
# Make sure this file config file is not readable by your user! Anyone who can
|
|
|
|
# read this key can change your domain configuration, transfer your domains, or
|
|
|
|
# otherwise do things that will cause you to be charged money.
|
2021-12-14 21:30:36 -06:00
|
|
|
api_key = "xxxxxxxxxxxxxxxxxxxxxxxx"
|
2021-12-24 19:20:31 -06:00
|
|
|
|
2022-06-09 20:29:02 -05:00
|
|
|
# The Time To Live value to be used by entries. This can be an integer between
|
|
|
|
# 300 and 2592000. It is 300 by default. This is roughly how quickly DNS changes
|
|
|
|
# will propagate when updated, you should keep this the minimum so changes to
|
|
|
|
# your IP address propagate quickly.
|
|
|
|
ttl = 300
|
|
|
|
|
2022-08-23 00:17:17 -05:00
|
|
|
# Where to query your IP address from. These options are free and unlimited.
|
|
|
|
# Ipify is used by default. If you want to change it, uncomment the one you want
|
|
|
|
# to use.
|
|
|
|
#
|
2023-02-01 22:19:57 -06:00
|
|
|
#ip_source = "Ipify" # An open source and public service. https://github.com/rdegges/ipify-api
|
|
|
|
#ip_source = "Icanhazip" # A free service, currently run by Cloudflare. https://major.io/2021/06/06/a-new-future-for-icanhazip/
|
|
|
|
#ip_source = "SeeIP" # A free service, run by UNVIO, LLC. https://seeip.org/
|
2022-08-23 00:17:17 -05:00
|
|
|
|
2021-12-24 19:20:31 -06:00
|
|
|
# For every domain or subdomain you want to update, create an entry below.
|
|
|
|
|
|
|
|
[[entry]]
|
|
|
|
# Updates A (IPv4) entry for example.com
|
|
|
|
name = "@"
|
|
|
|
|
|
|
|
[[entry]]
|
2022-01-23 21:35:29 -06:00
|
|
|
# Updates both A (IPv4) and AAAA (IPv6) entries for other.example.com
|
2021-12-24 19:20:31 -06:00
|
|
|
name = "other"
|
2022-01-23 21:26:57 -06:00
|
|
|
types = ["A", "AAAA"]
|
2021-12-24 19:20:31 -06:00
|
|
|
|
|
|
|
[[entry]]
|
|
|
|
# Updates A for some.example.net
|
|
|
|
name = "some"
|
|
|
|
fqdn = "example.net" # Overrides top level setting
|
2022-06-09 20:29:02 -05:00
|
|
|
# Individual entries can override the global TTL
|
|
|
|
ttl = 600
|