Skip to content

Validation/DNSCheckValidation.php goes wrong if no MX record #405

Open
@AlexQwamp

Description

@AlexQwamp

Hello,

Looking at

foreach ($dnsRecords as $dnsRecord) {
and
if ($dnsRecord['type'] !== 'MX') {

condition " if (empty($this->mxRecords))" can never been achieved when DNSRecord contains no MX.

By consequence, if you test a domain with no MX record at all, validation returns valid.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions