Skip to content

A simple script and Dockerfile to dynamically update a DNS record on a Dreamhost account

Notifications You must be signed in to change notification settings

raydouglass/dreamhost-dynamic-dns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Dynamic DNS for Dreamhost

A simple script and Dockerfile to dynamically update a DNS record on a Dreamhost account.

Setup

Get an API key from Dreamhost here with All dns functions allowed

Running

Standalone

You can run the script standalone if you have requests installed:

env API_KEY=<dreamhost_api_key> DOMAIN=<my_domain.com> python update_dns.py

Docker

You can run the script in a docker container:

docker run -it --rm \
    -e API_KEY=<dreamhost_api_key> \
    -e DOMAIN=<my_domain.com>
    raydouglass/dreamhost-dynamic-dns:latest

Configuration

There are two required and on optional environment variables:

  • API_KEY - An API key from Dreamhost with All dns functions allowed
  • DOMAIN - A comma separated list of domain names that have DNS enabled on the Dreamhost account
  • IP_LOOKUP_URL - Optional: a URL which returns the IP address of the user as plain text

About

A simple script and Dockerfile to dynamically update a DNS record on a Dreamhost account

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published