set directory for "auto" key files

Chris Thompson cet1 at cam.ac.uk
Mon Jan 7 16:52:53 UTC 2013


On Jan 7 2013, Phil Mayers wrote:

[...]
>I've never tried it but there's a "journal" option on the zone; maybe 
>this takes paths, like so:
>
>  zone "foo" {
>    type master;
>    # zone lives outside working dir
>    file "/etc/zones/foo";
>    # ...but journal lives inside it
>    journal "data/journals/foo";
>  };
>
>Note: I've never tested this; it is a wild guess.

We have been using it for years - it works fine. We have e.g.

zone "cam.ac.uk" {
 type master;
 file "master/cam.ac.uk";
 journal "master-jnl/cam.ac.uk";
 ...
 }
zone "111.131.in-addr.arpa" {
 type master;
 file "master/111.131.in-addr.arpa";
 journal "master-jnl/111.131.in-addr.arpa";
 ...
 }
...
zone "cl.cam.ac.uk" {
 type slave;
 file "slave/cl.cam.ac.uk";
 journal "slave-jnl/cl.cam.ac.uk";
 ...
 };
zone "232.128.in-addr.arpa" {
 type slave;
 file "slave/232.128.in-addr.arpa";
 journal "slave-jnl/232.128.in-addr.arpa";
 ...
 };
...

One slight niggling disadvantage is that you can't tell
named-checkzone / named-compilezone with the -j option where
to find the journal is it isn't in the default location.

-- 
Chris Thompson
Email: cet1 at cam.ac.uk



More information about the bind-users mailing list