From: Sreenivasa M. <mul...@ho...> - 2006-10-26 19:51:41
|
Brian, I am sorry to hear this. Actually I am able to add the entry. I did read your examples. I grabbed the code from there only. Here is the code I am using Name zoneName = Name.fromString(zone); Name host = Name.fromString("www.junk.com", zoneName); Update update = new Update(zoneName); update.add(host, Type.PTR, 3600, ipAddress); org.xbill.DNS.Resolver res = new SimpleResolver("10.240.2.21"); res.setTCP(true); Message response = res.send(update); Here are the results Expected one 1 PTR v000f9fd9a094.vo.test.net. Got like this PTR 195.187.195.1 Thanks in advance Regards Sri >From: Brian Wellington <bwe...@xb...> >To: Sreenivasa Mulakala <mul...@ho...> >CC: dns...@li... >Subject: Re: DNSJAVA Help >Date: Thu, 26 Oct 2006 12:29:51 -0700 (PDT) > >I'm sorry, but I'm not going to help you if you persist in not reading the >example code. There's absolutely no reason for you to be constructing byte >arrays manually to create DNS records when there are perfectly good methods >to create records from either Strings or native objects. > >Brian |