slicehost-dynamic-dns /

Filename Size Date modified Message
1.5 KB
1.9 KB
2.8 KB

Slicehost Dynamic DNS Client

Requirements

The only external dependency is PyActiveResource. Installation is easy:

sudo pip install pyactiveresource

Installation

This has been tested on Debian/Ubuntu servers running Apache2. Apache2 comes pre-configured in Debian-based systems to use /usr/lib/cgi-bin as the global cgi-bin. Symlink slicehost.py into that directory to create the url:

cd /usr/lib/cgi-bin
sudo ln -s ~/path/to/slicehost.py

You may also have to make sure that slicehost.py is executable:

chmod +x slicehost.py

After that you should be able to hit the url http://host/cgi-bin/slicehost.py. If you go to that URL, it should simply say error since you didn't give it an IP, and you don't have a config yet. Let's remedy that now:

sudo vi /etc/slicehost_ddns.conf

Into this file add the following information:

[slicehost]
api_key=your_slicehost_api_key_here
domain=thedomainyouwanttoupdate.com
names=www mail

You can find your api_key in the API Access area of your Slicehost management console.

The names entry is optional. By default, the script will update the A record corresponding to the base domain.

After this, you can setup your router to use a custom url for its Dynamic DNS service. The only prarmeter you'll need to pass to the CGI is ip, and that should obviously be the external IP you wish your DNS record to have:

http://your-host/cgi-bin/slicehost.py?ip=@IP

In this example, the @IP part should be whatever replacement string your router wants to use. @IP happens to be what Tomato uses.

Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.