Koozali.org: home of the SME Server

Any DHCP gurus?

Rudy

Any DHCP gurus?
« 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

Mike Sensney

Re: Any DHCP gurus?
« Reply #1 on: January 11, 2002, 09:28:06 PM »
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";
}

Filippo Carletti

Re: Any DHCP gurus?
« Reply #2 on: January 14, 2002, 09:05:20 PM »
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.