Skip to content

Dynamic DNS Registrator for Route 53

Notifications You must be signed in to change notification settings

greenpau/dyndns

Repository files navigation

dyndns

Dynamic DNS Registrator for Route 53

Getting Started

First, create AWS CloudFormation stack named DynDnsUpdateServiceUser with assets/cloudformation/dyndns_service_user.yaml.

Next, create ~/dyndns_config.json configuration file:

{
  "provider": {
    "type": "route53",
    "zone_id": "Z627GH1M87Y192",
    "credentials": "~/.aws/credentials",
    "profile_name": "dyndns"
  },
  "record": {
    "name": "app.contoso.com",
    "type": "A",
    "ttl": 60
  },
  "sync_interval": 60
}

Finally, start the dyndns service:

bin/dyndns --config ~/dyndns_config.json --log-level debug

Deployment

First, install dyndns:

sudo yum -y localinstall dyndns-1.0.1-1.el7.x86_64.rpm

Then, amend the following files:

  • /etc/dyndns/config.json
  • /var/lib/dyndns/.aws/credentials

After that, enable and start the service:

sudo systemctl enable dyndns
sudo systemctl start dyndns
sudo systemctl status dyndns
sudo journalctl -u dyndns -r --no-pager | head -100