fixed typo in slave config; lookup using the master IP for the hidden master
This commit is contained in:
2
DDNS.pm
2
DDNS.pm
@ -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;
|
||||
|
||||
@ -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";
|
||||
|
||||
Reference in New Issue
Block a user