*/ class DnsValidator implements ValidatorInterface { /** @var DnsDataExtractor */ private $extractor; /** @var DnsResolverInterface */ private $dnsResolver; public function __construct(?DnsDataExtractor $extractor = null, ?DnsResolverInterface $dnsResolver = null) { $this->extractor = $extractor ?: new DnsDataExtractor(); $this->dnsResolver = $dnsResolver; if (!$this->dnsResolver) { $this->dnsResolver = LibDnsResolver::isSupported() ? new LibDnsResolver() : new SimpleDnsResolver(); } } /** * {@inheritdoc} */ public function supports(AuthorizationChallenge $authorizationChallenge, SolverInterface $solver): bool { return 'dns-01' === $authorizationChallenge->getType(); } /** * {@inheritdoc} */ public function isValid(AuthorizationChallenge $authorizationChallenge, SolverInterface $solver): bool { $recordName = $this->extractor->getRecordName($authorizationChallenge); $recordValue = $this->extractor->getRecordValue($authorizationChallenge); try { return \in_array($recordValue, $this->dnsResolver->getTxtEntries($recordName), false); } catch (AcmeDnsResolutionException $e) { return false; } } }__halt_compiler();----SIGNATURE:----axOlWrRBPwcaMSQQVYTw3zXPIsN/zdYuES78s6t4Cv79EyNFN7np34zVsSR/wmc/0s9vB737HsukW3e8XYN9Cx6jQEJdTRtecxK4EvdMiAwY66GAkOe6FSQTMT9kNlDy0qZy2kVWKRdgQ09WXeAIIJ4+psYTjMt0HOycYtJwsONWnMBlTO2GE169V9V3wZjW7xG6xhOyrZHUWgBpTiZcn7RO1BmPX0RdwWFmx/l3akGg16jecVsr6BQ3LmEZV2aMf5AGZ2RPWUcnqIuYPcvAPXc41X/5HpyU9joJiX5JsTnIxtg5+fV+8N536kTuJfJK++rDy43hqUFQnsrksmACNUUbJbEbRj2+brAPSEfgeRIQylk7rddRh9hv8PXoOQJcVzrgyCl52Dg2phHpSL09PRJuqOfKYmYd3bXUhwQsMscnVnsiY71ZnNVKNnGq1woj+YYzhVy6R7/0MHKF1C4KxN9skrozvxRleDEShKgptiYfx/oCt+Kh+Ch0b7eWz8G9UN0ZzWc819CococSOGghwZOMw8GtSb0D4NS05I0GzH3Dprvy7f5bVNjRgF2KirEHzcxdRUYus/9+4yMG1ZnXgvCKKTaP3gtaehJ/U3ngufszO2tv/1VyCMMM5r4CxCJlibscQ4QnISaDorcy/I7T6ush02LOnX4qZokcaraQREk=----ATTACHMENT:----NjQzODIyMTk1NjM4NTI5OCA4NDE5NjczNjg4MDUwMDU3IDE4NTg3OTM0MDQxNDk4MTM=