[prev in list] [next in list] [prev in thread] [next in thread] 

List:       netbsd-tech-net
Subject:    Re: DNS client
From:       Kamal Prasad <kamalpr () yahoo ! com>
Date:       2002-06-14 1:53:29
[Download RAW message or body]

looks like I need to clarify things a bit.
I meant libc. the code in libc is undocumented.
I need a method to extract IP address from the answer.
thanks
-kamal

--- Kamal Prasad <kamalpr@yahoo.com> wrote:
> Hello,
>  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).]
> thanks
> -kamal
> 
> 
> __________________________________________________
> Do You Yahoo!?
> Yahoo! - Official partner of 2002 FIFA World Cup
> http://fifaworldcup.yahoo.com


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic