-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Added drill command to get_a[aaa]_record() for local hostname #2417
Conversation
For testing in my case I don't have hosts with name
But the answer section has the IP correctly. With
Then, when running testssl.sh via docker, with So, this would work for our case, but maybe we should handle these errors from |
Probably it would help to redirect stderr to /dev/null for drill as for dig with the inner round brackets. As a result of an error $ip6 and $ip4 should be empty, so this is where we could add a message like |
PS: neither /n/or probably would sound better |
Ok thanks, that works but I'd prefer that the script continues with a standard DNS query, instead of forcefully existing with fatal error. To be honest I was not sure if having .local hosts in our network but without using mDNS is correct from the point of view of standards, I'm having a look and apparently it can be fine to use both multicast and unicast DNS according to this RFC: https://datatracker.ietf.org/doc/html/rfc6762#:~:text=Implementers%20MAY%20choose%20to%20look%20up%20such%20names%20concurrently%20via%20other%0A%20%20%20mechanisms%20(e.g.%2C%20Unicast%20DNS)%20and%20coalesce%20the%20results%20in%20some%0A%20%20%20fashion. So if you agree I was going to add a line like you mentioned but with warning instead of fatal, how could it be better to do it with the current functions? |
Good point. Seems I remembered that differently, (as your link didn't work for me at least as intended: Implementers MAY choose to look up such names concurrently via other mechanisms (e.g., Unicast DNS) and coalesce the results in some fashion. Sigh, sounds unusually a bit wishy-washy to me but so be it. But then at least lets add a debug statement like |
…ion failure, fixed some spelling
@drwetter I pushed one more commit with the changes we talked about, but the CI check seems to fail because of network error, particularly when connecting to badssl.com (104.154.89.105), could it have been a problem with that service itself? Maybe can we retry the CI action to double check? Thanks |
yes, thanks. Experienced the same yesterday too and re-run the job. If you push the suggested change it'll run again and we'll see whether I have to push the button again |
Thanks a lot, @vsbs-david ! |
When the hostname ends with
.local
, the functionsget_a_record
andget_aaaa_record
expect that commandavahi-resolve
ordig
are available to resolve, but they are not in the docker image. However we havedrill
available, so we can use it as an alternative as mentioned in #2378 (comment)