fixed typo in slave config; lookup using the master IP for the hidden master

This commit is contained in:
2016-02-22 12:50:25 -05:00
parent ecf4d0c7da
commit e34c848c3b
2 changed files with 2 additions and 2 deletions

View File

@ -96,7 +96,7 @@ sub _gethosts {
}
my $fh;
open($fh, "dig -t AXFR \@127.0.0.1 private.invalid. |")
open($fh, "dig -t AXFR \@mister-dns.martnet.com private.invalid. |")
|| die "Can't open dig: $!";
my @vh;

View File

@ -41,7 +41,7 @@ sub do_rewrite {
my (@vh) = @_;
my ($fh, $path) = tempfile();
foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) {
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}\"; masters { $i->{master}; } };\n";
print $fh "zone \"$i->{zone}\" { type slave; file \"/var/cache/bind/db.$i->{zone}\"; masters { $i->{master}; }; };\n";
}
close $fh;
print "Installing new slave host list\n";