[bind10-dev] 1.0.0 release details

JINMEI Tatuya / 神明達哉 jinmei at isc.org
Wed Feb 27 21:07:10 UTC 2013


At Wed, 27 Feb 2013 12:06:59 -0800 (PST),
"Waitman Gobble" <uzimac at da3m0n8t3r.com> wrote:

> I have this so far, it compiles but not sure if its correct, not sure yet how to make it do a lookup!
> 
>         ConstEDNSPtr edns;
>         Message *N = new Message(Message::RENDER);
>         Question Q(Name("isc.org"),RRClass("IN"),RRType("TXT"));
>         N->addQuestion(Q);
>         N->setEDNS(edns);

setEDNS is optional if you don't need to use EDNS.

You'll at least need to specify the Rcode and Opcode.

And you'll need to prepare wire-format data using a MessageRenderer
object.

You can find a workable (and simple) example in bind10/examples/host.
(It's not included in the release tar ball, so you'll need to get it
from the git repository).

---
JINMEI, Tatuya
Internet Systems Consortium, Inc.


More information about the bind10-dev mailing list