From owner-freebsd-questions@freebsd.org Thu Mar 3 08:12:33 2016 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 679ACA925D5 for ; Thu, 3 Mar 2016 08:12:33 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from shopzeus.com (shopzeus.com [87.229.70.149]) by mx1.freebsd.org (Postfix) with ESMTP id 2F7A46B776 for ; Thu, 3 Mar 2016 08:12:32 +0000 (UTC) (envelope-from gandalf@shopzeus.com) Received: from [127.127.127.127] (localhost [127.127.127.127]) (Authenticated sender: gandalf) by shopzeus.com (Postfix) with ESMTPSA id 4F3C1889C4EA for ; Thu, 3 Mar 2016 03:05:19 -0500 (EST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=shopzeus.com; s=shopzeus_com; t=1456992319; bh=icNPcSEYFTXb86k0pigGNKV73w5w0lxM/ctLAy//O98=; h=To:From:Subject:Date:From; b=D/WArerQ/tMRIusWKLcCN0+ad6/gtoD3cSiMsHumT/JPA4VfaM5dHf7v4ztujLxQD o63uKQLX38KCUMr1e4a+vWul7SNGKtVBkHLNQKhzQC7j6AnNKV6baab1y2VqfqdYHm vNizAsxRO90LV89n2I2LR+J/Pyxknzt31rBQrr84o4bJ0hJZXVDC0/veD/HBVmU370 KnTzgRQyeSEWh76rRMW3uA78fknF8itlJWO9P2MYjbm8M8Sm/APJtOqNU9531mlEen aTYqkRMljmrTvL0k6ZHrKX7TvlRaw9zwwC+1Sk50HByQPix4wlqIIRhogwH67P5S76 EKWCdjGM9eP3Q== To: freebsd-questions@freebsd.org From: =?UTF-8?Q?Nagy_L=c3=a1szl=c3=b3_Zsolt?= Subject: DHCPD does not know the format of its own leases file? Message-ID: <56D7F012.1030304@shopzeus.com> Date: Thu, 3 Mar 2016 09:04:34 +0100 MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Transfer-Encoding: 8bit X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Mar 2016 08:12:33 -0000 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