Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 21617 invoked from network); 31 May 2010 10:05:17 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 31 May 2010 10:05:17 -0000 Received: (qmail 8979 invoked by uid 500); 31 May 2010 10:05:17 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 8926 invoked by uid 500); 31 May 2010 10:05:17 -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 Received: (qmail 8918 invoked by uid 99); 31 May 2010 10:05:17 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 10:05:17 +0000 X-ASF-Spam-Status: No, hits=-1994.7 required=10.0 tests=ALL_TRUSTED,URIBL_SBL,URI_HEX X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 31 May 2010 10:05:14 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o4VA4qCY002722 for ; Mon, 31 May 2010 10:04:53 GMT Message-ID: <20284998.82781275300292949.JavaMail.jira@thor> Date: Mon, 31 May 2010 06:04:52 -0400 (EDT) From: "Kiran Ayyagari (JIRA)" To: dev@directory.apache.org Subject: [jira] Updated: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers In-Reply-To: <11924395.1193821610652.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DIRSERVER-1092?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kiran Ayyagari updated DIRSERVER-1092: -------------------------------------- Moving to 2.0, currently DNS server is not activated > org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers > ------------------------------------------------------------------------------------------------------- > > Key: DIRSERVER-1092 > URL: https://issues.apache.org/jira/browse/DIRSERVER-1092 > Project: Directory ApacheDS > Issue Type: Bug > Components: dns > Affects Versions: 1.5.1 > Environment: Windows XP, apacheds-protocol-dns-1.5.1.jar > Reporter: lizongbo > Assignee: Enrique Rodriguez > Fix For: 2.0.0-RC1 > > > After I fix the bug : http://issues.apache.org/jira/browse/DIRSERVER-1091 > Then I create MyRecordStore to implements RecordStore, I add four record answers by Order ,but i can't get the ordered Result. > for example: > I start My Test Dns Server based on apacheds-protocol-dns-1.5.1.jar. > I want get four record like: > [code] > E:\bind>nslookup > > server 10.108.20.126 > Default server: 10.108.20.126 > Address: 10.108.20.126#53 > > 618119.com > Server: 10.108.20.126 > Address: 10.108.20.126#53 > Non-authoritative answer: > ns1.dnspod.net nameserver = 10.108.20.126. > ns2.dnspod.net nameserver = 10.108.20.123. > ns3.dnspod.net nameserver = 10.108.20.124. > ns4.dnspod.net nameserver = 10.108.20.125. > > > [/code] > but I can only get like: > [code] > E:\bind>nslookup > > server 10.108.20.126 > Default server: 10.108.20.126 > Address: 10.108.20.126#53 > > 618119.com > Server: 10.108.20.126 > Address: 10.108.20.126#53 > Non-authoritative answer: > ns2.dnspod.net nameserver = 10.108.20.123. > ns4.dnspod.net nameserver = 10.108.20.125. > ns3.dnspod.net nameserver = 10.108.20.124. > ns1.dnspod.net nameserver = 10.108.20.126. > [/code] > the ns1 was ordered by the last , This is not I want :( > So I changed org.apache.directory.server.dns.store.RecordStore.java > [code] > public Set getRecords( QuestionRecord question ) throws DnsException; > [/code] > changed to : > [code] > public List getRecords( QuestionRecord question ) throws DnsException; > [/code] > also I changed RecordStoreStub.java , > and org.apache.directory.server.dns.service.GetResourceRecords.java > [code] > public Set getEntry( RecordStore store, QuestionRecord question ) throws DnsException > { > Set records = null; > [/code] > changed to : > [code] > public List getEntry( RecordStore store, QuestionRecord question ) throws DnsException > { > List records = null; > [/code] > Then i can query ordered multiple resource record answers > Pleanse Fix this bug :) -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.