Subject: DNS client
To: None <>
From: Kamal Prasad <>
List: tech-net
Date: 06/13/2002 18:50:12
 I have written a piece of code that replicates lib
functionality for sending a dns query to the
nameserver. the code is either undocumented or
cryptic(possibly both). 
I am trying to extract the ip address returned by the
name server. the field past the HEADER in the response
contains the domain name. can someone give me the code
to do that (or point me to the reqd. C file)?
[Note:- client sends domain name with QUERY and type
T_A, Class =1 and gets the answer that says rcode=0,
ancount=1 (ie its a valid answer).]

Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup