From: Brian W. <bwe...@xb...> - 2005-08-08 17:05:51
|
On Mon, 8 Aug 2005, Stefan Groschupf wrote: > i wish to use javadns to fix some bottleneck my webcrawler has with dns. > Actually I would love to test the usage of javadns as alternative > implementation of sun.net.spi.nameservice.NameService. > > I notice that Paul Cowan is one of the authors of > org.xbill.DNS.spi.DNSJavaNameService. > Since I had seen a older implementation of this interface from Paul that > supports some properties > (http://buzzsurf.com/java/dns/doc/com/buzzsurf/dns/DNSJavaNameService.html) > I asking my self if this properties are still supported but may not > documented. The included name services provider uses the: sun.net.spi.nameservice.nameservers sun.net.spi.nameservice.domain java.net.preferIPv6Addresses as documented. > I'm very interested to provide a set of DNS servers and the possibility to > load balance in a round robbing style, can this somehow configured just by > system properties or do I need to code it myself somehow. Setting the servers can be done using system properties. To enable round-robin load balancing, you'd need to write code which called Lookup.getDefaultResolver() to obtain the default Resolver object and ExtendedResolver.setLoadBalance() to enable load balancing. Brian |