Simple DNS Server API

Is there any API that I can use to create a simple DNS server, preferably in Java? All I want my DNS server to do is respond with the same IP address for any query.

+3
source share
3 answers

The DNS protocol is pretty simple, all you need is the ability to catch UDP requests. Once you have captured the query, you will use the appropriate response or iterative / recursive methods to get the unusual DNS records. [This 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 open source.

+2

DNS-, IP- , Simple DNS Plus "Fixed IP Address". . http://www.simpledns.com/kb.aspx?kbid=1261

+1

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

0
source

Source: https://habr.com/ru/post/1722759/


All Articles