Query Examples

Barry Margolin barmar at bbnplanet.com
Mon Feb 14 19:16:23 UTC 2000


In article <34Xp4.3919$nu4.170625 at news.flash.net>,
David M. Holmes <nospam_david_m_holmes at yahoo.com> wrote:
>I'm a programmer trying to do host lookups for IP addresses like you can
>with nslookup. I need to do this within a program. I can connect to port 53

Why don't you use the resolver library?

>of a DNS server but I cannot find info on how the format or how to submit
>queries to the server. I've looked through the RFCs on DNS but only found
>server info. Anyone know where to find this info? TIA.

RFC 1035 contains the complete spec of the DNS protocol.  If you looked
through the RFCs I don't know how you could have missed this.

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