How to change the java DNS service provider

后端 未结 1 787
忘了有多久
忘了有多久 2020-12-31 20:07

I\'m building a fast web crawler and I need to have multithreaded DNS resolution, so I picked up a multithreaded DNS service provider called dnsjava. Unfortunately, I can\'t

相关标签:
1条回答
  • 2020-12-31 20:51

    A wild guess.

    1. Put the dnsjava.jar file in the classpath of your application.
    2. Have the system property set before launching the main method in your application.
    0 讨论(0)
提交回复
热议问题