From: Jihane <jbe...@ho...> - 2010-03-26 10:52:06
|
Hello Brian, I'm a student in an engineering school. As a part of my training, I need to develop a new resource record type in dnsjava. Firstly, i have created a class which defines this new type. This latter is extends Record class. After that, I have run the jnaned server on my computer and registered a name and its corresponding information of this new type. Unfortunately, when I did a lookup for this type or the AAAA record type, I didn't get an answer even if these RRs exist in .db. PS: I added in class Type this new type. Have you an explanation for this problem? If the server does not recorgnize this new type.In which class i need to add information about this new type (jnamed for instance)? because it doesn't work also for AAAA Record type. Thank you in advance, Cheers Jihane -- View this message in context: http://old.nabble.com/Developping-a-new-record-type-in-dnsjava-tp28040758p28040758.html Sent from the dnsjava-users mailing list archive at Nabble.com. |
From: Brian W. <bwe...@xb...> - 2010-03-26 21:26:15
|
On Mar 26, 2010, at 3:52 AM, Jihane wrote: > I'm a student in an engineering school. As a part of my training, I need to > develop a new resource record type in dnsjava. Firstly, i have created a > class which defines this new type. This latter is extends Record class. > After that, I have run the jnaned server on my computer and registered a > name and its corresponding information of this new type. Unfortunately, when > I did a lookup for this type or the AAAA record type, I didn't get an answer > even if these RRs exist in .db. > > PS: I added in class Type this new type. > > Have you an explanation for this problem? > > If the server does not recorgnize this new type.In which class i need to add > information about this new type (jnamed for instance)? because it doesn't > work also for AAAA Record type. All that should be needed to add a new type is to implement a class which extends Record and add the appropriate initialization to the Type class. If AAAA records also aren't working, then you're likely doing something else wrong, but I have no idea what it is. Brian |
From: Jihane <jbe...@ho...> - 2010-03-29 07:55:55
|
Hello Brian, Thank you for taking time to respond to my email. Yes it works for AAAA record. But, it doesn't work for the new type. I have implemented a class ( new type) which extends Record class and added the initialization to the type class as you said. when i have run jnamed class i got the following error: org.xbill.DNS.Tokenizer$TokenizerException: movie.db:3: invalid unknown RR encoding Have you any idea to solve this problem? Thank you for your helping, cheers, Jihane Brian Wellington wrote: > > > On Mar 26, 2010, at 3:52 AM, Jihane wrote: > >> I'm a student in an engineering school. As a part of my training, I need >> to >> develop a new resource record type in dnsjava. Firstly, i have created a >> class which defines this new type. This latter is extends Record class. >> After that, I have run the jnaned server on my computer and registered a >> name and its corresponding information of this new type. Unfortunately, >> when >> I did a lookup for this type or the AAAA record type, I didn't get an >> answer >> even if these RRs exist in .db. >> >> PS: I added in class Type this new type. >> >> Have you an explanation for this problem? >> >> If the server does not recorgnize this new type.In which class i need to >> add >> information about this new type (jnamed for instance)? because it doesn't >> work also for AAAA Record type. > > All that should be needed to add a new type is to implement a class which > extends Record and add the appropriate initialization to the Type class. > If AAAA records also aren't working, then you're likely doing something > else wrong, but I have no idea what it is. > > Brian > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > dnsjava-users mailing list > dns...@li... > https://lists.sourceforge.net/lists/listinfo/dnsjava-users > > -- View this message in context: http://old.nabble.com/Developping-a-new-record-type-in-dnsjava-tp28040758p28065987.html Sent from the dnsjava-users mailing list archive at Nabble.com. |
From: Brian W. <bwe...@xb...> - 2010-03-29 18:34:54
|
On Mar 29, 2010, at 12:55 AM, Jihane wrote: > > Hello Brian, > > Thank you for taking time to respond to my email. Yes it works for AAAA > record. But, it doesn't work for the new type. I have implemented a class ( > new type) which extends Record class and added the initialization to the > type class as you said. when i have run jnamed class i got the following > error: > > org.xbill.DNS.Tokenizer$TokenizerException: movie.db:3: invalid unknown RR > encoding > > Have you any idea to solve this problem? You probably missed adding the type initializer in the Type class. If not, there's not much I can tell you, since I don't have your code. Brian |
From: Jihane <jbe...@ho...> - 2010-03-30 16:48:08
|
Hello Brian, Thanks for responding to my email. Now, i need to add a resource record to the dnsjava server. the jnamed server is running on my computer. To accomplish that, i have developed the following code: ******************************************************************** System.out.println(AAAAsyn); Update up_add =new Update(Name.fromString("movie.edu.")); // zone up_add.add(AAAAsyn); Resolver res = new SimpleResolver("10.192.20.6"); // the IP address of my computer res.setTSIGKey(new TSIG(Name.fromString("xbill.org."), base64.fromString("1234")));// xbill.org. is the name of the key res.setTCP(true); Message response =res.send(up_add); System.out.println(response); ********************************************************************** the result is : robocop.movie.edu. 79210 IN 2001:db8:85a3:8d3:1319:8a2e:370:7334 ;; ->>HEADER<<- opcode: UPDATE, status: NOTIMP, id: 61392 ;; flags: ; qd: 0 an: 0 au: 0 ad: 0 ;; TSIG invalid ;; ZONE: ;; PREREQUISITES: ;; UPDATE RECORDS: ;; ADDITIONAL RECORDS: ;; Message size: 12 bytes As you ca see, the response message is empty. Have you a solution for this problem? and when i add an RR in the server. It can appears in .db file referenced in jnamed.conf? Thanks in advance for your help, cheers, Jihane Brian Wellington wrote: > > On Mar 29, 2010, at 12:55 AM, Jihane wrote: > >> >> Hello Brian, >> >> Thank you for taking time to respond to my email. Yes it works for AAAA >> record. But, it doesn't work for the new type. I have implemented a class >> ( >> new type) which extends Record class and added the initialization to the >> type class as you said. when i have run jnamed class i got the following >> error: >> >> org.xbill.DNS.Tokenizer$TokenizerException: movie.db:3: invalid unknown >> RR >> encoding >> >> Have you any idea to solve this problem? > > You probably missed adding the type initializer in the Type class. If > not, there's not much I can tell you, since I don't have your code. > > Brian > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > dnsjava-users mailing list > dns...@li... > https://lists.sourceforge.net/lists/listinfo/dnsjava-users > > -- View this message in context: http://old.nabble.com/Developping-a-new-record-type-in-dnsjava-tp28040758p28085293.html Sent from the dnsjava-users mailing list archive at Nabble.com. |
From: apple_5 <xy...@gm...> - 2013-05-16 11:12:24
|
Dear Jihane, I'm an engineering student and I need to develop something based on the dnsjava. I saw you said that you can run the jnamed server on your computer which I can't. I'm wondering can you tell me how you configured your jnamed.conf file. Thanks a lot, Xinyu Jihane wrote: > > Hello Brian, > > I'm a student in an engineering school. As a part of my training, I need > to develop a new resource record type in dnsjava. Firstly, i have created > a class which defines this new type. This latter is extends Record class. > After that, I have run the jnaned server on my computer and registered a > name and its corresponding information of this new type. Unfortunately, > when I did a lookup for this type or the AAAA record type, I didn't get an > answer even if these RRs exist in .db. > > > PS: I added in class Type this new type. > > Have you an explanation for this problem? > > If the server does not recorgnize this new type.In which class i need to > add information about this new type (jnamed for instance)? because it > doesn't work also for AAAA Record type. > > Thank you in advance, > > Cheers > > > Jihane > > > -- View this message in context: http://old.nabble.com/Developping-a-new-record-type-in-dnsjava-tp28040758p35404515.html Sent from the dnsjava-users mailing list archive at Nabble.com. |