Skip to content

Latest commit

 

History

History
35 lines (25 loc) · 1.18 KB

README.md

File metadata and controls

35 lines (25 loc) · 1.18 KB

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