lwip-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [lwip-users] Usage example for DNS client (resolv.c)


From: Goldschmidt Simon
Subject: RE: [lwip-users] Usage example for DNS client (resolv.c)
Date: Tue, 19 Jun 2007 15:08:36 +0200

> The following is one of the places where I am using the DNS 
> functionality - I'm posting it as an example for others who 
> wish to integrate it. 
> 
> The resolv_init() function must be called with the IP address 
> of your DNS server before any lookups are performed. (You 
> don't want to call this more than once unless your DNS server 
> IP changes, except if you also want to delete any cached 
> entries in the local table).
> 
> Remember you must add a call to resolv_tmr() so it runs 
> approximately once a second in your timer routine - that is 
> what actually triggers any pending queries to be processed.
> 
> Hope you find it useful,

Nice code and I'd find it usefule to integrate into the stack.
Under which license is this DNS client available? Are we allowed
to integrate it in the core of lwIP (or add it in CVS contrib)?

Simon




reply via email to

[Prev in Thread] Current Thread [Next in Thread]