[Top][All Lists]

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

RE: [lwip-users] Integrate DNS into LWIP main code

From: Pettinato, Jim
Subject: RE: [lwip-users] Integrate DNS into LWIP main code
Date: Mon, 1 Jun 2009 08:26:08 -0400

Hello Deepa,
Which API are you using?
You may want to read up on the DNS client functionality on the lwIP wiki:
- Jim

James M. Pettinato, Jr.

Software Engineer

FMC Technologies Measurement Solutions Inc.
1602 Wagner Avenue | Erie PA | 16510 USA


From: address@hidden [mailto:address@hidden On Behalf Of Menon, Deepa
Sent: Monday, June 01, 2009 8:15 AM
To: address@hidden
Subject: [lwip-users] Integrate DNS into LWIP main code



I want to start DNS client in my web server application and get a netbios name ‘ABC’ for my server.

I have added dns.c in my project.  I have DHCP implemented in the application but I am struggling to start the DNS application.

Can anyone please help me by providing a method to start the DNS application along with DHCP.


I am using the following settings to start DHCP and get an IP address for the embedded web server in my application.


1                     Following two lines are added in lwipopts.h file.

#define LWIP_DHCP               1

                   #define DHCP_DOES_ARP_CHECK     1


2.                   Following code is added to after lwIP_Init():


                   #ifdef LWIP_DHCP


                        while (EMAC_if.ip_addr.addr == 0)




                                    mscnt += DHCP_FINE_TIMER_MSECS;

                                    if (mscnt >= DHCP_COARSE_TIMER_SECS*1000)



                                                mscnt = 0;







Deepa M

Honeywell Technologies

reply via email to

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