Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 Apr 2002 09:37:17 -0700
From:      Luigi Rizzo <rizzo@icir.org>
To:        Nate Williams <nate@yogotech.com>
Cc:        arch@FreeBSD.ORG
Subject:   Re: proposed code: automatic setting of hostname from MAC address
Message-ID:  <20020409093717.B63338@iguana.icir.org>
In-Reply-To: <15539.5958.66973.551501@caddis.yogotech.com>
References:  <20020407035941.B37911@iguana.icir.org> <15538.12905.744914.71228@caddis.yogotech.com> <20020408235226.B57765@iguana.icir.org> <15539.3500.712066.51894@caddis.yogotech.com> <20020409092708.A63224@iguana.icir.org> <15539.5958.66973.551501@caddis.yogotech.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Apr 09, 2002 at 10:31:02AM -0600, Nate Williams wrote:
...
> > Why do you define it "non standard", and call "not standard"
> > the config files ?
> > + yes, in the picobsd version the MAC<->hostname mapping was in
> > /etc/hosts, but this will be moved to /etc/ethers which is the
> > standard place for this stuff;
> 
> /etc/ethers is for determining a network mask, not for determining a
> host's IP address.  Using it otherwise is non-standard.

aren't you mistaking it for /etc/networks ?

  > man 5 ethers
  Formatting page, please wait...Done.
  ETHERS(5)                 FreeBSD File Formats Manual                ETHERS(5)

  NAME
       ethers - ethernet address database

  DESCRIPTION
       The ethers database contains information regarding known 48-bit ethernet
       addresses of hosts on an Internetwork.  The data is stored in a file
       called /etc/ethers in the following format:

	     ethernet-address fully-qualified-host-name

       Items are separated by any number of blanks and/or tab characters.  A
       ``#'' at the start of a line indicates the beginning of a comment that
       extends to the end of the line.  A ``+'' at the start of a line will
       cause the ethers(3) library functions to use data stored in the NIS(4)
       ethers.byname and ethers.byaddr maps in addition to the data in the
       /etc/ethers file.

       An ethernet address is expressed in ASCII form as "x:x:x:x:x:x" where x
       is a hexadecimal value between 0x00 and 0xFF.  The address values should
       be in network order.  Hostnames specified in the /etc/ethers database
       should correspond to entries in the hosts(5) file.

> /etc/rc.conf *is* the method for configuring each machine.  You're
> changing what was previously a machine-specific file into a
> machine-independant file, totally changing the way things are done.  (In
> a more confusing/less flexible way I might add.)
> 
> > > However, I don't have a better solution.  What I did was rip out all of

point taken. We disagree, but that's the beauty of diversity :)

	cheers
	luigi

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-arch" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020409093717.B63338>