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

add a dot at the end of the master NS if missing

parent 84113112
...@@ -19,7 +19,11 @@ if (!empty($server->dns_default_mx)) { ...@@ -19,7 +19,11 @@ if (!empty($server->dns_default_mx)) {
print "@\tIN\tMX\t10\t" . $server->dns_default_mx . "\n"; print "@\tIN\tMX\t10\t" . $server->dns_default_mx . "\n";
} }
if ($server->remote_host[strlen($server->remote_host)-1] != '.') {
$server->remote_host .= '.';
}
print "@\tIN\tNS\t" . $server->remote_host . " ; primary DNS\n"; print "@\tIN\tNS\t" . $server->remote_host . " ; primary DNS\n";
if (is_array($server->slave_servers_names)) { if (is_array($server->slave_servers_names)) {
foreach ($server->slave_servers_names as $slave) { foreach ($server->slave_servers_names as $slave) {
if ($slave[strlen($slave)-1] != '.') { if ($slave[strlen($slave)-1] != '.') {
......
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