Xceptance / XLT

XLT is an comprehensive load and performance test tool developed and maintained by Xceptance. It features extensive ready-to-use reporting.
https://www.xceptance.com/xlt/
Apache License 2.0
62 stars 11 forks source link

UnknownHostException with dnsjava-based host name resolver #220

Closed jowerner closed 2 years ago

jowerner commented 2 years ago

XLT may use dnsjava as an alternative DNS resolver. The dnsjava-based implementation queries either one of the configured name servers or the system's default name server if no specific server was configured. The latter does not work reliably on Windows so dnsjava might end up with no name server, resulting in an UnknownHostException. Happens since #24.

Workaround: Configure a name server as follows.

xlt.dns.providers.dnsjava.resolver.servers = 8.8.8.8
jowerner commented 2 years ago

Since version 3.x, dnsjava asks Windows via a native API to get the platform name server. To this end, it uses the jna library. Since jna is just an optional dependency of dnsjava, it does not make it into XLT automatically. We have to ensure that it is deployed alongside dnsjava.