A simple container for updating your DNS domain with IP
You need :
domain.com my A entry is sub.domain.com bound to IP 1.2.3.4 (whatever). This script doesn't create the A entry, it only modifies it.you can find the AWS_ZONE_ID I'm talking about here: https://console.aws.amazon.com/route53/home#hosted-zones: Click on the line of your zone NOT the url. On the right panel you should see the ID
Create a dedicated user for this:
route53ListResourceRecordSetsChangeResourceRecordSetshostedzone restriction. copy paste the AWS_ZONE_ID.To update the DNS sub.domain.com I need an identity in AWS with the correct role. at the end of user creation you get an ID and the KEY:
I would recommend setting your environment variables in a file, I use .env and put these in:
AWS_ID=AWSUSERID23487
AWS_KEY=AWSKEY80247523485je39A/+3
#you can get this one in Route53
AWS_ZONE_ID=ZONEIDINROUTE53
DNS_FQDN=sub.domain.com
# TTL for the A record as we overwrite it.
DNS_TTL=432000
# in seconds, the interval for the job
DNS_QUERY_INTERVAL=1800
docker run -d --env-file .env techunter/aws-dns-update:latest
docker-compose up -d
Comment the image line and uncomment the build line.
I took some parts from https://github.com/famzah/aws-dyndns so thank you :)
Content type
Image
Digest
Size
229.2 MB
Last updated
over 7 years ago
docker pull techunter/aws-dns-update