Petro said: > On Mon, Nov 19, 2001 at 03:49:05PM -0800, nate wrote: >> hanasaki said: >> > Is there some way to have: >> > >> > - Machine is assigned a DHCP <random> IP >> > - Use the MAC to map to a hostname and then push the assigned IP >> > into Bind with the hostname? >> >> i don't know how you'd use the MAC to map to a hostname. you >> can use it to map to an ip ..but how would you determine the >> hostname ? > > With a table. > > Look at dhcpd.conf, it does the same thing. You put the MAC, and > the name of the machine (you can put the IP number, but we've > always used the name). Then the machine makes a DNS lookup for > that name and gets it's IP number.
now that i think about it you could extract the hostname from the dhcp.leases file ..what you mentioned seems along the line of statically assigning an ip. which isn't the way i interpreted the poster's original question which asked about assigning a random ip .. nate