How to fetch all DNS entries from JAVA application?
问题 As of now, I'm using the below code to get DNS name of the given IPAddress. Instead of fetching it for each IPAddress in the network, I want to fetch all the DNS entries (IPAddress - HostName mapping) from the DNS Server in one go. Is it possible? If so, how to do it? InetAddress addr = InetAddress.getByName(address); dnsname = addr.getCanonicalHostName().trim(); 回答1: From a public DNS server, there is no way to pull out all the data it holds. Enumerating all the IP addresses one by one is