|
From: | Juri Haberland |
Subject: | Re: RE : [lwip-users] Device name |
Date: | Thu, 18 Oct 2007 10:25:26 +0200 |
User-agent: | Thunderbird 2.0.0.6 (X11/20070728) |
Nicolas Pinault wrote:
And I suppose you don't want to define "lwip_device" in your HOSTS file ?Of course not.Note that an lwIP device using DHCP (with LWIP_NETIF_HOSTNAME=1) could register its name in a DNS (with DHCP/DNS Windows Server, but I suppose for the same exist on Linux), so, client using this DNS could do such ping.I already use DHCP with a device name. I can see the device name in DHCP server table (WIN NT 4.0 server). But I can't ping on this name.In some situations, I don't have a DHCP server.
To ping a device via a name ('ping my-device' instead of 'ping 192.168.1.2') you need a name-to-IP-address service. This is usually done with DNS, or in simpler cases, with just an entry in a hosts file on every machine that should be able to resolve the name to an IP address. As S. Ali Tokmen wrote, NetBIOS name service can do similar things, but I would not use such an out-dated mechanism, which is OS specific, too. That's what DNS was invented for.
If you want to update/alter DNS entries dynamically, you should use dynamic DNS updates. See RFC 2136.
Cheers, Juri PS: '_' is not a valid character in terms of DNS host names...
[Prev in Thread] | Current Thread | [Next in Thread] |