On Linux, Java issues reverse DNS lookups when a socket is opened. Why, and how can I stop it?
问题 We are experiencing a quite weird behaviour on Linux w.r.t. Java DNS lookups (update: happens also on Mac OS X—I was wrong). We set the Google public DNS server 8.8.8.8 as the JVM DNS server. The system (/etc/resolv.conf) server, however, remains out standard server ghost.di.unimi.it. When an address is looked up using InetAddress.getAllByName() or DNSJava's Addess.getAllByName(), everything works as expected (in particular, this is DNSJava): 01:39:11.832438 IP nexus.law.di.unimi.it.33195 >