Hosted zones¶
List the Route 53 zones to update under hostedZones. Supply the entire list
in the configuration file or through environment variables. Credentials and WAN
providers are shared by all zones and can come from either source.
hostedZones:
- id: Z111111EXAMPLE
records:
- name: home.example.org.
type: A
ttl: 300
- name: home.example.org.
type: AAAA
ttl: 300
- id: Z222222EXAMPLE
records:
- name: home.example.net.
type: A
ttl: 60
Use the hosted zone ID from Route 53. Specify each zone once and give it at
least one record. Each record requires a fully qualified name, type (A or
AAAA), and positive TTL in seconds. A name and type pair must be unique
within its zone. The same name can occur in multiple zones.
For environment configuration, start both indexes at zero. For example, the second zone above uses these variables:
DDNSR53_HOSTEDZONES_1_ID=Z222222EXAMPLE
DDNSR53_HOSTEDZONES_1_RECORDS_0_NAME=home.example.net.
DDNSR53_HOSTEDZONES_1_RECORDS_0_TYPE=A
DDNSR53_HOSTEDZONES_1_RECORDS_0_TTL=60
Each run looks up the WAN address once per required address family. A failed lookup skips records for that family. A failed Route 53 request skips the rest of that zone. The updater continues with the remaining zones and reports the failures at the end of the run.
records¶
In the environment variable names below, replace <ZONE> with the zone index
and <RECORD> with the record index within that zone. Both start at zero.
name¶
Fully qualified DNS name of the Route 53 record.
Warning
End the record name with a trailing dot, for example ddns.example.com..
Config file
hostedZones:
- id: Z111111EXAMPLE
records:
- name: ddns.example.com.
Environment variables
DDNSR53_HOSTEDZONES_<ZONE>_RECORDS_<RECORD>_NAME
type¶
Use A for the WAN IPv4 address or AAAA for the WAN IPv6 address.
Config file
hostedZones:
- id: Z111111EXAMPLE
records:
- name: ddns.example.com.
type: A
Environment variables
DDNSR53_HOSTEDZONES_<ZONE>_RECORDS_<RECORD>_TYPE
ttl¶
Time to live in seconds. Use a positive integer, such as 300 for five minutes.
Config file
hostedZones:
- id: Z111111EXAMPLE
records:
- name: ddns.example.com.
type: A
ttl: 300
Environment variables
DDNSR53_HOSTEDZONES_<ZONE>_RECORDS_<RECORD>_TTL