pureslaves now work too

This commit is contained in:
2016-02-22 12:16:03 -05:00
parent 31b1b9ba58
commit db05757b79
10 changed files with 97 additions and 32 deletions

12
bin/list-slaves Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/perl
use strict;
use warnings;
use Martnet::DDNS;
my $ddns = Martnet::DDNS->new();
my @vh = $ddns->get('_pureslave');
foreach my $i (sort {$a->{zone} cmp $b->{zone}} @vh) {
print $i->{zone}, ". master: ", $i->{master},"\n";
}