newbie asks: script triggered by dynamic updates
Owen McShane
omcshane at vianetworks.co.uk
Thu Oct 16 07:40:12 UTC 2003
> Hi all,
> I'm very new to BIND 9.2.2 and needed to know if there is any way to
> execute a script after named receives a dynamic update from a client. This
> way I could rearrange my iptables rules accordingly.
I did something similar to this a while back. You could cron something like this to run every minute:
#!/bin/sh
if test /var/named/mydomain.br.jnl -nt /var/named/jnlfile ; then
# Put in commands here to update iptables rules
touch /var/named/jnlfile
fi
Owen
--
Via Net.Works UK Ltd
Local Touch Global Reach
Owen McShane Systems Administrator
http://www.vianetworks.co.uk Tel +44 (0)1925 484444
More information about the bind-users
mailing list