Koozali.org: home of the SME Server

hammernode dynamic dns

paul chubb

hammernode dynamic dns
« on: March 07, 2001, 12:21:17 PM »
I wanted to use hammernode (www.hn.org) for dynamic dns because it allowed me to host real domains for free. E-smith doesn't have a script for this so I created a custom script as follows:

#!/bin/sh
# Description: hn.org (free service)
#------------------------------------------------------------
# Send DNS IP address update to hn.org. Ignore DOMAIN
# parameter since hn uses mapping in dns to go from domain to subdomain
#------------------------------------------------------------
IPADDR=$1
USERID=$2
PASSWD=$3
DOMAIN=$4

lynx -source -auth="$USERID:$PASSWD" "http://dup.hn.org/vanity/update?VER=1?IP=$IPADDR"

This is essentially the yi.org script with the lynx command changed to match hn's api. The api is documented under the client's link under the dynamic dns overview.

Enjoy....

Cheers Paul