Reputation: 4249
Is there some API that I can use to build a simple DNS server, preferably in Java? All I want my DNS server to do is answer with the same IP address for any request.
Upvotes: 3
Views: 2475
Reputation: 1673
If you are open to C/C++ libraries, take a look at ldns and libunbound; both from NlNetLabs.
Upvotes: 0
Reputation: 903
If all you need is a DNS server returning the same IP address to every request, you can use Simple DNS Plus with the "Fixed IP Address" plug-in. See http://www.simpledns.com/kb.aspx?kbid=1261
Upvotes: 1
Reputation: 14234
The DNS protocol is fairly simple, all you need is the ability to catch UDP requests. Once you've captured the request you would then use the appropriate response, or iterative/recursive methods to get unfamilar DNS records. [That requires prior knowledge of DNS servers]
JDNSS may be what you are looking for. It is hosted on SF and it is opensource.
Upvotes: 2