[Gllug] Is there such a thing as reverse DHCP?
John Winters
john at sinodun.org.uk
Sun Jan 16 16:30:53 UTC 2011
On 16/01/11 13:55, Jason Clifford wrote:
> On Sun, 2011-01-16 at 13:36 +0000, John Winters wrote:
>> That is, send it a query giving an IP address and have it return a response with a MAC
>> address - the MAC address to which it would assign the given IP address?
>
> If you are using ISC dhcpd the Net::ISC::DHCPd::Leases perl module (part
> of the Net::ISC::DHCPd package) has a find_leased method which can be
> used to search based upon the attributes of child leases.
Thanks for the suggestion. Yes, I'm using the ISC dhcpd, but having
taken a look at that function it appears it's getting the lease
information from /var/lib/dhcp3/dhcpd.leases and as far as I can see,
dhcpd uses that file to store dynamic lease information.
I'm after prodding machines which have a fixed address (still assigned
by dhcpd) and it seems it doesn't write those to the file - presumably
arguing that it's unnecessary because it already has that information.
Net::ISC:DHCPd:Config looks promising though. Oh for a Ruby version.
Cheers,
John
--
Gllug mailing list - Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug
More information about the GLLUG
mailing list