-
Notifications
You must be signed in to change notification settings - Fork 43
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
Trouble with query_missing_srv() #156
Comments
May I ask what kind of trouble? (never mind, I think you mentioned that in the next paragraph.) More details will be helpful for fixing this issue. The spec says a service should send SRV records along with PTR records. But in reality some service don't do that. Hence this function was added. I cannot find spec forbidding such queries. Let me know if I missed some part of the spec.
One thing I'd like to do is to limit such query only for the domains being queried, something like the refreshing logic: Line 504 in 95e411b
This will avoid querying random services on the network and reduce potential security issues. We can also adjust the wait time before querying.
We can limit the number of such queries for a given service, say up to twice. |
I've opened a PR to solve this issue. If possible, please let me know if the patch would work for you. Thanks! |
Sorry for the rather short reporting. I think querying for SRV is fine. But your observation is correct, it might not be fruitful to do so when it's not within the TY that we're browsing for. Also, what if the device that fails to initially send a SRV response never does? I wont be able to properly test the PR this year, due to being out of office, but I'm pretty sure that the PR is a good shot, and what is expected of the package. |
no problem.
With the PR, we will stop querying for SRV after two attempts, and the service instance will not be resolved.
Thanks for reviewing the PR. No problem, I will also try to add a test case. |
refactored the patch and did manual tests. Merged the patch. Take it for a spin when you have time in new year ;-) |
I've experienced some trouble in the latest release with the above function, and just wondering if additional querying of SRV entries are within spec?
What happens is that the SRV query within the function above is very aggressive, and if a SRV never comes it will spam the network.
There should probably be a stopping mechanism if no answer hits the cache?
The text was updated successfully, but these errors were encountered: