#!/bin/sh

# daily tasks for djbdns: you can automate zone transfers from non-djbdns
# servers here using axfr-get and tcpclient

cd /var/djbdns/tinydns/root

# Use the following command (uncommented and modified, of course) to perform
# daily zone transfers of non-djbdns servers.  This will retrieve the zone
# information from domain.com from [remote_dns_IP] and save the info as 
# the file zone-domain.com

#tcpclient [remote_dns_IP] 53 axfr-get domain.com zone-domain.com zone-domain.com.tmp
make build >/dev/null
make >/dev/null

# uncomment if you send data to a secondary djbdns server
#make remote >/dev/null