Open rmavery opened 6 years ago
Apparently, Mono includes its own DNS resolver, and does funky things about it to speed up some cases of parallel name resolutions. A downside is that, in some cases, it will ignore some configuration files such as /etc/nsswitch.conf
and thus diverge from what you get with C-based tools (such as ping
). I also find some reports that it historically had some problems with nominally valid responses from the DNS.
You might want to try setting, or, conversely, unsetting the MONO_DNS
environment variable:
MONO_DNS=1
export MONO_DNS
or:
unset MONO_DNS
to see if it changes something.
Another workaround is to invoke TestSSLServer with the target IP address instead of name, and adding the intended server name with the -sni
option:
./TestSSLServer.exe 1.2.3.4 -sni theservername.domainname.tld
(assuming that the target server IP address is 1.2.3.4
). This should result in exactly the same bytes sent to the target server, thus obtaining the same information.
Installed on Ubuntu 16.04 LTS. Just trying to run check against an internal web server.
Compiled without errors.
When I run the command ...
./TestSSLServer.exe hostname.domain.local 443, I get a lengthy error message that basically boils down to.. "Could not resolve host..."
I verified my DNS settings.
I can ping the host from the shell, so I'm not sure what else I need to do to help it resolve.
I replaced my actual server name below with 'hostname' and the domain name with 'domain' The rest is exactly as it returned.