--- /dev/null
+#!/bin/bash
+
+# to update ip of hackdaworld.dyndns.org in unrealircd.conf
+
+CONFIGDIR="/etc/opt/unrealircd"
+BINDIR="/opt/unrealircd"
+BINARY="ircd"
+
+
+NEWIP="`host hackdaworld.dyndns.org | awk '{ print $4 }'`"
+
+# HDWTAG dirty ... but easy :)
+cat $CONFIGDIR/unrealircd.conf | \
+ sed "s/.* HDWTAG .*/hostname $NEWIP \/* HDWTAG *\//" > $CONFDIR/temp
+mv $CONFDIR/temp $CONFIGDIR/unrealircd.conf
+$BINDIR/$BINARY -rehash
+