I don't know if this will work, but there are system properties
System.setProperty ("sun.net.spi.nameservice.nameservers", localhost); System.setProperty ("sun.net.spi.nameservice.provider.1", "dns, sun");
perhaps if you have a Java application that opens a port on the dns (53) port and processes the requests yourself.
, , DNS-.