feat: Add DNS management resources and importer

- Implemented DomainCollection, DomainDetailResource, DomainNSCollection, DomainNSResource, and DomainResource for handling DNS domain and record data.
- Created VpsServiceCollection and VpsServiceResource for VPS service management.
- Added DnsManagerNS and DnsManagerUser models to represent DNS records and user associations.
- Developed AdminZoneDnsSqlImporter for importing DNS data from SQL dumps, including customer and DNS domain records.
- Added migration scripts to update the customers table with new fields and sync foreign key references for DNS tables.
- Created a migration preview document outlining the mapping and schema changes for the admin zone DNS import.
This commit is contained in:
baodev0
2026-05-26 13:54:33 +07:00
parent 520f21cb11
commit fccb0c353a
30 changed files with 4030 additions and 105 deletions
+14
View File
@@ -165,6 +165,20 @@ class ServerService
}
}
public function checkConnectionByServer(DnsServer $server): bool
{
try {
return $this->checkConnection([
'username' => $server->username,
'password' => Crypt::decryptString($server->password),
'ip_address' => $server->ip_address,
]);
} catch (\Throwable $e) {
Log::error($e->getMessage());
return false;
}
}
public function getDomainInfo(string $domain = ''): array|false
{
if (empty($domain)) {