Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 61120 invoked from network); 12 Jun 2007 20:41:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Jun 2007 20:41:05 -0000 Received: (qmail 86724 invoked by uid 500); 12 Jun 2007 20:41:08 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 86684 invoked by uid 500); 12 Jun 2007 20:41:08 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Delivered-To: moderator for dev@directory.apache.org Received: (qmail 78395 invoked by uid 99); 12 Jun 2007 14:31:43 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (herse.apache.org: local policy) Subject: DNS : RecordStore From: Julien Vermillard Reply-To: jvermillard@archean.fr To: dev@directory.apache.org Content-Type: text/plain Organization: Archean Date: Tue, 12 Jun 2007 16:35:58 +0200 Message-Id: <1181658958.24438.34.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.10.1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Hi ! I started to take a look at ADS DNS provider for fitting my very light needs. I simply got two questions : 1# In DNS protocol, the RecordStore interface http://tinyurl.com/2prg84 It would be nice to specify the returned Set type, like : public interface RecordStore { public Set getRecords( QuestionRecord question ) throws Exception; } Due to the lack of javadoc, it could improve the code readability ;) 2# I made my minimal RecordStore for just resolving few hostname to IP address. Be carefull, my knowledge of DNS is very low :) public Set getRecords(QuestionRecord question) throws Exception System.err.println("My store ! : "+question); Set set=new HashSet(); HashMap attr= new HashMap(); attr.put(DnsAttribute.DOMAIN_NAME,"mydomaine.net"); attr.put(DnsAttribute.IP_ADDRESS,"192.168.66.66"); attr.put(DnsAttribute.TYPE,"IN"); attr.put(DnsAttribute.CLASS,"A"); ResourceRecord rr=new ResourceRecordImpl("totoz.net", RecordType.A,RecordClass.IN,10000,attr); set.add(rr); return set; } dig report me "corrupted reply". Any idea of what I'm doing wrong ? Julien