Skip to content

dns_get_record in src/Validation/DNSCheckValidation.php return false for outlook emails. #382

Open
@SuryaJD

Description

@SuryaJD

Version: 4.0.1

I am trying to validate my Email address in my Laravel application, using the 'email:rfc,dns' rule.
While checking the code in src/Validation/DNSCheckValidation.php I came to know that line 119 is giving me false as a return.

// Get all MX, A, and AAAA DNS records for the host
// Using @ as workaround to fix https://bugs.php.net/bug.php?id=73149

$dnsRecords = @dns_get_record($host, DNS_MX + DNS_A + DNS_AAAA);
while I tried dns_get_record("outlook.com"); instead it gave me the list of DNS.

is it a bug or am I facing this issue? Is there any way to configure the type of DNS in the above validation?

Also on Line 102, I notice that code in appending ' . ' to the hostname. Is there any particular reason for that?

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