|
From: | Bob Brusa |
Subject: | Re: [lwip-users]Hostname for DHCP - where is it specified? |
Date: | Wed, 01 Dec 2010 08:47:43 -0000 |
User-agent: | Opera Mail/10.63 (Win32) |
Am 20.09.2010, 17:49 Uhr, schrieb Simon Goldschmidt <address@hidden>:
Kieran Mansley <address@hidden> wrote:Well, DHCP does support for the client to report a name to the server, but the server must be specially configured to pass this on to a DNS server. It could very well be that your router supports this, but as Kieran said, this is not really a part of DHCP.On Mon, 2010-09-20 at 14:32 +0000, Bob Brusa wrote:Fine, adding netbios helped. Now I can get into contact with my board, running a corresponding program on my PC that uses the NETBIOSNAME to connect. However, Zyxel still does not know the name of my board - which obiously allows my Win-XP program to connect with my board. Has anybody a hint what is missing?If you want a more general solution than netbios naming you need to update your DNS server with the IP address and name that have been given to your board. DHCP doesn't do this - it is just responsible for giving the IP address to the board, not for updating the DNS server.However, to test this, you can enable passing on a name by setting LWIP_NETIF_HOSTNAME to 1 and setting the name via netif_set_hostname().Simon
After working on some other things, I come back to this issue.I feel that something is not as it should be with my lwip. I can find nowhere in the h-files a function netif_set_hostname. I find the parameter LWIP_NETIF_HOSTNAME, but it is undefined. On the other hand, there is a parameter CYGIMP_LWIP_NETIF_HOSTNAME in net_lwip.h (and I defined it in config as 1). However, as far as I can see, this parameter is used nowhere. I am tempted to assume, that there is a naming problem - two names for something that should be uniquely named? I am working with ecos, but I am not sure which version of lwip it includes. The last checkout (ecos)I did was sometimes this spring..... Prior to delving into further details: What is your opinion about this?
Robert
[Prev in Thread] | Current Thread | [Next in Thread] |