Fix subdomain DNS messaging for Ladill nameservers and retire pending-setup primaries.
Deploy Ladill Hosting / deploy (push) Successful in 47s

Treat ns_auto domains as managed DNS, publish subdomain A records via PowerDNS without failing the UX when the local DNS registry is missing, and promote real linked domains over pending-setup.local placeholders.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
isaacclad
2026-07-13 16:47:50 +00:00
co-authored by Cursor
parent 460edb8719
commit 136cf8b719
12 changed files with 686 additions and 45 deletions
@@ -0,0 +1,39 @@
<?php
use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;
return new class extends Migration
{
public function up(): void
{
if (Schema::hasTable('domain_dns_records')) {
return;
}
Schema::create('domain_dns_records', function (Blueprint $table) {
$table->id();
$table->foreignId('domain_id')->constrained('domains')->cascadeOnDelete();
$table->string('name');
$table->string('type', 20);
$table->text('value');
$table->unsignedInteger('ttl')->default(3600);
$table->unsignedSmallInteger('priority')->nullable();
$table->string('source')->default('managed');
$table->string('status')->default('pending');
$table->timestamp('last_checked_at')->nullable();
$table->text('notes')->nullable();
$table->timestamps();
$table->index(['domain_id', 'source']);
$table->index(['domain_id', 'status']);
$table->unique(['domain_id', 'name', 'type', 'value'], 'domain_dns_records_unique');
});
}
public function down(): void
{
Schema::dropIfExists('domain_dns_records');
}
};