DNS queries in Java.
Here is some code from the vaults. I wrote this circa 1997 to support a Java-based email server that I wrote. I’m sure there are better/newer solutions available, but I hate to see code go to waste.
- DNSBrowse.java — A simple command-line client that uses the query classes.
- DNSService.java — The static class that supports setting server addresses and executing queries.
- DNSQuery.java — Wrapper class for encoding and decoding DNS query messages.
- DNSResourceRecord.java — Low-level class for decoding binary resource records into their components.
The source code is available for download as DNSQuery.zip.
