directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "lizongbo (JIRA)" <j...@apache.org>
Subject [jira] Created: (DIRSERVER-1092) org.apache.directory.server.dns.store.RecordStore not support ordered multiple resource record answers
Date Wed, 31 Oct 2007 09:06:50 GMT
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


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 :) 




-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message