You could look at the netboot sources:-
http://www.han.de/~gero/netboot/files/netboot-0.8.1.tar.gz
then look in netboot/bootrom/kernel/arpa/resolve.c
This is a very minimal implementation of a resolver.
from tom
> -----Original Message-----
> From: Juan Carlos Castro y Castro [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 25, 1999 11:07 PM
> To: Linux Net List
> Subject: Simple DNS query
>
>
> I tried to browse the RFCs and went insane. Now that I'm back from the
> padded room (with the unvaluable help from this pink elephant right
> beside me) I'd like to ask you a question:
>
> I want to write a VERY small, VERY dumb function that just asks one
> query to one DNS server: What's (if any) the address of host
> thishost.thisdomain.xx? Yes, I want a minimalist gethostbyname (for an
> internet-enabled small device).
>
> Its parameters should be the IP of the DNS server and the fully
> qualified host name. I'd like the server to go fetch the address on
> others servers it knows about. What do I do?
>
> Thanx all,
> --
> ___THE___
> \ \ / / NATO Smart Weapons: Powered by Microsoft!
> \ V / ___________________________________________________
> \ / | Juan Carlos Castro y Castro - [EMAIL PROTECTED] |
> / \ | IT Manager & Unnatural Events Director of |
> / ^ \ | E-RACE CORPORATION |
> / / \ \ ---------------------------------------------------
> ~~~ ~~~
> RACER
> -
> To unsubscribe from this list: send the line "unsubscribe
> linux-net" in
> the body of a message to [EMAIL PROTECTED]
>
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]