|
Project Information
|
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 -p -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 -sEnables SSL. -dEnables 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 ' ' |