Details
Description
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<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
[/code]
changed to :
[code]
public List<ResourceRecord> getRecords( QuestionRecord question ) throws DnsException;
[/code]
also I changed RecordStoreStub.java ,
and org.apache.directory.server.dns.service.GetResourceRecords.java
[code]
public Set<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
{
Set<ResourceRecord> records = null;
[/code]
changed to :
[code]
public List<ResourceRecord> getEntry( RecordStore store, QuestionRecord question ) throws DnsException
{
List<ResourceRecord> records = null;
[/code]
Then i can query ordered multiple resource record answers
Pleanse Fix this bug