Update WebFaction DNS entry for a domain
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



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