----- Original Message ----- 
From: "Jeff Newmiller" <[EMAIL PROTECTED]>
To: "Christian HOSTELET" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, January 22, 2004 9:37 PM
Subject: Re: [leaf-user] machine access by hostname


> On Thu, 22 Jan 2004, Christian HOSTELET wrote:
>
> > Hello,
> >
> >    Isn't it sufficient to add
> >
> > host hostname {
> >    hardware ethernet ....
> >    }
> >
> > to get "hostname" known to dns ?
> > No need to fix the IP address;
>
> Short answer: no.
>
> Long answer: dhcpd doesn't actively share information with dns.  By fixing
> the ip address, you obtain a common reference you can put in tinydns,
> BIND, or whatever other dns service you happen to run.
>
> --------------------------------------------------------------------------
-
> Jeff Newmiller                        The     .....       .....  Go
Live...
> DCN:<[EMAIL PROTECTED]>        Basics: ##.#.       ##.#.  Live
Go...
>                                       Live:   OO#.. Dead: OO#..  Playing
> Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
> /Software/Embedded Controllers)               .OO#.       .OO#.
rocks...2k
> --------------------------------------------------------------------------
-
>
>
>

So I have to give...

Different answer: maybe

In fact this is what I've done with 'dhcpd.lrp' and 'dnsmasq.lrp'

/etc/dhcpd.conf contains:

+++++++
default-lease-time 1728000;
max-lease-time 3456000;
allow unknown-clients;
allow bootp;
allow booting;
option routers 192.168.1.254;
option domain-name "maison.mrs";
option domain-name-servers 192.168.1.254;
option ntp-servers 192.168.1.254;

subnet 192.168.1.0 netmask 255.255.255.0 {
   range 192.168.1.1 192.168.1.200;
   }

group {
   use-host-decl-names on;
   host host01 { hardware ethernet 00:50:bf:27:b6:c6; }
   host host02 { hardware ethernet 00:00:21:2c:c2:61; }
}
++++++


and /etc/dnsmasq.conf contains:

++++++
resolv-file=/etc/dhcpc/resolv.conf
++++++

This is being done with Bering-uClibc V2.0 (soon V2.1) but I don't know:
 - if this is a corner case which may disappear in the future
 - if 'dnsmasq.lrp' would be the appropriate package for the intial question

--
Christian - Grenoble





-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
------------------------------------------------------------------------
leaf-user mailing list: [EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/leaf-user
SR FAQ: http://leaf-project.org/pub/doc/docmanager/docid_1891.html

Reply via email to