Skip to content
This repository has been archived by the owner on Jan 7, 2020. It is now read-only.

gesquive/webfaction-ddns

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

webfaction-ddns

A script to update Webfaction DNS entries

Steps to install:

  1. Copy somewhere accessible
  2. Secure the config file
  3. [optional] If you want logging, create the directory /var/log/webfaction-ddns
  4. Add entry to cron

For example: Download and copy the script to your /usr/local/bin directory and make it executable

wget https://raw.github.com/gesquive/webfaction-ddns/master/webfaction-ddns.py -O /usr/local/bin/webfaction-ddns
chmod +x /usr/local/bin/webfaction-ddns

Run script once as the that will run it regularly. This will create the config file in ~/.config/webfaction-ddns/webfaction-ddns.conf. Since your password is plain text in this config, secure the file.

chmod 600 ~/.config/webfaction-ddns/webfaction-ddns.conf

[optional] Create the logging directory and make it writable

sudo mkdir /var/log/webfaction-ddns/
sudo chown <user>:<user> /var/log/webfaction-ddns

Add entry to cron, for example, to run every hour:

0 * * * * /usr/bin/python /usr/local/bin/webfaction-ddns

About

Update WebFaction DNS entry for a domain

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages