mirror of
https://github.com/getnamingo/registry.git
synced 2025-07-01 08:33:22 +02:00
Added two additional zone serial algorithms
This commit is contained in:
parent
c4ea5b7993
commit
12ece7d8ae
3 changed files with 26 additions and 2 deletions
|
@ -38,7 +38,7 @@ Coroutine::create(function () use ($pool, $log, $c) {
|
|||
$pdo = $pool->get();
|
||||
$sth = $pdo->prepare('SELECT id, tld FROM domain_tld');
|
||||
$sth->execute();
|
||||
$timestamp = time();
|
||||
$serial = generateSerial($c['dns_serial'] ?? 1);
|
||||
|
||||
$tlds = [];
|
||||
|
||||
|
@ -54,7 +54,7 @@ Coroutine::create(function () use ($pool, $log, $c) {
|
|||
$soa->setRdata(Factory::Soa(
|
||||
$c['ns']['ns1'] . '.',
|
||||
$c['dns_soa'] . '.',
|
||||
$timestamp,
|
||||
$serial,
|
||||
900,
|
||||
1800,
|
||||
3600000,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue