https://github.com/bndw/ddns
A quick Dynamic DNS hack for Route53
https://github.com/bndw/ddns
Last synced: about 1 year ago
JSON representation
A quick Dynamic DNS hack for Route53
- Host: GitHub
- URL: https://github.com/bndw/ddns
- Owner: bndw
- Created: 2020-04-27T04:24:47.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2020-04-27T05:25:10.000Z (over 6 years ago)
- Last Synced: 2025-03-30T07:42:57.428Z (over 1 year ago)
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://circleci.com/gh/bndw/ddns)
# ddns
A quick Dynamic DNS hack for Route53.
## Usage
Run the container with AWS credentials and it'll create an A record with the machine's public IP.
```sh
docker run --rm \
-e ZONEID=FIXME \
-e CNAME=home.example.com \
-e AWS_ACCESS_KEY_ID=FIXME \
-e AWS_SECRET_ACCESS_KEY=FIXME \
-e AWS_REGION=FIXME \
bndw/ddns:latest
```
#### Kubernetes CronJob
```yaml
apiVersion: batch/v1beta1
kind: CronJob
metadata:
name: ddns
spec:
schedule: "@daily"
jobTemplate:
spec:
template:
spec:
containers:
- name: ddns
image: bndw/ddns:latest
env:
- name: AWS_ACCESS_KEY_ID
value: "FIXME"
- name: AWS_SECRET_ACCESS_KEY
value: "FIXME"
- name: AWS_REGION
value: "FIXME"
- name: ZONEID
value: "FIXME"
- name: CNAME
value: "home.example.com"
restartPolicy: OnFailure
```