Koozali.org: home of the SME Server
Legacy Forums => Experienced User Forum => Topic started by: Rudy on January 11, 2002, 09:10:04 PM
-
I have searched mc and can't find any kind of DHCP log for SME v5.0. I would like to have a log of IPs with the MAC addresses to backup SARG logs that report internet access by IP. I need to prove that a machine had a certain IP address at a certain time. How long is the lease for SME DHCP server?
A "sarg" type program for DHCP records would be great, but I will settle on a text file if one exists.
Thanks in advance,
rudy
-
I'm not a dhcp guru, but current lease info is kept in /var/lib/dhcp/dhcpd.leases. This should be sufficient for your needs. Entries look like:
lease 192.168.1.65 {
starts 2 2001/12/04 23:35:47;
ends 3 2001/12/05 23:35:47;
hardware ethernet 00:00:86:09:50:cc;
uid 01:00:00:86:09:50:cc;
client-hostname "laptop";
}
-
Correct approach, I believe, is to log fqdn in squid logs.
dhcp-dns integration is needed for that.
sarg will use fqdn transparently.
Wait for an upcoming howto.