secoundary ns - not authoritative

Will Yardley &- at no.spam.veggiechinese.net
Fri Aug 16 03:46:28 UTC 2002


In article <ajh85p$8qur$1 at isrv4.isc.org>, Kevin Darcy wrote:
> Alexander Newald wrote:
 
>> So it is not possible to tell the secoundary ns that it should be
>> authoritative for all domains that are send by zone transfers from the
>> primary ns without createing an entry in the named.conf for each zone?
> 
> This functionality is not built into BIND, no.
> 
> But many folks script this. For example, you could have a special zone --
> e.g. call it "_zones." or something like that. It would contain one
> record, e.g. a TXT or PTR record, per zone hosted. The slaves could slave
> that special zone and whenever they detect that something has been added
> to it, add the new slave definition to /etc/named.conf and reload.

another way to do this is to use a script to make a file and then scp it
to the slave machine(s) via cron....

use something like this to make the file from a list of zones:

#!/usr/bin/perl

$primary = '1.2.3.4';

while (<>) {
        chomp;

        ($zone) = /zone "([^"]+)"/;
        next unless $zone;

        $fn = "/var/named/dh1.secondary/" . substr($zone,0,1) . "/" . $zone;

        print "zone \"$zone\" { type slave; file \"$fn\"; masters {
$primary ; }; };\n";
}


-- 
No copies, please.
To reply privately, simply reply; don't remove anything.


More information about the bind-users mailing list