This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# Use this script to update a DNS override using the webfaction API | |
# be sure to set your username, password, dns override, and ethenet interface. | |
# Then add a crontab entry for the script, I use every 5 minutes | |
# */5 * * * * /path/to/ddns.py | |
# This is safe as the script exit(0)'s if the ip is the same as wehat is recorded in the file. | |
# Webfaction documentation on DNS overrides | |
# http://docs.webfaction.com/user-guide/domains.html#overriding-dns-records-with-the-control-panel |