mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-21 18:16:03 +02:00
BIND9 Instructions Update
This commit is contained in:
parent
7265757458
commit
0827852445
2 changed files with 23 additions and 18 deletions
|
@ -140,14 +140,14 @@ Coroutine::create(function () use ($pool, $log, $c) {
|
|||
$completed_zone = $builder->build($zone);
|
||||
|
||||
if ($c['dns_server'] == 'bind') {
|
||||
$basePath = '/etc/bind/zones';
|
||||
$basePath = '/var/lib/bind';
|
||||
} elseif ($c['dns_server'] == 'nsd') {
|
||||
$basePath = '/etc/nsd';
|
||||
} elseif ($c['dns_server'] == 'knot') {
|
||||
$basePath = '/etc/knot';
|
||||
} else {
|
||||
// Default path
|
||||
$basePath = '/etc/bind/zones';
|
||||
$basePath = '/var/lib/bind';
|
||||
}
|
||||
|
||||
file_put_contents("{$basePath}/{$cleanedTld}.zone", $completed_zone);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue