Skip to content

gllera/dynamip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 

Repository files navigation

dynamip

Updates your domains on Route53 DNS to match your public IP

Usage

With docker

docker run -it --rm \
   -e AWS_ACCESS_KEY_ID=AAAA123123BBBB31CCCC \
   -e AWS_SECRET_ACCESS_KEY=aaaabbbbssVVVaasv2312w+3fdsdf32fewVdasAA \
   -e ZONEID=AAAAAAABBBBB11 \
   -e RECORDSET='*.exampleA.com exampleA.com exampleB.com' \
   -e TTL=150 \
   gllera/dynamip

Without docker

Requisites:

  • awscli
# Install awscli
pip3 install awscli
# Configure it
aws configure
# Test it
aws sts get-caller-identity
  • Fill the variables on file dynamip as needed:
AWS_HOSTED_ZONE_ID='ZZZZZZZZZZZ'
DNS_RECORDS='XXXXX.XXX *.XXXXXX.XXX YYYYYY.XXX'
DNS_TTL='150'
  • Execute it:
./dynamip
  • btw, is easier if you use it as a service configured as following:
[Unit]
Description=Updates DNS.

[Service]
Type=simple
ExecStart=/sbin/dynamip

[Install]
WantedBy=multi-user.target