MiniDNS is a minimal dns client library for Java and Android.
It can parse a basic set of resource records (A, AAAA, NS,
SRV) and is easy to use and extend.
This library is not intended to be used as a DNS server.
You might want to look into dnsjava for such functionality.