Skip to content

A simple bash script that upserts DDNS records to a Route53 backend

License

Notifications You must be signed in to change notification settings

yuvadm/route53-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 

Repository files navigation

route53-ddns

Build Status

A simple {b,d,}ash script aimed for usage on LEDE/OpenWRT devices which enables sending DDNS updates to Route53.

Attempts to reduce the Route53 REST API call dependencies on the minimum amount of additional packages.

This script has made it upstream and can now be used natively with ddns-scripts.

Requirements

Usage

$ export HOSTED_ZONE_ID=ABCDEFGHIJKL
$ export AWS_ACCESS_KEY_ID=AKIAXXXXXXXXXXXX
$ export AWS_SECRET_ACCESS_KEY=XXXXXXXXXXXXXXXXXXXXXXXXXXX
$ export RECORD_NAME=foo.example.com
$ export RECORD_VALUE=1.2.3.4
$ ./route53.sh
<?xml version="1.0"?>
<ChangeResourceRecordSetsResponse xmlns="https://route53.amazonaws.com/doc/2013-04-01/"><ChangeInfo><Id>/change/C1R7XXXXXXXX</Id><Status>PENDING</Status><SubmittedAt>2017-09-15T14:03:18.167Z</SubmittedAt></ChangeInfo></ChangeResourceRecordSetsResponse>

Test

$ shellcheck -s ash -e SC2169 route53.sh

License

Released under GPLv2

Copyright (C) 2017 by Yuval Adam

About

A simple bash script that upserts DDNS records to a Route53 backend

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages