ZoneValidationService
class ZoneValidationService (View source)
Zone Validation Service
Validates zone records for common issues that could cause DNSSEC signing to fail. Performs comprehensive pre-flight checks before DNSSEC operations.
Methods
Validate zone records before DNSSEC signing
Get a formatted error message from validation results
Details
__construct(RecordRepositoryInterface $recordRepository)
No description
array
validateZoneForDnssec(int $zoneId, string $zoneName)
Validate zone records before DNSSEC signing
Performs pre-flight checks:
- SOA record validation (must exist and be valid)
- NS record validation (at least one NS record required at zone apex)
Note: We only validate critical requirements for DNSSEC signing. Other checks (TXT quoting, duplicates, TTL consistency) are omitted as they don't prevent DNSSEC signing from succeeding.
Delegation NS records (e.g., child.example.com NS ...) are not counted as they represent subdomain delegations, not zone authority.
string
getFormattedErrorMessage(array $validationResult)
Get a formatted error message from validation results