Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SuryaJD opened this issue Feb 10, 2024 · 0 comments

Comments

@SuryaJD
Copy link

SuryaJD commented Feb 10, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant