Commit c1b89fad authored by anarcat's avatar anarcat Committed by anarcat

very crude MX management: we have a default mx per server which we just throw in there

parent d5b0f543
......@@ -12,6 +12,13 @@ print("@ IN SOA $server->remote_host $dns_email (
$server->dns_negativettl ; minimum
)\n");
if (!empty($server->dns_default_mx)) {
if ($server->dns_default_mx[strlen($server->dns_default_mx)-1] != '.') {
$server->dns_default_mx .= '.';
}
print "@\tIN\tMX\t10\t" . $server->dns_default_mx . "\n";
}
print "@\tIN\tNS\t" . $server->remote_host . " ; primary DNS\n";
foreach ($server->dns_slaves as $slave) {
......
......@@ -116,6 +116,7 @@ class provisionService_dns extends provisionService {
$this->server->dns_hostd_path = "{$app_dir}/host.d";
}
$this->server->setProperty('dns_default_mx', null); # XXX: until we get full zone management
$this->server->setProperty('dns_ttl', 86400); # 24h
$this->server->setProperty('dns_refresh', 21600); # 6h
$this->server->setProperty('dns_retry', 3600); # 1h
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment