开发者

Simple *Authoritative DNS Server* in Java

Is there an already written Java DNS Server that only implements authoritative responses. I would like to take the source code and move it into a DNS server we will be developing that will use custom rule sets to decide what TTL to use and what IP address to publish.

The server will not be a caching server. It will only return authoritative results and only be published on the WHOIS record for the domains. It will never be called directly.

The ser开发者_开发技巧ver will have to publish MX records, A records and SPF/TXT records. The plan is to use DNS to assist in load balancing among gateway-servers on multiple locations (we are aware that DNS has a short reach in this area). Also it will cease to publish IP addesses of gateway-servers when they go down (on purpose or on accident) (granted, DNS will only be able to help during extended outages).

We will write the logic for all this ourselves.. but I would very much like to start with a DNS server that has been through a little testing instead of starting from scratch.

However, that is only feasible if what we copy from is simple enough. Otherwise,, it could turn out to be a waste of time


George,

I guess what you need is a java library which implements DNS protocol. Take a look at dnsjava

This is very good in terms of complete spec coverage of all types of records and class.

But the issue which you might face with a java based library is performance. DNS servers would be expected to have a high throughput. But yes, you can solve that by throwing more hardware.

If performance is a concern for you , I would suggest to look into unbound


http://www.xbill.org/dnsjava/

Unfortunately, the documentation states "jnamed should not be used for production, and should probably not be used for testing. If the above documentation is not enough, please do not ask for more, because it really should not be used."

I'm not aware of any better alternatives, however.


You could take a look at Eagle DNS: http://www.unlogic.se/projects/eagledns

It's been around for a few years and it's quite well tested by now.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜