Я создаю быстрый поисковый робот, и мне нужно иметь многопоточное разрешение DNS, поэтому я выбрал поставщика услуг многопоточного DNS под названием dnsjava . К сожалению, могу functionality:
Beginning with Java 1.4, service providers can be loaded at runtime. To load the dnsjava service provider, build it as explained above and set the system property:
sun.net.spi.nameservice.provider.1=dns,dnsjava
This instructs the JVM to use the dnsjava service provide for DNS at the highest priority.
There are a couple of things that I'm unclear on:
I'm running on a Windows 7 machine and I'm not sure what I need to do to find/modify the system properties... help!?
Update:
Got it: System.setProperty("sun.net.spi.nameservice.provider.1","dns,dnsjava");