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

Reimplement DNSCheckValidation #250

Merged
merged 9 commits into from
Aug 8, 2020
Merged

Conversation

BenHarris
Copy link
Contributor

Utilise get_dns_record and extend support for the detection of Null MX records (RFC7505) and reserved, mDNS and private namespaces (RFC2606 & RFC6762). References #249.

I have had to remove the testDnsWarnings test as I'm not sure of any specific domains which have one or more A/AAAA records, but no MX records, which are not "Null MX" records.

…upport for detection of Null MX records (RFC7505) and reserved, mDNS and private namespaces (RFC2606 & RFC6762)
…example.com now (correctly) fails the tests due to the Null MX case
@BenHarris
Copy link
Contributor Author

Building now, but seems to be failing on PHP 5.5 with "Peer fingerprint did not match". Looks like a Travis CI issue?

Copy link
Owner

@egulias egulias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great job @BenHarris , I've made some comments for you to check.

src/Exception/LocalOrReservedDomain.php Show resolved Hide resolved
src/Exception/DomainAcceptsNoMail.php Show resolved Hide resolved
src/Validation/DNSCheckValidation.php Outdated Show resolved Hide resolved
src/Validation/DNSCheckValidation.php Show resolved Hide resolved
tests/EmailValidator/Validation/DNSCheckValidationTest.php Outdated Show resolved Hide resolved
@egulias
Copy link
Owner

egulias commented Jul 21, 2020

Yes, it was Travis, working now.

src/Validation/DNSCheckValidation.php Outdated Show resolved Hide resolved
src/Validation/DNSCheckValidation.php Show resolved Hide resolved
@BenHarris
Copy link
Contributor Author

BenHarris commented Aug 5, 2020

Should be good to go now. Looks like Travis has failed again though as before.

Just a thought, but we should add psalms as a composer dev dependency.

@egulias
Copy link
Owner

egulias commented Aug 8, 2020

Approived. Thanks for your work @BenHarris !

@egulias egulias merged commit 840d560 into egulias:master Aug 8, 2020
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

Successfully merging this pull request may close these issues.

None yet

3 participants