DNS programming

Barry Margolin barmar at bbnplanet.com
Wed Sep 1 14:12:16 UTC 1999


In article <37CC55A1.1CC7D16B at americasm01.nt.com>,
Michael Sedlak <michael.sedlak at gmx.at> wrote:
>I want to know in which format all parameters are put into this
>character string. (I am programming in C/C++)
>For example: qr is a boolean value, true or false. Is it written as one
>character like "0"/"1" or "t"/"f" or together with other parameters into
>one character to save space? How is a 16bit-integer written into the
>query message? Are all of the 16 bits written separately (e.g.
>0000111010100011) or as a two-character-value?

The precise layout of DNS packets is described in RFC 1035.

>I would appreciate it very much if anybody could answer my questions.
>When you know any web-address where I can find source code dealing with
>this, please tell me so.

BIND comes with full source code.

RFC's are available at www.rfc-editor.org, and BIND is available at
www.isc.org.

-- 
Barry Margolin, barmar at bbnplanet.com
GTE Internetworking, Powered by BBN, Burlington, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.


More information about the bind-users mailing list