$server->{status} = $cache->{$server->{pingdom}} || "down";
}
}
+ else
+ {
+ $server->{status} = "down";
+ }
}
YAML::DumpFile("pingdom.yml", $cache);
{
$match = "preferred";
}
- elsif ($cluster->{preferred} &&
- $cluster->{preferred}->{continents} &&
- grep { $_ eq $origin->{continent} } @{$cluster->{preferred}->{continents}})
- {
- $match = "preferred";
- }
elsif ($cluster->{allowed} &&
$cluster->{allowed}->{countries} &&
grep { $_ eq $origin->{country} } @{$cluster->{allowed}->{countries}})
{
$match = "allowed";
}
- elsif ($cluster->{allowed} &&
- $cluster->{allowed}->{continents} &&
- grep { $_ eq $origin->{continent} } @{$cluster->{allowed}->{continents}})
- {
- $match = "allowed";
- }
elsif ($cluster->{denied} &&
$cluster->{denied}->{countries} &&
grep { $_ eq $origin->{country} } @{$cluster->{denied}->{countries}})
{
$match = "denied";
}
+ elsif ($cluster->{preferred} &&
+ $cluster->{preferred}->{continents} &&
+ grep { $_ eq $origin->{continent} } @{$cluster->{preferred}->{continents}})
+ {
+ $match = "preferred";
+ }
+ elsif ($cluster->{allowed} &&
+ $cluster->{allowed}->{continents} &&
+ grep { $_ eq $origin->{continent} } @{$cluster->{allowed}->{continents}})
+ {
+ $match = "allowed";
+ }
elsif ($cluster->{denied} &&
$cluster->{denied}->{continents} &&
grep { $_ eq $origin->{continent} } @{$cluster->{denied}->{continents}})
{
if ($server->{status} eq "up")
{
- $zonefile->print("+${name}:$server->{ipv4}:3600\n");
+ $zonefile->print("+${name}:$server->{ipv4}:600\n");
if ($server->{ipv6})
{
-# $zonefile->print("3${name}:$server->{ipv6}:3600\n");
+# $zonefile->print("3${name}:$server->{ipv6}:600\n");
}
}
}