dhcp evils

William Hooper whooperhsd3 at earthlink.net
Tue Apr 19 18:20:55 UTC 2005


Michael Hennebry wrote:
> On Mon, 18 Apr 2005, William Hooper wrote:
>
>> Michael Hennebry wrote:
>> [snip]
>>
>>> I did a find from / to fgrep for stmike.
>>> Except for files in /home/hennebry I got
>>> /var/lib/slocate/slocate.db
>>> /var/lib/dhcp/dhclient-eth0.leases
>>>
>> [snip]
>>
>>> None of these seem like likely prospects.
>>>
>>
>> dhclient-eth0.leases screams relevant to me.
>
> I had thought so to until someone told me that
> dhcp didn't provide hostnames.

They are mistaken.

> Here it is:
[snip]
> option host-name "stmike";
[snip]
> Is this telling me that the client told the server that
> the client's name is stmike, that the server told the client that the
> client's name is stmike, or something else?

According to man dhclient, the dhclient.leases file stores information
received from the dhcpd server.

-- 
William Hooper




More information about the users mailing list