Hi,
I'm using dnsjava client to benchmark a cluster of DNS
servers (using also CLIF load injection framework).
Dnsjava client library is performing pretty well - the
best Java library I found (thanks guys!), but I need to
use a great number (thousands) of client IP addresses
to emulate a real usage of DNS. This is particularly
important regarding load balancing policies. To achieve
this with a reduced set of computers, I use IP aliasing.
Please find attached 4 modified source files which
allow to specify a local client socket address to be
used for SimpleResolver queries, plus - FYI - one
source file from CLIF project which gets all local
available IP addresses.
Thanks again and best regards,
-- Bruno Dillenseger.
code for enhancement
Logged In: YES
user_id=63197
Thanks for the patch!
I'm adding code based on it, but not exactly like it - the
UDPClient and
TCPClient classes are getting bind() methods (and a new
version of sendrecv()), and the SimpleResolver class is
getting setLocalAddress(), as well as setAddress().
Ticket moved from /p/dnsjava/patches/10/