TripShock
TripShock

Reputation: 4249

Simple DNS Server API

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

Answers (3)

rajeshnair
rajeshnair

Reputation: 1673

If you are open to C/C++ libraries, take a look at ldns and libunbound; both from NlNetLabs.

Upvotes: 0

Jesper
Jesper

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

monksy
monksy

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]

RFC DNS

About DNS

JDNSS may be what you are looking for. It is hosted on SF and it is opensource.

Upvotes: 2

Related Questions