PrePAN

Sign in to PrePAN

Net::ISC::DHCPClient Perl module for reading ISC dhclient leases

Good

Synopsis

```
my $dhclient = Net::ISC::DHCPClient->new(
             leases_path => '/var/lib/dhclient',
             interface   => 'enp3s0f0'
         );
if ($dhclient->is_dhcp()) {
     print "is DHCP, ";
}
```

Description

The library is intended for determining if a network interface gets its information via DHCP and the known details of the leases issued to the interface.

Comments

Please sign up to post a review.