Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Mar 2016 09:04:34 +0100
From:      =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= <gandalf@shopzeus.com>
To:        freebsd-questions@freebsd.org
Subject:   DHCPD does not know the format of its own leases file?
Message-ID:  <56D7F012.1030304@shopzeus.com>

next in thread | raw e-mail | index | archive | help
System: 10.2-RELEASE FreeBSD running dhcpd-5.8 OpenBSD dhcp daemon

When a client requests an IP address, the server writes out into
/var/db/dhcpd.leases állományba. When I restart dhcpd, the following
error message is displayed in the log (for all clients):

^
/var/db/dhcpd.leases line 89: unparseable time string
ends 4 1970/01/01 00:00:00 UTC;

It seems that it is writting epoch into the leases file for any host:

lease 192.168.5.103 {
starts 4 1970/01/01 00:00:00 UTC;
ends 4 1970/01/01 00:00:00 UTC;
hardware ethernet bc:5f:f4:d0:d8:3c;
uid 01:bc:5f:f4:d0:d8:3c;
client-hostname "Adam-PC";
}

Then it cannot parse that (wrong) time when I restart it. Lease times
are configured this way:

default-lease-time 1814400; # 21 days
max-lease-time 1814400; # 21 days

The system date is good (synchronized with ntpd).

I have already tried to search for "dhcpd unparseable time string" but
nothing useful comes up.

Why is this happening? How to fix it?

Thanks,

   Laszlo




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