-
-
Notifications
You must be signed in to change notification settings - Fork 210
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
When email top level domain valid but subdomain invalid then check still passes #362
Comments
Hi @ValCanBuild |
@egulias I don't quite understand how the two issues are connected. I believe this one mainly has to do with the MX records should exist at the dns name equal to whatever is behind the @ in the email address. So only checking the parent domain is a bug. Source: https://www.nslookup.io/learning/dns-record-types/mx/#mx-records-below-the-zone-root |
@egulias I believe the issue might have been caused by this change: #355 There's a valid test case for this inside
|
@egulias just pinging again on this as I believe it's an open bug in 4.0.1 and above versions of the library. |
Hi @ValCanBuild |
@egulias here's a domain with AAAA records or no MX records you can use for the test: dnslookup.io |
The DNS validation is passing for an email like the following:
[email protected]
There is a misspelling of "environsment-agency" and if you check the DNS records for
environsment-agency.gov.uk
they show up as empty. But the library seems to only be checking the last part of the domain -gov.uk
, not the subdomain as well.This looks wrong to me. Is it possible to fix?
The text was updated successfully, but these errors were encountered: