My favorites | Sign in
Project Home Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Project Information
Members

This shell script allows you to update FreeDNS hosts using a config file and switches to provide username and password (or hash).

Usage: ./mm-freedns.sh

<options>

Options:

-u
<username>
Your FreeDNS username.

-p
<password>
Your FreeDNS password.
-h <SHA-1 hash>
Use SHA-1 hash instead of user/pass. Hash is sha1(user|pass)
-f <config file>
Config file where hosts and methods are defined. [default: mm-freedns.conf]
-l <optional: log file>
Logs to the specified file. location and name: /var/log/mm-freedns.log
-s
Enables SSL.
-d
Enables Debug mode, prints more info.
-c <optional: minutes>
Adds itself to crontab.
-w <optional: config file>
Creates example target/config file.

Config file examples:

your.hostname.com|web|freedns fake.hostname.com|script|/usr/local/bin/get-ppp0-ip.sh

Script output and example:

Must return a single IP address. e.g.: /usr/sbin/pppoe-status | grep ppp0 | grep inet | cut -d't' -f2 | cut -d'p' -f1 | tr -d ' '

Powered by Google Project Hosting