When you go to
http://www.servershak.com/dns/dnsctl you see that the domain servershak.com has expired, that's why it doesn't work for you.
Here's the contents of /usr/local/sbin/dnsctl:
Code:
#!/bin/sh
# Don Walters
# don@servershak.com
#
# chkconfig:
# description: the djbdns DNS
PATH=/bin:/usr/bin:/usr/local/bin:/usr/local/sbin
export PATH
case "$1" in
start)
echo "Starting dns"
if svok /service/dnscache ; then
svc -u /service/dnscache
else
echo dnscache service not running
fi
if svok /service/tinydns ; then
svc -u /service/tinydns
else
echo tinydns service not running
fi
if [ -d /var/lock/subsys ]; then
touch /var/lock/subsys/dns
fi
;;
stop)
echo "Stopping dns ..."
echo " dnscache"
svc -d /service/dnscache
echo " tinydns"
svc -d /service/tinydns
if [ -f /var/lock/subsys/dns ]; then
rm /var/lock/subsys/dns
fi
;;
stat)
svstat /service/dnscache
svstat /service/dnscache/log
echo "--"
svstat /service/tinydns
svstat /service/tinydns/log
;;
reload|hup)
echo "Sending HUP signal to dns."
svc -h /service/dnscache
svc -h /service/tinydns
;;
pause)
echo "Pausing dnscache"
svc -p /service/dnscache
echo "Pausing tinydns"
svc -p /service/tinydns
;;
cont)
echo "Continuing dnscache"
svc -c /service/dnscache
echo "Continuing tinydns"
svc -c /service/tinydns
;;
restart)
echo "Restarting dns:"
echo "* Stopping dnscache."
svc -d /service/dnscache
echo "* Stopping tinydns."
svc -d /service/tinydns
echo "* Restarting dnscache."
svc -u /service/dnscache
echo "* Restarting tinydns."
svc -u /service/tinydns
;;
help)
cat <<HELP
start -- starts dns service (dns connections allowed. queries can go out)
stop -- stops dns service (dns connections refused, nothing goes out)
pause -- temporarily stops dns service (dns connections accepted, nothing leaves)
cont -- continues paused dns service
stat -- displays status of mail service
restart -- stops and restarts dns
reload -- sends dns HUP
hup -- same as reload
HELP
;;
*)
echo "Usage: $0 {start|stop|restart|reload|stat|pause|cont|help}"
exit 1
;;
esac
exit 0