Coder Social home page Coder Social logo

ddns's Introduction

Dynamic DNS using the DreamHost API

To use the DreamHost DNS API to manage DDNS:
  1. Check out this repository somewhere publicly accessible and
     update index.cgi with the path to a Racket executable:
	 #!/path/to/racket
  2. Get an API key for 'All DNS functions' from DreamHost:
     https://panel.dreamhost.com/index.cgi?tree=home.api
	 and copy the key to ~/.ddns.api-key at DreamHost.
  3. Create a .htpasswd file for the dynamic host:
     htpasswd -c ~/.ddns.htpasswd home.example.com
  4. Update the .htaccess file in this directory to reference
     the AuthUserFile in the home directory:
	 AuthUserFile /home/myusername/.ddns.htpasswd
  5. On the dynamic host, create a cron job to call the script:
     # Every three hours: midnight, 8am, 4pm
     0 0,8,16 * * * curl --basic --user <host>:<passwd> \
	   https://home.example.com/ddns/ >/var/log/ddns.log
	 
The password is sent in the clear so ensure TLS. The DNS TTL is
up to 4 hours so there is no point setting a cron interval less
than this.

References:
  https://github.com/ianloic/dreamhost-ddns

ddns's People

Watchers

Simon Haines avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.