dnsjava provides several command line programs, which are documented here.
For examples of API usage, see examples.html.
A clone of dig (as distributed with BIND)
dig @server [-x] name type [class] [-p port] [-k name/secret] [-t] \
[-i] [-e n] [-d]
-x : reverse lookup, name must be a dotted quad
-k : use TSIG transaction security
-t : use TCP by default
-i : ignore truncation errors
-e n: Use EDNS level n (only 0 is defined)
-d : Set the DNSSEC OK bit
A dynamic update client with some extra functionality. This can be
used either interactively or by specifying a file containing commands
to be executed. Running 'help' lists all other commands.
A basic authoritative only (non-caching, non-recursive) server. It's
not very good, but it's also a whole lot better than it used to be.
The config file (jnamed.conf by default) supports the following
primary <zonename> <masterfile>
secondary <zonename> <IP address>
key [algorithm] <name> <base 64 encoded secret>
address <IP address>
port <port number>
If no addresses are specified, jnamed will listen on all addresses,
using a wildcard socket. If no ports are specified, jnamed will
listen on port 53.
The following is an example:
primary internal /etc/namedb/internal.db
secondary xbill.org 127.0.0.1
key xbill.org 1234
jnamed should not be used for production, and should probably
not be used for testing. If the above documentation is not enough,
please do not ask for more, because it really should not be used.
A simple program that looks up records associated with names.
If no type is specified, address lookups are done.
lookup [-t type] name ...