|
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.
|