SOARecordValidator
class SOARecordValidator implements DnsRecordValidatorInterface (View source)
SOA record validator
Validates SOA (Start of Authority) records according to:
- RFC 1035: Domain Names - Implementation and Specification
- RFC 1982: Serial Number Arithmetic
- RFC 2308: Negative Caching of DNS Queries (DNS NCACHE)
SOA record format: [primary_ns] [admin_email] [serial] [refresh] [retry] [expire] [minimum]
Methods
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates SOA record through the generic validator interface
validateSoa(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, string $dnsHostmaster, string $zone)
Validates an SOA record against the zone it belongs to
Details
__construct(HostnameValidator $hostnameValidator, ConfigurationInterface $config)
No description
ValidationResult
validate(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, mixed ...$args)
Validates SOA record through the generic validator interface
ValidationResult
validateSoa(string $content, string $name, mixed $prio, int|string|null $ttl, int $defaultTTL, string $dnsHostmaster, string $zone)
Validates an SOA record against the zone it belongs to