Reload depending on Zonefiles
johnno at nospam.casebook.org
Sat Mar 25 02:34:13 UTC 2000
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.
Are you manually updating zonefiles for specific domains? If you're manually
modifying zonefiles, you can pass the domain name as an argument to ndc.
For example: "ndc reload blah.com"
If you're running a large nameserver which contains a lot of zones, it's
probably unwise to reload the entire database. "ndc reload" by itself will
reload all of your zones, and it's really not necessary to do that unless the
zone has changed.
Johnno (johnno at nospam.casebook.org)
More information about the bind-users