AW: [En-Nut-Discussion] Sending Host name to DHCP server

Harald Kipp harald.kipp at egnite.de
Wed Mar 3 10:08:34 CET 2004


Oliver and Damian,

In general I agree that the hostname is indeed
a missing item in the configuration.

I second Oliver's view, that the basic hostname
should be independant from a network and belongs
to confos.

But I cannot follow Oliver's interpretation of
a boot problem. There is no real difference
wether DHCP takes the hostname out of the confnet
or confos structure. Except, that the confnet
structure should keep one individual entry per
interface and would allow different hostnames
for different interfaces.

Anyway, I think the hostname should be in confos,
the domain name may be added to confnet. If it
would make sense to store the domain name in
EEPROM. May be in situations, where DHCP isn't
available temporarily.

Harald

At 09:36 03.03.2004 +0100, you wrote:
>Hi Damian,
>
>your choice to take confnet.cd_name as ethernut's host name is a little
>bit unlucky.
>What happens, if somebody has more than one ethernut in his LAN? The
>last booted ethernut is the winner in dns...
>
>Next possibility is to have a separate field in confnet structure to
>store the host name. But does it make sense to relate the host name to a
>device configuration?
>
>So I suggest to have the hostname stored in confos stucture, because the
>host name is a kind of global setting and should not depend on any LAN
>or PPP device.
>Harald, what do you think?
>
>Cheers,
>Oliver.
>
> > -----Ursprungliche Nachricht-----
> > Von: en-nut-discussion-bounces at egnite.de
> > [mailto:en-nut-discussion-bounces at egnite.de]Im Auftrag von Damian Slee
> > Gesendet: Mittwoch, 3. Marz 2004 08:11
> > An: Ethernut User Chat (English)
> > Betreff: [En-Nut-Discussion] Sending Host name to DHCP server
> >
> >
> > Hi all,
> >
> > I added this to DhcpRequest() thinking I could use confnet.cd_name to
> > store a local host name.  Found out quickly that confnet.cd_name holds
> > the device name "eth0".  So my DHCP server lease table now shows
> > "eth0.commtech.com.au" :-)  Better than "" I guess.
> >
> > Does any one have a need for a proper host name field?
> > And a valid name entry in their dhcp server lease table?
> >
> > Maybe it can be added to the confnet structure, or standard ethernut
> > eeprom structure some where?
> >
> > MS DHCP server can register the name using dynamic DNS to MS DNServer.
> > Haven't got it to work yet tho.
> >
> > Comments please...
> >
> > damian
> >
> > --------------------------------------------------------------
> > /* Pass host name if specified in confnet structure.  */
> > /* viewing DHCP lease table shows something sensible. */
> > len = strlen(confnet.cd_name);
> > if (len > 0)  {
> >       optlen += DhcpAddOptionFromRAM(op + optlen, DHCPOPT_HOSTNAME,
> > confnet.cd_name, len);
> > }
> >
> > _______________________________________________
> > En-Nut-Discussion mailing list
> > En-Nut-Discussion at egnite.de
> > http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion
> >
>_______________________________________________
>En-Nut-Discussion mailing list
>En-Nut-Discussion at egnite.de
>http://www.egnite.de/mailman/listinfo.cgi/en-nut-discussion




More information about the En-Nut-Discussion mailing list