Use AWS Route53 as a dynamic DNS service
1.8K
Use AWS Route53 as a dynamic DNS service
Pull docker image:
docker pull zmazay/dynamic-dns-route53
Or build it yourself:
docker build . -t dynamic-dns-route53
Create a configuration file similar to the following:
route53_zones:
- zone: example1.com
hostnames:
- example1.com
- subdomain0.example1.com
- subdomain1.example1.com
- subdomain2.example1.com
- zone: example2.com
hostnames:
- example2.com
Map the directory containing the configuration file to the container with the following argument:
-v /host/directory:/container/directory
Set required variables:
export AWS_ACCESS_KEY_ID=******
export AWS_SECRET_ACCESS_KEY=************
export CONFIG_FILE=/path/to/your/config_file # should be exact path on the container
Run the DNS updater:
docker run -e "AWS_ACCESS_KEY_ID=${AWS_ACCESS_KEY_ID}" -e "AWS_SECRET_ACCESS_KEY=${AWS_SECRET_ACCESS_KEY}" -e "CONFIG_FILE=${CONFIG_FILE}" <IMAGE_ID>
The container runs continuously and every 15 minutes executes certain ansible playbook for updating your Route53 zone(s).
Content type
Image
Digest
Size
46.3 MB
Last updated
over 7 years ago
docker pull zmazay/dynamic-dns-route53