-
-
Notifications
You must be signed in to change notification settings - Fork 6
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
Validating SPF records (e.g. too many dns lookups) #21
Comments
Did you try to see what's happening with xdebug? |
Thanks for the quick response. I didn't yet - was curious what your philosophical perspective was first :) |
Hi, I have a question that would match the topic, When I validate a SPF record using the Are there plans to support counting DNS lookups for included SPF records also? Or should I implement this by myself? Btw. I see that |
This could be cool, if we could get the count out of OnlineSemanticValidator |
Hello,
I'd like to use this library to create a command for some nightly automation that would validate DNS records for people. One of the problems I want to try to avoid is that a vendor who is added via an
include
adjusts their record to add another DNS lookup and then it breaks the validity of my record.As a basic proof of concept, I
composer require mlocati/spf-lib
and then run this withphp -f main.php
:What I find is that the first check says there is a permerror
Too many DNS lookups have been performed (max limit is 10)
. The second check counts 3 DNS lookups then finds the IP and returns with success. I would expect that it should return the same pemrerror in both cases because the record itself is invalid.Is this behavior of the library intentional?
Thanks in advance for any insight you can share.
The text was updated successfully, but these errors were encountered: