Reload depending on Zonefiles

Barry Margolin barmar at bbnplanet.com
Fri Mar 24 19:30:25 UTC 2000


In article <20000324200311.J16111 at stahlw06.stahl.bau.tu-bs.de>,
Ralf Hildebrandt  <R.Hildebrandt at tu-bs.de> wrote:
>I want to use "make" from a hourly cron-job to automagically issue an 
>"ndc reload" whenever a zonefile of a master zone changed.
>
>How do I do this? I have problems to get the Makefile right:
>
>all:    ../../var/run/named.pid
> 
>../../var/run/named.pid:        floppy.de floppy.net floppy.org macke.org \
>                                renraku.com stockmannolsen.com
>                                ndc -c /var/spool/named/var/run/ndc reload  
>
>Sorry for being so ignorant.

That looks like it should work, assuming the relative path to named.pid is
correct.  Also, make sure that the "ndc" line begins with a TAB, not
spaces; make is picky about the difference.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.



More information about the bind-users mailing list