From: Brian W. <bwe...@xb...> - 2006-07-20 17:44:55
|
On Thu, 20 Jul 2006, Giuseppe Avvinti wrote: > my next effort will be to write a mediation agent between a bind9 dns > issuing NAPTR records queries and a fictiotious DB that contains some > testing data. > > I'm looking for some stuff that can ease the task of writing the DNS > listening interface (the one that receives queries from a NS that > couldn't resolve the data he's been asked first) instead of writing it > from scratch starting from RFC1034-1035 and so on ... > > I've successfully used your dnsjava for a test client that makes a NAPTR > lookup to my local bind9 installation (though the test client was only > slightly different than the one you propose as an example). > > My question is: does dnsjava also supports the task I'm going to > implement ? I've looked into the documentation but nothing catched my > attention in this respect (something else, like the overall quality of > the project did instead) ? I'm not sure exactly what it is that you're trying to do, so it's hard to say if dnsjava supports the necessary functionality. dnsjava definitely supports parsing queries and generating responses. There's a sample implementation of a DNS server included (jnamed), but it's not robust to be used on its own, and is better used as a guide of how to use the various classes more relevant to serving data. Brian |