[pkg-dhcp-devel] Bug#814693: isc-dhcp-server: bad my $LEASES in /usr/sbin/dhcp-lease-list

jarp jareina at aisistemas.net
Wed Feb 24 11:15:12 UTC 2016

Package: isc-dhcp-server
Version: 4.3.1-6+deb8u2
Followup-For: Bug #814693

   * What led up to the situation?
        > I was trying to show dhcp leases 
   * What exactly did you do (or not do) that was effective (or
        > I ran dhcp-lease-list command
   * What was the outcome of this action?
        > Cannot open /var/db/dhcpd.leases: No existe el fichero o el directorio at /usr/sbin/dhcp-lease-list line 69.
   * What outcome did you expect instead?
        > obvious

I have patched the dhcp-lease-list changin $LEASES in line 22.
I changed /var/db/dhcpd.leases to /var/lib/dhcp/dhcpd.leases
Now it works perfectly.
Maybe, the best path is /var/db/dhcpd.leases, but this is just a patch.
Of course the final solution should be consolidate paths in the package.

-- System Information:
Debian Release: 8.3
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages isc-dhcp-server depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  debianutils            4.4+b1
ii  isc-dhcp-common        4.3.1-6+deb8u2
ii  libc6                  2.19-18+deb8u3
ii  libdns-export100       1:9.9.5.dfsg-9+deb8u5
ii  libirs-export91        1:9.9.5.dfsg-9+deb8u5
ii  libisc-export95        1:9.9.5.dfsg-9+deb8u5
ii  lsb-base               4.1+Debian13+nmu1

isc-dhcp-server recommends no packages.

Versions of packages isc-dhcp-server suggests:
pn  isc-dhcp-server-ldap  <none>

-- Configuration Files:
/etc/dhcp/dhcpd.conf changed:
server-identifier vlxais;
ddns-updates on;
ddns-update-style interim;
ddns-domainname "ais.local.";
ddns-rev-domainname "in-addr.arpa.";
ignore client-updates;
include "/etc/bind/rndc.key";
default-lease-time 600;
max-lease-time 7200;
log-facility local7;
zone ais.local. {
  key rndc-key;
subnet netmask {
  ddns-domainname "ais.local";
  #update-statistic-leases on;
  allow unknown-clients;
  allow client-updates;
  option domain-search "ais.local";
  option domain-name-servers;
  option domain-name "ais.local";
  option broadcast-address;
  option routers;
  option subnet-mask;
  zone ais.local. {
    key "rndc-key";
  zone 201.168.192.in-addr.arpa. {
    key "rndc-key";
host esxiais2-irmc {
  hardware ethernet 90:1B:0E:51:96:7A;
  server-name "esxiais2-irmc.ais.local";
host jarpvist {
  hardware ethernet 00:1D:09:9B:0A:3C;
  server-name "jarpvist.ais.local";

-- debconf information:
  isc-dhcp-server/interfaces: eth0 eth1

More information about the pkg-dhcp-devel mailing list