smeserver-dynamicdns-yi/root/sbin/e-smith/dynamic-dns/yi

16 lines
481 B
Bash
Executable File

#!/bin/sh
# Description: www.yi.org (free service)
#------------------------------------------------------------
# Send DNS IP address update to yi.org. Ignore DOMAIN
# parameter since yi.org only manages subdomains of yi.org.
#------------------------------------------------------------
IPADDR=$1
USERID=$2
PASSWD=$3
DOMAIN=$4
DATETIME=`date`
lynx -source -auth="$USERID:$PASSWD" "http://www.yi.org/bin/dyndns.fcgi?ipaddr=$IPADDR" | sed -e "s,^,$DATETIME: ," -e "s,<.*\?>,,g"